1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#ifndef TEST_BOXED_H
#define TEST_BOXED_H
#include <glib-object.h>
#include <glib.h>
G_BEGIN_DECLS
GType gi_cpp_gbexample_get_type();
#define GI_CPP_TYPE_BOXED_EXAMPLE (gi_cpp_gbexample_get_type())
/* G_TYPE_BOXED example */
typedef struct _GBExample
{
int data;
} GBExample;
GBExample *gi_cpp_gbexample_new();
/* plain struct example */
typedef struct _CBExample
{
int data;
} CBExample;
CBExample *gi_cpp_cbexample_new();
void gi_cpp_cbexample_free(CBExample *);
G_END_DECLS
#endif // TEST_BOXED_H
|