#ifndef NOTIFY_EVENT_H
#define NOTIFY_EVENT_H
#define EVENT_MAX 100
typedef enum {
MODULE_KEY,
NOTIFY_MAX,
} NotifyModule;
typedef enum {
EVENT_KEY1 = MODULE_KEY * EVENT_MAX,
EVENT_KEY2,
EVENT_KEY3,
EVENT_KEY4,
NOTIFY_MAX,
} NotifyEvent;
#endif
#ifndef NOTIFY_H
#define NOTIFY_H
#include <stdint.h>
#include <notify_event.h>
typedef int32_t (*SyncCall)(NotifyEvent event, const void *input, int32_t inLen, void *output, int32_t outLen);
typedef int32_t (*AsyncCall)(NotifyEvent event, const void *input, int32_t inLen, void *output, int32_t outLen);
void NotifyIinit(void);
void NotifyTask(void);
int32_t RegisterNotify(NotifyModule moduleId, SyncCall syncFunc, AsyncCall asyncFunc);
int32_t UnregisterNotify(NotifyModule moduleId);
int32_t SendNotify(NotifyModule moduleId, NotifyEvent event, const void *input, int32_t inLen, void *output, int32_t outLen);
int32_t PostNotify(NotifyModule moduleId, NotifyEvent event, const void *input, int32_t inLen, void *output, int32_t outLen)