aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-bit-array.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-14 20:25:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-15 21:16:36 +0800
commit5e2efa2cd4ac7891fdf316dafd9ab249086e842a (patch)
treefe4b9c1ef8d783281789c4a378253aa41af35db3 /e-util/e-bit-array.h
parent63cff95414fc76e6d58a274ffebe019cd6feb0a5 (diff)
downloadgsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.gz
gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.zst
gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.zip
Finish adding symbols to libeutil API docs.
Diffstat (limited to 'e-util/e-bit-array.h')
-rw-r--r--e-util/e-bit-array.h120
1 files changed, 65 insertions, 55 deletions
diff --git a/e-util/e-bit-array.h b/e-util/e-bit-array.h
index 39b55d906c..93fb17ed85 100644
--- a/e-util/e-bit-array.h
+++ b/e-util/e-bit-array.h
@@ -25,73 +25,83 @@
#error "Only <e-util/e-util.h> should be included directly."
#endif
-#ifndef _E_BIT_ARRAY_H_
-#define _E_BIT_ARRAY_H_
+#ifndef E_BIT_ARRAY_H
+#define E_BIT_ARRAY_H
-#include <glib-object.h>
+#include <e-util/e-misc-utils.h>
-G_BEGIN_DECLS
+/* Standard GObject macros */
+#define E_TYPE_BIT_ARRAY \
+ (e_bit_array_get_type ())
+#define E_BIT_ARRAY(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_BIT_ARRAY, EBitArray))
+#define E_BIT_ARRAY_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_BIT_ARRAY, EBitArrayClass))
+#define E_IS_BIT_ARRAY(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_BIT_ARRAY))
+#define E_IS_BIT_ARRAY_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_BIT_ARRAY))
+#define E_BIT_ARRAY_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_BIT_ARRAY, EBitArrayClass))
-#define E_BIT_ARRAY_TYPE (e_bit_array_get_type ())
-#define E_BIT_ARRAY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_BIT_ARRAY_TYPE, EBitArray))
-#define E_BIT_ARRAY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_BIT_ARRAY_TYPE, EBitArrayClass))
-#define E_IS_BIT_ARRAY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_BIT_ARRAY_TYPE))
-#define E_IS_BIT_ARRAY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_BIT_ARRAY_TYPE))
+G_BEGIN_DECLS
-#ifndef _E_FOREACH_FUNC_H_
-#define _E_FOREACH_FUNC_H_
-typedef void (*EForeachFunc) (gint model_row,
- gpointer closure);
-#endif
+typedef struct _EBitArray EBitArray;
+typedef struct _EBitArrayClass EBitArrayClass;
-typedef struct {
- GObject base;
+struct _EBitArray {
+ GObject parent;
gint bit_count;
- guint32 *data;
-} EBitArray;
+ guint32 *data;
+};
-typedef struct {
+struct _EBitArrayClass {
GObjectClass parent_class;
-} EBitArrayClass;
+};
-GType e_bit_array_get_type (void);
-EBitArray *e_bit_array_new (gint count);
+GType e_bit_array_get_type (void) G_GNUC_CONST;
+EBitArray * e_bit_array_new (gint count);
-gboolean e_bit_array_value_at (EBitArray *selection,
- gint n);
-void e_bit_array_foreach (EBitArray *selection,
- EForeachFunc callback,
- gpointer closure);
-gint e_bit_array_selected_count (EBitArray *selection);
-void e_bit_array_select_all (EBitArray *selection);
-void e_bit_array_invert_selection (EBitArray *selection);
-gint e_bit_array_bit_count (EBitArray *selection);
-void e_bit_array_change_one_row (EBitArray *selection,
- gint row,
- gboolean grow);
-void e_bit_array_change_range (EBitArray *selection,
- gint start,
- gint end,
- gboolean grow);
-void e_bit_array_select_single_row (EBitArray *eba,
- gint row);
-void e_bit_array_toggle_single_row (EBitArray *eba,
- gint row);
+gboolean e_bit_array_value_at (EBitArray *selection,
+ gint n);
+void e_bit_array_foreach (EBitArray *selection,
+ EForeachFunc callback,
+ gpointer closure);
+gint e_bit_array_selected_count (EBitArray *selection);
+void e_bit_array_select_all (EBitArray *selection);
+void e_bit_array_invert_selection (EBitArray *selection);
+gint e_bit_array_bit_count (EBitArray *selection);
+void e_bit_array_change_one_row (EBitArray *selection,
+ gint row,
+ gboolean grow);
+void e_bit_array_change_range (EBitArray *selection,
+ gint start,
+ gint end,
+ gboolean grow);
+void e_bit_array_select_single_row (EBitArray *eba,
+ gint row);
+void e_bit_array_toggle_single_row (EBitArray *eba,
+ gint row);
-void e_bit_array_insert (EBitArray *esm,
- gint row,
- gint count);
-void e_bit_array_delete (EBitArray *esm,
- gint row,
- gint count);
-void e_bit_array_delete_single_mode (EBitArray *esm,
- gint row,
- gint count);
-void e_bit_array_move_row (EBitArray *esm,
- gint old_row,
- gint new_row);
+void e_bit_array_insert (EBitArray *esm,
+ gint row,
+ gint count);
+void e_bit_array_delete (EBitArray *esm,
+ gint row,
+ gint count);
+void e_bit_array_delete_single_mode (EBitArray *esm,
+ gint row,
+ gint count);
+void e_bit_array_move_row (EBitArray *esm,
+ gint old_row,
+ gint new_row);
G_END_DECLS
-#endif /* _E_BIT_ARRAY_H_ */
+#endif /* E_BIT_ARRAY_H */