Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
modules.h
Go to the documentation of this file.
1 
8 #ifndef MODULES_H
9 #define MODULES_H
10 
11 #include "config/conf.h"
12 
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
22 typedef struct ksnModuleElement {
23 
25  void* (*init)(void *ke);
26  void (*destroy)(void *mc);
27  void *mc;
28 
30 
34 typedef struct ksnModulesClass {
35 
36  void *ke;
37  PblList *list;
39 
41 
42 ksnModulesClass *ksnModulesInit(void *ke, ksnModuleElement* modules, int numer_of_modules);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* MODULES_H */
void * ke
Pointer to Event manager class object.
Definition: modules.h:36
struct ksnModulesClass ksnModulesClass
Modules class data.
struct ksnModuleElement ksnModuleElement
File: modules.h Author: Kirill Scherba.
#define KSN_BUFFER_SM_SIZE
Size of small buffer for string.
Definition: conf.h:16
char name[KSN_BUFFER_SM_SIZE]
Definition: modules.h:24
ksnModuleElement * modules
Pointer to Modules array.
Definition: modules.h:38
File: modules.h Author: Kirill Scherba.
Definition: modules.h:22
ksnModulesClass * ksnModulesInit(void *ke, ksnModuleElement *modules, int numer_of_modules)
Initialize module.
Definition: modules.c:27
#define ke
void ksnModulesDestroy(ksnModulesClass *km)
Destroy module.
Definition: modules.c:48
Modules class data.
Definition: modules.h:34
PblList * list
Modules list.
Definition: modules.h:37
void(* destroy)(void *mc)
Definition: modules.h:26
void * mc
Module class.
Definition: modules.h:27