31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
typedef struct CFWClass {
const char *name;
size_t size;
bool (*ctor)(void*, va_list args);
void (*dtor)(void*);
bool (*equal)(void*, void*);
uint32_t (*hash)(void*);
void* (*copy)(void*);
} CFWClass;
extern const char* cfw_class_name(CFWClass*);
|
|
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
typedef struct CFWClass {
const char *name;
size_t size;
bool (*ctor)(void*, va_list);
void (*dtor)(void*);
bool (*equal)(void*, void*);
uint32_t (*hash)(void*);
void* (*copy)(void*);
} CFWClass;
extern const char* cfw_class_name(CFWClass*);
|