Home
last modified time | relevance | path

Searched refs:event_id (Results 1 – 25 of 51) sorted by relevance

123

/AliOS-Things-master/components/uservice/src/
A Devent_svr.c23 int event_id; member
32 uint32_t event_id; member
91 timer->event_id = param->event_id; in process_rpc()
171 param.event_id = event_id; in event_publish_fd()
182 param.event_id = fd; in event_subscribe_fd()
192 param.event_id = event_id; in event_unsubscribe_fd()
199 void event_publish(uint32_t event_id, void *data) in event_publish() argument
203 param.event_id = event_id; in event_publish()
213 param.event_id = event_id; in event_publish_delay()
224 param.event_id = event_id; in event_subscribe()
[all …]
A Devent.c18 uint32_t event_id; member
35 if (node->event_id == event_id) { in find_event()
98 event_t *ev = find_event(evlist, event_id); in __yoc_event_subscribe()
104 ev->event_id = event_id; in __yoc_event_subscribe()
146 if (event_id & FD_MASK) { in eventlist_subscribe()
222 if (event_id & FD_MASK) { in eventlist_unsubscribe()
250 if (event_id & FD_MASK) { in eventlist_publish()
254 __event_publish(evlist, event_id, data); in eventlist_publish()
274 if (event_id & FD_MASK) { in eventlist_remove()
277 __yoc_event_remove(evlist, event_id); in eventlist_remove()
[all …]
A Dinternal.h77 int eventlist_subscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, void *contex…
78 int eventlist_unsubscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, void *cont…
79 int eventlist_publish(event_list_t *evlist, uint32_t event_id, void *data);
80 int eventlist_remove(event_list_t *evlist, uint32_t event_id);
A Duservice.c143 static void uservice_event_process(uint32_t event_id, const void *data, void *context) in uservice_event_process() argument
150 if (rpc_init(&rpc, event_id, 0) == 0) { in uservice_event_process()
157 void uservice_subscribe(uservice_t *srv, uint32_t event_id) in uservice_subscribe() argument
160 event_subscribe(event_id, uservice_event_process, srv); in uservice_subscribe()
/AliOS-Things-master/components/uservice/
A DREADME.md200 void uservice_subscribe(uservice_t *srv, uint32_t event_id);
204 RPC 的 cmd_id 等于 event_id,通过 rpc_get_pointer 可以获取 事件的 data 参数。
247 void event_subscribe(uint32_t event_id, event_callback_t cb, void *context);
258 * event_id: 事件号, event_subscribe_fd 函数,fd 为设备/网络句柄。
267 void event_unsubscribe(uint32_t event_id, event_callback_t cb, void *context);
274 * event_id: 事件号, event_subscribe_fd 函数,fd 为设备/网络句柄。
283 void event_publish(uint32_t event_id, void *data);
290 * event_id: 事件号, event_publish_fd 函数,fd 为设备/网络句柄。
456 int demo_subscribe(uint16_t event_id, event_callback_t cb, void *context)
458 return uservice_subscribe(demo.srv, event_id, cb, context);
[all …]
/AliOS-Things-master/components/uservice/include/uservice/
A Duservice.h166 void uservice_subscribe(uservice_t *srv, uint32_t event_id);
179 void event_subscribe(uint32_t event_id, event_callback_t cb, void *context);
180 void event_unsubscribe(uint32_t event_id, event_callback_t cb, void *context);
181 void event_publish(uint32_t event_id, void *data);
182 void event_publish_delay(uint32_t event_id, void *data, int timeout_ms);
A Devent.h14 typedef void (*event_callback_t)(uint32_t event_id, const void *data, void *context);
/AliOS-Things-master/solutions/audio_demo/
A Dmain.c27 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
29 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) in wifi_event_cb()
/AliOS-Things-master/solutions/auto_demo/
A Dmain.c27 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
29 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) { in wifi_event_cb()
A Ddata_model_basic_demo.c292 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
298 msg.data.event_post.event_id = event_id; in demo_send_event_post()
/AliOS-Things-master/solutions/rfid_demo/
A Dmain.c27 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
29 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) in wifi_event_cb()
A Drfid_demo.c273 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
279 msg.data.event_post.event_id = event_id; in demo_send_event_post()
/AliOS-Things-master/solutions/flower_demo/
A Dmain.c28 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
30 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) { in wifi_event_cb()
A Ddata_model_basic_demo.c272 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
278 msg.data.event_post.event_id = event_id; in demo_send_event_post()
/AliOS-Things-master/solutions/linksdk_demo/
A Dmain.c26 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
30 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) in wifi_event_cb()
A Ddata_model_basic_demo.c266 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
272 msg.data.event_post.event_id = event_id; in demo_send_event_post()
/AliOS-Things-master/solutions/linksdk_gateway_demo/
A Dmain.c27 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
31 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) in wifi_event_cb()
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Dwifi_port_ref.c63 static void on_wifi_connect(WIFI_USER_EVT_ID event_id, void *arg) in on_wifi_connect() argument
65 printf("%s event_id:%d\n", __func__, event_id); in on_wifi_connect()
67 if (event_id == WIFI_USER_EVT_CONN_INTER_STATE) { in on_wifi_connect()
112 } else if (event_id == WIFI_USER_EVT_CONNECTED) { in on_wifi_connect()
124 } else if (event_id == WIFI_USER_EVT_GOT_IP) { in on_wifi_connect()
150 static void on_wifi_disconnect(WIFI_USER_EVT_ID event_id, void *arg) in on_wifi_disconnect() argument
152 printf("%s event_id:%d\n", __func__, event_id); in on_wifi_disconnect()
153 if (event_id == WIFI_USER_EVT_DISCONNECTED) { in on_wifi_disconnect()
169 static void on_fatal_error(WIFI_USER_EVT_ID event_id, void *arg) in on_fatal_error() argument
171 printf("%s event_id:%d\n", __func__, event_id); in on_fatal_error()
[all …]
/AliOS-Things-master/solutions/ucloud_ai_demo/
A Dmain.c46 static void wifi_service_event(uint32_t event_id, const void *param, void *context) in wifi_service_event() argument
50 if (event_id != EVENT_NETMGR_SNTP_SUCCESS) { in wifi_service_event()
A Dlinkkit_event.c274 int32_t linkkit_send_event_post(void *dm_handle, char *event_id, char *params) in linkkit_send_event_post() argument
280 msg.data.event_post.event_id = event_id; in linkkit_send_event_post()
314 char *event_id = "boss_face_detection"; in user_post_event() local
322 res = linkkit_send_event_post(g_dm_handle, event_id, event_payload); in user_post_event()
/AliOS-Things-master/solutions/eduk1_demo/
A Dapp_start.c49 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
51 switch (event_id) in wifi_event_cb()
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dwifi_port.c65 static void on_wifi_connect(WIFI_USER_EVT_ID event_id, void *arg) in on_wifi_connect() argument
67 printf("%s event_id:%d\n", __func__, event_id); in on_wifi_connect()
69 if (event_id == WIFI_USER_EVT_CONN_INTER_STATE) { in on_wifi_connect()
114 } else if (event_id == WIFI_USER_EVT_CONNECTED) { in on_wifi_connect()
126 } else if (event_id == WIFI_USER_EVT_GOT_IP) { in on_wifi_connect()
152 static void on_wifi_disconnect(WIFI_USER_EVT_ID event_id, void *arg) in on_wifi_disconnect() argument
154 printf("%s event_id:%d\n", __func__, event_id); in on_wifi_disconnect()
155 if (event_id == WIFI_USER_EVT_DISCONNECTED) { in on_wifi_disconnect()
171 static void on_fatal_error(WIFI_USER_EVT_ID event_id, void *arg) in on_fatal_error() argument
173 printf("%s event_id:%d\n", __func__, event_id); in on_fatal_error()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/sendfile/
A Dsendfile_cli.c101 static void wifi_event_cb(uint32_t event_id, const void *param, void *context) in wifi_event_cb() argument
103 if (event_id != EVENT_NETMGR_DHCP_SUCCESS) { in wifi_event_cb()
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/
A Dmodlinkkit.c371 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
377 msg.data.event_post.event_id = event_id; in demo_send_event_post()
592 const char *event_id = mp_obj_str_get_data(eventid, &id_len); in post_event() local
594 size_t ret = demo_send_event_post(dm_handle, event_id, payload); in post_event()
/AliOS-Things-master/components/netmgr/src/
A Dnetmgr_ethernet.c238 static void eth_event_cb(uint32_t event_id, const void *param, void *context) in eth_event_cb() argument
242 …ETH_LOGD("%s:%d, ethernet service not initialized, event_id 0x%x\n", __func__, __LINE__, event_id); in eth_event_cb()
246 switch (event_id) { in eth_event_cb()
261 NETMGR_ETH_LOGD("%s:%d, unexpected event_id 0x%x\n", __func__, __LINE__, event_id); in eth_event_cb()
267 static int eth_dummy_cb(uint32_t event_id, const void *param, void *context) in eth_dummy_cb() argument
269 NETMGR_ETH_LOGD("%s:%d, unexpected event id 0x%x\n", __func__, __LINE__, event_id); in eth_dummy_cb()

Completed in 29 milliseconds

123