-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKevoreeModelHandlerService.h
38 lines (31 loc) · 1.67 KB
/
KevoreeModelHandlerService.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
37
38
#ifndef __KevoreeModelHandlerService_H
#define __KevoreeModelHandlerService_H
#include <stdbool.h>
typedef struct _KevoreeModelHandlerService KevoreeModelHandlerService;
typedef struct _ContainerRoot ContainerRoot;
typedef ContainerRoot *(*fptrGetLastModel)(KevoreeModelHandlerService*);
typedef void (*fptrUpdateModel)(KevoreeModelHandlerService*, ContainerRoot*);
typedef void (*fptrGetPreviousModel)(KevoreeModelHandlerService*, ContainerRoot*);
typedef char *(*fptrGetNodeName)(KevoreeModelHandlerService*);
typedef bool (*fptrCheckModel)(KevoreeModelHandlerService*, ContainerRoot*);
typedef void (*fptrKMHDelete)(KevoreeModelHandlerService*);
typedef struct _KevoreeModelHandlerService {
void *pDerivedObj;
fptrGetLastModel getLastModel;
fptrUpdateModel updateModel;
fptrGetPreviousModel getPreviousModels;
fptrGetNodeName getNodeName;
fptrCheckModel checkModel;
fptrKMHDelete delete;
} KevoreeModelHandlerService;
KevoreeModelHandlerService *new_KevoreeModelHandlerService(void);
void delete_KevoreeModelHandlerService(KevoreeModelHandlerService * const this);
/*
* INFO Only prototypes are provided since all functions are virtual
*/
ContainerRoot *KevoreeModelHandlerService_getLastModel(KevoreeModelHandlerService * const this);
void KevoreeModelHandlerService_updateModel(KevoreeModelHandlerService * const this, ContainerRoot *model);
void KevoreeModelHandlerService_getPreviousModel(KevoreeModelHandlerService * const this, ContainerRoot *model);
char *KevoreeModelHandlerService_getNodeName(KevoreeModelHandlerService * const this);
bool KevoreeModelHandlerService_checkModel(KevoreeModelHandlerService * const this, ContainerRoot *model);
#endif /* __KevoreeModelHandlerService_H */