#ifndef FUNC_H
#define FUNC_H
#include "../public/nsapi.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SAF_EXEC(f,pb,sn,rq) (f)->func_exec ? \
(f)->func_exec(f, pb, sn, rq) : \
(f)->func(pb, sn, rq)
void func_init();
void add_function(
struct FuncStruct *func);
void add_functions(
struct FuncStruct *funcs);
FuncStruct* get_function(
const char *name);
#ifdef __cplusplus
}
#endif
#endif