summaryrefslogtreecommitdiff
path: root/gtk/gtkbitmaskprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-02-08 19:19:59 +0100
committerBenjamin Otte <otte@redhat.com>2012-03-01 15:10:36 +0100
commit64425a28de0928d04ddfb0a3a53a2d24f0338b25 (patch)
tree31cc246a2c6dea5d37e550985ebd3196d2a20f4b /gtk/gtkbitmaskprivate.h
parent47402cc26a9b65815d46799f6a467eb3fe409869 (diff)
downloadgtk+-64425a28de0928d04ddfb0a3a53a2d24f0338b25.tar.gz
bitmask: Make setters return a new value
(Actually, it's not a real 'new' value yet, but will be soon. This is the first step to make bitmasks immutable.
Diffstat (limited to 'gtk/gtkbitmaskprivate.h')
-rw-r--r--gtk/gtkbitmaskprivate.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkbitmaskprivate.h b/gtk/gtkbitmaskprivate.h
index 64ffaaeb44..83ba832bc0 100644
--- a/gtk/gtkbitmaskprivate.h
+++ b/gtk/gtkbitmaskprivate.h
@@ -39,22 +39,22 @@ char * _gtk_bitmask_to_string (const GtkBitmask *mask);
void _gtk_bitmask_print (const GtkBitmask *mask,
GString *string);
-void _gtk_bitmask_intersect (GtkBitmask *mask,
- const GtkBitmask *other);
-void _gtk_bitmask_union (GtkBitmask *mask,
- const GtkBitmask *other);
-void _gtk_bitmask_subtract (GtkBitmask *mask,
- const GtkBitmask *other);
+GtkBitmask * _gtk_bitmask_intersect (GtkBitmask *mask,
+ const GtkBitmask *other) G_GNUC_WARN_UNUSED_RESULT;
+GtkBitmask * _gtk_bitmask_union (GtkBitmask *mask,
+ const GtkBitmask *other) G_GNUC_WARN_UNUSED_RESULT;
+GtkBitmask * _gtk_bitmask_subtract (GtkBitmask *mask,
+ const GtkBitmask *other) G_GNUC_WARN_UNUSED_RESULT;
gboolean _gtk_bitmask_get (const GtkBitmask *mask,
guint index_);
-void _gtk_bitmask_set (GtkBitmask *mask,
+GtkBitmask * _gtk_bitmask_set (GtkBitmask *mask,
guint index_,
- gboolean value);
+ gboolean value) G_GNUC_WARN_UNUSED_RESULT;
-void _gtk_bitmask_invert_range (GtkBitmask *mask,
+GtkBitmask * _gtk_bitmask_invert_range (GtkBitmask *mask,
guint start,
- guint end);
+ guint end) G_GNUC_WARN_UNUSED_RESULT;
gboolean _gtk_bitmask_is_empty (const GtkBitmask *mask);
gboolean _gtk_bitmask_equals (const GtkBitmask *mask,