Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
modules.c File Reference
#include <stdlib.h>
#include "ev_mgr.h"
#include "modules.h"

Functions

void ksnModuleLInit (ksnModulesClass *km)
 File: modules.c Author: Kirill Scherba. More...
 
void ksnModuleLDestroy (ksnModulesClass *km)
 Destroy modules list. More...
 
void ksnModulesLAdd (ksnModulesClass *km, ksnModuleElement *modules, int numer_of_elements)
 Appends the specified element to the end of this list. More...
 
ksnModulesClassksnModulesInit (void *ke, ksnModuleElement *modules, int numer_of_modules)
 Initialize module. More...
 
void ksnModulesDestroy (ksnModulesClass *km)
 Destroy module. More...
 

Function Documentation

void ksnModuleLDestroy ( ksnModulesClass km)
void ksnModuleLInit ( ksnModulesClass km)

File: modules.c Author: Kirill Scherba.

Initialize modules list.

Created on July 3, 2015, 12:25 PM

References ksnModulesClass::list.

Referenced by ksnModulesInit().

void ksnModulesDestroy ( ksnModulesClass km)

Destroy module.

Parameters
km

References free(), ksnModulesClass::ke, ke, ksnetEvMgrClass::km, and ksnModuleLDestroy().

ksnModulesClass* ksnModulesInit ( void *  ke,
ksnModuleElement modules,
int  numer_of_modules 
)

Initialize module.

Parameters
kePointer to ksnetEvMgrClass
modules
numer_of_modules
Returns
Pointer to ksnModulesClass

References ksnModulesClass::ke, ke, ksnModuleLInit(), ksnModulesLAdd(), malloc(), and ksnModulesClass::modules.

void ksnModulesLAdd ( ksnModulesClass km,
ksnModuleElement elements,
int  numer_of_elements 
)

Appends the specified element to the end of this list.

References ksnModuleElement::init, ksnModulesClass::ke, ksnModulesClass::list, and ksnModuleElement::mc.

Referenced by ksnModulesInit().