mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
43 lines
842 B
C
43 lines
842 B
C
#ifndef BBFDMD_H
|
|
#define BBFDMD_H
|
|
|
|
#include <libubus.h>
|
|
#include <libubox/blobmsg.h>
|
|
#include <libubox/list.h>
|
|
|
|
#include "dmbbf.h"
|
|
|
|
struct bbfdm_async_req {
|
|
struct ubus_context *ctx;
|
|
struct ubus_request_data req;
|
|
struct uloop_process process;
|
|
void *result;
|
|
};
|
|
|
|
struct bbfdm_context {
|
|
struct ubus_context ubus_ctx;
|
|
struct blob_buf dm_schema;
|
|
struct uloop_timeout instance_timer;
|
|
struct list_head event_handlers;
|
|
struct list_head instances;
|
|
struct list_head old_instances;
|
|
};
|
|
|
|
struct ev_handler_node {
|
|
struct ubus_event_handler *ev_handler;
|
|
struct list_head list;
|
|
};
|
|
|
|
typedef struct bbfdm_data {
|
|
struct ubus_context *ctx;
|
|
struct ubus_request_data *req;
|
|
struct list_head *plist;
|
|
struct dmctx bbf_ctx;
|
|
struct blob_buf *bbp;
|
|
struct blob_buf bb;
|
|
uint8_t depth;
|
|
bool is_raw;
|
|
int trans_id;
|
|
} bbfdm_data_t;
|
|
|
|
#endif /* BBFDMD_H */
|