mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix pipeline
This commit is contained in:
parent
2906af8a2a
commit
6ea95f5ba5
3 changed files with 7 additions and 7 deletions
|
|
@ -165,7 +165,7 @@ static void _bbfdm_task_callback(struct uloop_timeout *t)
|
|||
free(task);
|
||||
}
|
||||
|
||||
int bbfdm_task_add(bbfdm_task_callback_t callback, const void *arg1, const void *arg2, int timeout_sec)
|
||||
int bbfdm_task_add(bbfdm_task_callback_t callback, const void *arg1, void *arg2, int timeout_sec)
|
||||
{
|
||||
bbfdm_task_data_t *task;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,16 +31,16 @@ struct dmubus_ev_subtask {
|
|||
};
|
||||
|
||||
// bbfdm task related functions
|
||||
typedef void (*bbfdm_task_callback_t)(const void *arg1, const void *arg2);
|
||||
typedef void (*bbfdm_task_callback_t)(const void *arg1, void *arg2);
|
||||
|
||||
typedef struct bbfdm_task_data {
|
||||
struct uloop_timeout timeout;
|
||||
bbfdm_task_callback_t callback;
|
||||
const void *arg1;
|
||||
const void *arg2;
|
||||
void *arg2;
|
||||
} bbfdm_task_data_t;
|
||||
|
||||
int bbfdm_task_add(bbfdm_task_callback_t callback, const void *arg1, const void *arg2, int timeout);
|
||||
int bbfdm_task_add(bbfdm_task_callback_t callback, const void *arg1, void *arg2, int timeout);
|
||||
|
||||
typedef void (*CB_FUNC_PTR)(struct ubus_context *ctx, struct ubus_event_handler *ev,
|
||||
const char *type, struct blob_attr *msg);
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ static char *get_events_dm_path(struct list_head *ev_list, const char *event)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void event_callback(const void *arg1, const void *arg2)
|
||||
void event_callback(const void *arg1, void *arg2)
|
||||
{
|
||||
struct event_args *e_args = (struct event_args *)arg1;
|
||||
struct event_args *e_args = (struct event_args *)arg2;
|
||||
|
||||
if (!e_args || !e_args->blob_data || !DM_STRLEN(e_args->method_name))
|
||||
return;
|
||||
|
|
@ -115,7 +115,7 @@ static void bbfdm_event_handler(struct ubus_context *ctx, struct ubus_event_hand
|
|||
|
||||
memcpy(e_args->blob_data, bbf_ctx.bb.head, blob_data_len);
|
||||
|
||||
bbfdm_task_add(event_callback, e_args, NULL, 6);
|
||||
bbfdm_task_add(event_callback, NULL, e_args, 6);
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue