Aer/modules/dummy/dummy.h

28 lines
707 B
C
Raw Normal View History

#ifndef __DUMMY_H__
#define __DUMMY_H__
#include "ph7.h"
#include "ph7int.h"
2018-07-19 20:02:54 +02:00
#define MODULE_DESC "Dummy Module"
2018-07-19 07:40:39 +02:00
#define MODULE_VER 1.0
/* Forward reference & declaration */
PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc);
/* Constants provided by DUMMY module */
2018-08-01 17:04:42 +02:00
static void AER_DUMMY_CONSTANT_Const(ph7_value *pVal, void *pUserData);
/* Functions provided by DUMMY module */
2018-08-01 17:04:42 +02:00
int aer_dummy_function(ph7_context *pCtx, int nArg, ph7_value **apArg);
static const ph7_builtin_constant dummyConstList[] = {
2018-08-01 17:04:42 +02:00
{"DUMMY_CONSTANT", AER_DUMMY_CONSTANT_Const},
};
static const ph7_builtin_func dummyFuncList[] = {
2018-08-01 17:04:42 +02:00
{"dummy_function", aer_dummy_function },
};
#endif