// We are testing wrappers for the c-datatypes: // * integral e.g (int) here // * enum // * c-string // * struct // Those are all considered POD-types #ifndef LIBPEPDATATYPES_LIBC99_H #define LIBPEPDATATYPES_LIBC99_H #ifdef __cplusplus extern "C" { #endif typedef enum { ONE, TWO, THREE } Test_enum; typedef struct { int c_int; Test_enum c_enum; char* c_str; } Test_struct1; typedef struct { int c_int; Test_enum c_enum; char* c_str; Test_struct1* c_struct1; } Test_struct2; Test_struct1* new_test_struct(int c_int, Test_enum c_enum, const char* c_str); void free_test_struct(Test_struct1* c_struct); #ifdef __cplusplus } #endif #endif