From 510c3c86c0601044f057d8cfe6a4f6ab20e54ced Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 10 Dec 2015 07:50:51 +0800 Subject: [PATCH] clean comment style in libwebsockets.h Signed-off-by: Andy Green --- lib/libwebsockets.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 7bd3dd2..1d82ed0 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -178,7 +178,7 @@ extern "C" { #define LWS_EXTERN #endif -#else // NOT WIN32 +#else /* NOT WIN32 */ #include #ifndef MBED_OPERATORS @@ -358,6 +358,9 @@ enum lws_callback_reasons { LWS_CALLBACK_UNLOCK_POLL = 36, LWS_CALLBACK_OPENSSL_CONTEXT_REQUIRES_PRIVATE_KEY = 37, + + LWS_CALLBACK_FILE_OPEN = 38, + LWS_CALLBACK_FILE_SEEK = /****** add new things just above ---^ ******/ @@ -406,12 +409,13 @@ typedef int lws_sockfd_type; #define lws_pollfd pollfd #endif -// argument structure for all external poll related calls -// passed in via 'in' +/* argument structure for all external poll related calls + * passed in via 'in' + */ struct lws_pollargs { - lws_sockfd_type fd; // applicable file descriptor - int events; // the new event mask - int prev_events; // the previous event mask + lws_sockfd_type fd; /* applicable socket descriptor */ + int events; /* the new event mask */ + int prev_events; /* the previous event mask */ }; /* @@ -607,7 +611,7 @@ enum lws_token_indexes { WSI_INIT_TOKEN_MUXURL, }; -struct lws_token_limits {// +struct lws_token_limits { unsigned short token_limit[WSI_TOKEN_COUNT]; }; @@ -1453,7 +1457,7 @@ lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs); #endif #if __x86_64__ -#define _LWS_PAD_SIZE 16 // Intel recommended for best performance. +#define _LWS_PAD_SIZE 16 /* Intel recommended for best performance */ #else #define _LWS_PAD_SIZE LWS_SIZEOFPTR /* Size of a pointer on the target architecture */ #endif -- 2.7.4