From d2ba67e68b6a7e262be4fac31fecf3977494c4a4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 11 Nov 2014 00:37:11 +0100 Subject: use ‘signed’ instead of ‘int’, redo prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flip arguments are implemented so delete comment --- src/yawa.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/yawa.h') diff --git a/src/yawa.h b/src/yawa.h index 60d3ee8..0e5abb3 100644 --- a/src/yawa.h +++ b/src/yawa.h @@ -15,9 +15,17 @@ typedef enum Full, Fill, Center, Tile } ImageMode; -int set_root_atoms(Pixmap pixmap); -int load_image(ImageMode mode, const char *arg, int rootW, int rootH, int alpha, - Imlib_Image rootimg); +/// Prototypes + +signed +set_root_atoms(Pixmap pixmap); + +signed +load_image(ImageMode mode, const char *arg, int rootW, int rootH, + int alpha, Imlib_Image rootimg); + + +/// Argument parsing static int num_add_colors; struct arguments { @@ -57,7 +65,7 @@ struct arguments { bool write; }; -/* Order of fields: {NAME, KEY, ARG, FLAGS, DOC, GROUP}. */ +// Order of fields: {NAME, KEY, ARG, FLAGS, DOC, GROUP}. static struct argp_option options[] = { {0, 0, 0, 0, "Gradients:", 1}, @@ -82,9 +90,9 @@ static struct argp_option options[] = {"contrast", 'o', "AMOUNT", 0, "Adjust the contrast of the current image", 4}, // Not implemented {"brightness", 'B', "AMOUNT", 0, "Adjust the bightness of the current image", 4}, // Not implemented {"gamma", 'G', "AMOUNT", 0, "Adjust the gamma level of the current image", 4}, // Not implemented - {"flipv", 'v', 0, 0, "Flip the current image vertically", 4}, // Not implemented - {"fliph", 'h', 0, 0, "Flip the current image horizontally", 4}, // Not implemented - {"flipd", 'd', 0, 0, "Flip the current image diagonally", 4}, // Not implemented + {"flipv", 'v', 0, 0, "Flip the current image vertically", 4}, + {"fliph", 'h', 0, 0, "Flip the current image horizontally", 4}, + {"flipd", 'd', 0, 0, "Flip the current image diagonally", 4}, {0, 0, 0, 0, "Misc:", -1}, {"alpha", 'A', "AMOUNT", 0, "Adjust alpha level for colors and images", -1}, -- cgit v1.2.3-54-g00ecf