test_boxed.h 516 B

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