-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBootstraper.h
45 lines (37 loc) · 1.56 KB
/
Bootstraper.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
39
40
41
42
43
44
45
/*
* Bootstraper.h
*
* Created on: Jan 28, 2015 1:18:54 PM
* Author: facosta
*/
#ifndef APPS_KEVOREE_BOOTSTRAPER_H_
#define APPS_KEVOREE_BOOTSTRAPER_H_
typedef struct _Bootstraper Bootstraper;
typedef struct _AbstractNodeType AbstractNodeType;
typedef struct _KevoreeModelHandlerService KevoreeModelHandlerService;
typedef struct _IDynamicLoader IDynamicLoader;
typedef struct _DeployUnit DeployUnit;
typedef struct _ContainerRoot ContainerRoot;
typedef AbstractNodeType *(*fptrBootstrNodeTyp)(Bootstraper*, char*, KevoreeModelHandlerService*);
typedef char *(*fptrRslvDepUnit)(Bootstraper*, DeployUnit*);
typedef IDynamicLoader *(*fptrGetDynLoader)(Bootstraper*);
typedef void (*fptrSetPropNewModel)(Bootstraper*, ContainerRoot*);
typedef void (*fptrBDelete)(Bootstraper*);
typedef struct _Bootstraper {
void *pDerivedObj;
fptrBootstrNodeTyp bootstrapNodeType;
fptrRslvDepUnit resolveDeployUnit;
fptrGetDynLoader getDynamicLoader;
fptrSetPropNewModel setProposedNewModel;
fptrBDelete delete;
} Bootstraper;
Bootstraper *new_Bootstraper(void);
void delete_Bootstraper(Bootstraper* const this);
/*
* Only prototypes are provided since all functions are virtual
*/
AbstractNodeType *Bootstraper_bootsraperNodeType(Bootstraper * const this, char *destNodeName, KevoreeModelHandlerService *mservice);
char *Bootstraper_resolveDeployUnit(Bootstraper * const this, DeployUnit *du);
IDynamicLoader *Bootstraper_getDynamicLoader(Bootstraper * const this);
void Bootstraper_setProposedNewModel(Bootstraper * const this, ContainerRoot *root);
#endif /* APPS_KEVOREE_BOOTSTRAPER_H_ */