Switch to new coding style
This commit is contained in:
@@ -24,14 +24,14 @@
|
||||
|
||||
|
||||
static void
|
||||
hello_world(aisl_evt_t const evt, void * p_ctx)
|
||||
hello_world(const struct aisl_evt *evt, void *p_ctx)
|
||||
{
|
||||
if (evt->code != AISL_EVENT_STREAM_REQUEST)
|
||||
return;
|
||||
|
||||
aisl_status_t status;
|
||||
AislStatus status;
|
||||
|
||||
aisl_stream_t s = evt->source;
|
||||
AislStream s = evt->source;
|
||||
|
||||
const char html[] =
|
||||
"<html>"
|
||||
@@ -44,11 +44,11 @@ hello_world(aisl_evt_t const evt, void * p_ctx)
|
||||
"</body>"
|
||||
"</html>";
|
||||
|
||||
status = aisl_response(s, AISL_HTTP_OK, sizeof(html)-1);
|
||||
status = aisl_response(s, AISL_HTTP_OK, sizeof (html)-1);
|
||||
|
||||
if (status == AISL_SUCCESS)
|
||||
{
|
||||
if (aisl_write(s, html, sizeof(html)-1) != -1)
|
||||
if (aisl_write(s, html, sizeof (html)-1) != -1)
|
||||
{
|
||||
aisl_flush(s);
|
||||
}
|
||||
@@ -63,8 +63,8 @@ hello_world(aisl_evt_t const evt, void * p_ctx)
|
||||
int
|
||||
main(int argc, char ** argv)
|
||||
{
|
||||
aisl_t aisl; /**< AISL instance pointer */
|
||||
aisl_status_t status; /**< AISL status code */
|
||||
AislInstance aisl; /**< AISL instance pointer */
|
||||
AislStatus status; /**< AISL status code */
|
||||
struct aisl_cfg cfg = AISL_CFG_DEFAULT;
|
||||
struct aisl_cfg_srv srv = {
|
||||
.host = "0.0.0.0",
|
||||
|
||||
Reference in New Issue
Block a user