25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
+
+
|
*/
#ifndef __COREFW_CLASS_H__
#define __COREFW_CLASS_H__
#include <stddef.h>
#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*);
#endif
|