| 1 |
#pragma once |
| 2 |
|
| 3 |
#include <glib-object.h> |
| 4 |
|
| 5 |
/** |
| 6 |
* FooIndecision: |
| 7 |
* @FOO_MAYBE: Something maybe |
| 8 |
* @FOO_POSSIBLY: Something possible |
| 9 |
* |
| 10 |
* The indecision type. |
| 11 |
**/ |
| 12 |
|
| 13 |
typedef enum { |
| 14 |
FOO_MAYBE, |
| 15 |
FOO_POSSIBLY, |
| 16 |
} FooIndecision; |
| 17 |
|
| 18 |
/** |
| 19 |
* FooObjClass: |
| 20 |
* |
| 21 |
* The class |
| 22 |
*/ |
| 23 |
|
| 24 |
/** |
| 25 |
* FooObj: |
| 26 |
* |
| 27 |
* The instance |
| 28 |
*/ |
| 29 |
|
| 30 |
#define FOO_TYPE_OBJ foo_obj_get_type() |
| 31 |
G_DECLARE_FINAL_TYPE(FooObj, foo_obj, FOO, OBJ, GObject) |
| 32 |
|
| 33 |
int foo_do_something(FooObj *self); |