mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-13 11:30:02 +01:00
22 lines
453 B
C
22 lines
453 B
C
#ifndef EVENT_H
|
|
#define EVENT_H
|
|
|
|
#include "bbfdmd.h"
|
|
#include "common.h"
|
|
|
|
struct event_args_list {
|
|
char *event_arg;
|
|
char *dm_arg;
|
|
};
|
|
|
|
struct event_map_list {
|
|
char *event;
|
|
char *dm_path;
|
|
struct event_args_list args[16];
|
|
};
|
|
|
|
void free_ubus_event_handler(struct ubus_context *ctx, struct list_head *ev_list);
|
|
int register_events_to_ubus(struct ubus_context *ctx, struct list_head *ev_list);
|
|
bool is_registered_event(char *name);
|
|
|
|
#endif /* EVENT_H */
|