extern_interface/include/event.h

19 lines
437 B
C
Raw Normal View History

2024-11-28 08:31:00 +00:00
#ifndef _INCLUDE_EVENT_H_
#define _INCLUDE_EVENT_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*event_callback)(const char*, void*, void*);
void sys_event(const char *event_name, void *args);
int sys_event_register(const char *event_name, event_callback callback, void* user_data);
int sys_event_unregister(const char *event_name, event_callback callback);
void* sys_event_thread(void*);
#ifdef __cplusplus
}
#endif
#endif