mkernel 0.0.1
Micro-kernel framework, everything as a module
svcmgr.h File Reference

Service manager header. More...

#include <stdint.h>
#include <stdarg.h>
Include dependency graph for svcmgr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef uint8_t svcfunc_t(va_list p_ap)
 

Functions

void svcmgr_register (const char *p_endpoint, svcfunc_t *p_service)
 
uint8_t svcmgr_call (const char *p_endpoint,...)
 
void svcmgr_unregister (const char *p_endpoint)
 

Detailed Description

Service manager header.

Date
27/11/2017
Author
François Cerbelle (Fanfan), franc.nosp@m.ois@.nosp@m.cerbe.nosp@m.lle..nosp@m.net

Defines a service dictionnary or registry in which a module can register and call a new service, with an endpoint, a callback function and an arbitrary number of arguments.

Definition in file svcmgr.h.

Typedef Documentation

◆ svcfunc_t

typedef uint8_t svcfunc_t(va_list p_ap)

Definition at line 34 of file svcmgr.h.

Function Documentation

◆ svcmgr_call()

uint8_t svcmgr_call ( const char *  p_endpoint,
  ... 
)

Definition at line 235 of file svcmgr.c.

◆ svcmgr_register()

void svcmgr_register ( const char *  p_endpoint,
svcfunc_t p_service 
)

Definition at line 182 of file svcmgr.c.

◆ svcmgr_unregister()

void svcmgr_unregister ( const char *  p_endpoint)

Definition at line 259 of file svcmgr.c.