2022-05-19 01:51:26 -07:00
|
|
|
#ifndef NEVS_H
|
|
|
|
#define NEVS_H
|
|
|
|
|
|
|
|
#include "interpreter.h"
|
|
|
|
|
2022-07-06 04:59:54 -07:00
|
|
|
typedef enum NevsType {
|
|
|
|
NEVS_TYPE_EVENT = 0,
|
|
|
|
NEVS_TYPE_HANDLER = 1,
|
|
|
|
} NevsType;
|
2022-05-19 01:51:26 -07:00
|
|
|
|
|
|
|
void _nevs_close();
|
|
|
|
void _nevs_initonce();
|
2022-07-06 04:59:54 -07:00
|
|
|
int _nevs_addevent(const char* name, Program* program, int proc, int type);
|
|
|
|
int _nevs_clearevent(const char* name);
|
|
|
|
int _nevs_signal(const char* name);
|
2022-05-19 01:51:26 -07:00
|
|
|
void _nevs_update();
|
|
|
|
|
|
|
|
#endif /* NEVS_H */
|