File: test_boxed.h

package info (click to toggle)
cppgir 2.0%2Bgit20250629.2a7d9ce-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: cpp: 16,451; ansic: 355; python: 86; makefile: 13; sh: 9
file content (34 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
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