Update adapter_loop to handle MSG_EVENT_UPDATE_LICENSE message

This commit is contained in:
eeff
2022-03-17 20:59:05 +08:00
parent 948deee2d4
commit b155c74b4e
+14
View File
@@ -923,6 +923,20 @@ static void adapter_loop(void *arg)
break;
}
case MSG_EVENT_UPDATE_LICENSE: {
const neu_plugin_intf_funs_t *intf_funs = NULL;
neu_request_t req = {};
intf_funs = adapter->plugin_module->intf_funs;
req.req_id = adapter_get_req_id(adapter);
req.req_type = NEU_REQRESP_UPDATE_LICENSE;
req.sender_id = 0;
req.buf_len = 0;
req.buf = NULL;
intf_funs->request(adapter->plugin, &req);
break;
}
case MSG_CMD_SUBSCRIBE_NODE: {
subscribe_node_cmd_t *cmd_ptr;
cmd_ptr = (subscribe_node_cmd_t *) msg_get_buf_ptr(pay_msg);