summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-09-16 15:39:59 -0600
committerRyan Lortie <desrt@desrt.ca>2014-09-16 17:49:40 -0400
commit8061694c496094015bfd3959cbece7ab158ef6ef (patch)
tree3732d9527ec27aa5a271c02dffcfc517b7249603
parent84ec6b4d78928d4b51d64f17b4bde56314e75b1b (diff)
downloadglib-8061694c496094015bfd3959cbece7ab158ef6ef.tar.gz
goption: Add G_OPTION_FLAG_NONE
This is helpful to better document code, as G_OPTION_FLAG_NONE is more readable than 0.
-rw-r--r--glib/goption.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/glib/goption.h b/glib/goption.h
index 9e9ca1a1d..ab12a2792 100644
--- a/glib/goption.h
+++ b/glib/goption.h
@@ -53,6 +53,7 @@ typedef struct _GOptionEntry GOptionEntry;
/**
* GOptionFlags:
+ * @G_OPTION_FLAG_NONE: No flags. Since: 2.42.
* @G_OPTION_FLAG_HIDDEN: The option doesn't appear in `--help` output.
* @G_OPTION_FLAG_IN_MAIN: The option appears in the main section of the
* `--help` output, even if it is defined in a group.
@@ -79,6 +80,7 @@ typedef struct _GOptionEntry GOptionEntry;
*/
typedef enum
{
+ G_OPTION_FLAG_NONE = 0,
G_OPTION_FLAG_HIDDEN = 1 << 0,
G_OPTION_FLAG_IN_MAIN = 1 << 1,
G_OPTION_FLAG_REVERSE = 1 << 2,