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

Service manager implementation. More...

#include "svcmgr.h"
#include "gettext.h"
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "debug/assert.h"
#include "debug/memory.h"
Include dependency graph for svcmgr.c:

Go to the source code of this file.

Classes

struct  service_s
 

Macros

#define _(String)   gettext (String)
 

Typedefs

typedef struct service_s service_t
 

Functions

void svcmgr_dump (const char *p_prefix, service_t *p_list)
 
void svcmgr_register (const char *p_endpoint, svcfunc_t *p_svcfunc)
 
uint8_t svcmgr_call (const char *p_endpoint,...)
 
void svcmgr_unregister (const char *p_endpoint)
 

Detailed Description

Service manager implementation.

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

make threadsafe

investigate prefix or b+* trees

Implements the services dictionnary in an n-tree structure.

Definition in file svcmgr.c.

Macro Definition Documentation

◆ _

#define _ (   String)    gettext (String)

Definition at line 24 of file svcmgr.c.

Typedef Documentation

◆ service_t

typedef struct service_s service_t

Function Documentation

◆ svcmgr_call()

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

Definition at line 235 of file svcmgr.c.

◆ svcmgr_dump()

void svcmgr_dump ( const char *  p_prefix,
service_t p_list 
)

Definition at line 163 of file svcmgr.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ svcmgr_register()

void svcmgr_register ( const char *  p_endpoint,
svcfunc_t p_svcfunc 
)

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.