diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-14 20:25:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-15 21:16:36 +0800 |
commit | 5e2efa2cd4ac7891fdf316dafd9ab249086e842a (patch) | |
tree | fe4b9c1ef8d783281789c4a378253aa41af35db3 /e-util/e-sorter-array.h | |
parent | 63cff95414fc76e6d58a274ffebe019cd6feb0a5 (diff) | |
download | gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.gz gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.bz2 gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.lz gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.xz gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.tar.zst gsoc2013-evolution-5e2efa2cd4ac7891fdf316dafd9ab249086e842a.zip |
Finish adding symbols to libeutil API docs.
Diffstat (limited to 'e-util/e-sorter-array.h')
-rw-r--r-- | e-util/e-sorter-array.h | 80 |
1 files changed, 48 insertions, 32 deletions
diff --git a/e-util/e-sorter-array.h b/e-util/e-sorter-array.h index 07a32b4b82..04899d21b6 100644 --- a/e-util/e-sorter-array.h +++ b/e-util/e-sorter-array.h @@ -24,62 +24,78 @@ #error "Only <e-util/e-util.h> should be included directly." #endif -#ifndef _E_SORTER_ARRAY_H_ -#define _E_SORTER_ARRAY_H_ +#ifndef E_SORTER_ARRAY_H +#define E_SORTER_ARRAY_H #include <e-util/e-sorter.h> +/* Standard GObject macros */ +#define E_TYPE_SORTER_ARRAY \ + (e_sorter_array_get_type ()) +#define E_SORTER_ARRAY(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_SORTER_ARRAY, ESorterArray)) +#define E_SORTER_ARRAY_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_SORTER_ARRAY, ESorterArrayClass)) +#define E_IS_SORTER_ARRAY(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_SORTER_ARRAY)) +#define E_IS_SORTER_ARRAY_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_SORTER_ARRAY)) +#define E_SORTER_ARRAY_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_SORTER_ARRAY, ESorterArrayClass)) + G_BEGIN_DECLS -#define E_SORTER_ARRAY_TYPE (e_sorter_array_get_type ()) -#define E_SORTER_ARRAY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_SORTER_ARRAY_TYPE, ESorterArray)) -#define E_SORTER_ARRAY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_SORTER_ARRAY_TYPE, ESorterArrayClass)) -#define E_IS_SORTER_ARRAY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_SORTER_ARRAY_TYPE)) -#define E_IS_SORTER_ARRAY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_SORTER_ARRAY_TYPE)) +typedef struct _ESorterArray ESorterArray; +typedef struct _ESorterArrayClass ESorterArrayClass; -#ifndef _E_COMPARE_ROWS_FUNC_H_ -#define _E_COMPARE_ROWS_FUNC_H_ typedef gint (*ECompareRowsFunc) (gint row1, gint row2, GHashTable *cmp_cache, gpointer closure); -#endif typedef GHashTable * (*ECreateCmpCacheFunc) (gpointer closure); -typedef struct { - ESorter base; +struct _ESorterArray { + ESorter parent; GHashTable *cmp_cache; ECreateCmpCacheFunc create_cmp_cache; ECompareRowsFunc compare; - gpointer closure; + gpointer closure; - /* If needs_sorting is 0, then model_to_sorted and sorted_to_model are no-ops. */ - gint *sorted; - gint *backsorted; + /* If needs_sorting is 0, then + * model_to_sorted and sorted_to_model are no-ops. */ + gint *sorted; + gint *backsorted; gint rows; -} ESorterArray; +}; -typedef struct { +struct _ESorterArrayClass { ESorterClass parent_class; -} ESorterArrayClass; +}; -GType e_sorter_array_get_type (void); -ESorterArray *e_sorter_array_construct (ESorterArray *sorter, +GType e_sorter_array_get_type (void) G_GNUC_CONST; +ESorterArray * e_sorter_array_construct + (ESorterArray *sorter, ECreateCmpCacheFunc create_cmp_cache, - ECompareRowsFunc compare, - gpointer closure); -ESorterArray *e_sorter_array_new (ECreateCmpCacheFunc create_cmp_cache, - ECompareRowsFunc compare, - gpointer closure); -void e_sorter_array_clean (ESorterArray *esa); -void e_sorter_array_set_count (ESorterArray *esa, - gint count); -void e_sorter_array_append (ESorterArray *esa, - gint count); + ECompareRowsFunc compare, + gpointer closure); +ESorterArray * e_sorter_array_new (ECreateCmpCacheFunc create_cmp_cache, + ECompareRowsFunc compare, + gpointer closure); +void e_sorter_array_clean (ESorterArray *sorter); +void e_sorter_array_set_count + (ESorterArray *sorter, + gint count); +void e_sorter_array_append (ESorterArray *sorter, + gint count); G_END_DECLS -#endif /* _E_SORTER_ARRAY_H_ */ +#endif /* E_SORTER_ARRAY_H */ |