Fix some compilation warnings and add esp-idf platform for experiment (#454)

And fix some code indent issues.
This commit is contained in:
Wenyong Huang
2020-11-30 16:03:51 +08:00
committed by GitHub
parent 7d8b79a7a7
commit 282831eba5
35 changed files with 342 additions and 363 deletions

View File

@ -396,4 +396,5 @@ module_interface *g_module_interfaces[Module_Max] = {
#else
NULL
#endif
};
};

View File

@ -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);
}

View File

@ -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);

View File

@ -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 *