Fix some compilation warnings and add esp-idf platform for experiment (#454)
And fix some code indent issues.
This commit is contained in:
@ -396,4 +396,5 @@ module_interface *g_module_interfaces[Module_Max] = {
|
||||
#else
|
||||
NULL
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -209,13 +209,14 @@ int aee_host_msg_callback(void *msg, uint16_t msg_len)
|
||||
memset(&request, 0, sizeof(request));
|
||||
|
||||
if (!unpack_request(recv_ctx.message.payload,
|
||||
recv_ctx.message.payload_size, &request))
|
||||
recv_ctx.message.payload_size, &request))
|
||||
continue;
|
||||
|
||||
request.sender = ID_HOST;
|
||||
|
||||
am_dispatch_request(&request);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
app_manager_printf("unexpected host msg type: %d\n", msg_type);
|
||||
}
|
||||
|
||||
|
||||
@ -73,8 +73,8 @@ bool send_error_response_to_host(int mid, int status, const char *msg)
|
||||
}
|
||||
}
|
||||
|
||||
set_response(response, status,
|
||||
FMT_ATTR_CONTAINER, (const char *)payload, payload_len);
|
||||
set_response(response, status, FMT_ATTR_CONTAINER,
|
||||
(const char *)payload, payload_len);
|
||||
response->mid = mid;
|
||||
|
||||
send_response_to_host(response);
|
||||
|
||||
@ -173,11 +173,11 @@ typedef struct host_interface {
|
||||
* @return true if success, false otherwise
|
||||
*/
|
||||
bool
|
||||
app_manager_host_init(host_interface *interface);
|
||||
app_manager_host_init(host_interface *intf);
|
||||
|
||||
/* Startup app manager */
|
||||
void
|
||||
app_manager_startup(host_interface *interface);
|
||||
app_manager_startup(host_interface *intf);
|
||||
|
||||
/* Get queue of current applet */
|
||||
void *
|
||||
|
||||
Reference in New Issue
Block a user