-
Notifications
You must be signed in to change notification settings - Fork 0
/
KMF4C.h
36 lines (30 loc) · 890 Bytes
/
KMF4C.h
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
35
36
#ifndef __KMF4C_H
#define __KMF4C_H
#include <stdbool.h>
#include "hashmap.h"
typedef struct _KMFContainer KMFContainer;
typedef struct _Visitor Visitor;
typedef char* (*fptrKMFMetaClassName)(void*);
typedef char* (*fptrKMFInternalGetKey)(void*);
/*
* TODO fix to single visitor function pointer
*/
typedef void (*fptrVisitAttr)(void*, char*, Visitor*, bool);
typedef void (*fptrVisitRefs)(void*, char*, Visitor*, bool);
typedef void* (*fptrFindByPath)(char*, void*);
typedef void (*fptrDelete)(void*);
typedef struct _KMFContainer {
void *pDerivedObj;
char *eContainer;
char *path;
map_t refs;
fptrKMFMetaClassName metaClassName;
fptrKMFInternalGetKey internalGetKey;
fptrVisitAttr VisitAttributes;
fptrVisitAttr VisitPathAttributes;
fptrVisitRefs VisitReferences;
fptrVisitRefs VisitPathReferences;
fptrFindByPath FindByPath;
fptrDelete Delete;
} KMFContainer;
#endif