vitalnix user management suite 3.2.0


Description

libvxcore provides functions for the ultimate basic functions such as module registering and lookup functions for such.

Function overview

#include <vitalnix/libvxcore/loader.h>

int vxcore_module_register(const char *section, const char *name, const void *ptr);
void vxcore_module_unregister(const char *section, const char *name);
struct HXbtree *vxcore_section_lookup(const char *section);
void *vxcore_module_lookup(const char *section, const char *name);

vxcore_module_register

Registers a module in section and stores the user-defined ptr for it, which can later be retrieved using the lookup functions described below. Returns an AEE code.

vxcore_module_unregister

Unregisters the module in section.

vxcore_section_lookup

vxcore_section_lookup() returns the tree associated with section, which can be used for traversal and finding out about registered modules belonging to this section. If the section does not exist, NULL is returned.

vxcore_module_lookup

vxcore_module_lookup returns the user-defined pointer for module in section. If the section does not exist or the module is not registered, NULL is returned.