From 346304da786a652f25f73ee80957ec6fd16716c8 Mon Sep 17 00:00:00 2001 From: Alex Pickering Date: Sun, 12 Sep 2021 16:58:26 -0500 Subject: Line endings to unix Convert all line endings to unix line endings. --- src/lua-nng-http.c | 106 +++++++++++++++++++++++++++-------------------------- 1 file changed, 54 insertions(+), 52 deletions(-) (limited to 'src/lua-nng-http.c') diff --git a/src/lua-nng-http.c b/src/lua-nng-http.c index 61f7401..c3bc89f 100644 --- a/src/lua-nng-http.c +++ b/src/lua-nng-http.c @@ -1,52 +1,54 @@ -#include -#include -#include - -#define NNG_STATIC_LIB - -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void handle_callback(nng_aio *aio){ - -} - -//handler_alloc(string path,function callback) :: http_handler -int lnng_http_handler_alloc(lua_State *L){ - -} - -static const struct luaL_Reg nng_http_handler_m[] = { - {NULL, NULL} -}; - -static const struct luaL_Reg nng_http_f[] = { - {"handler_alloc",lnng_http_handler_alloc}, - {NULL, NULL} -}; - -int luaopen_nng_http(lua_State *L){ - luaL_newmetatable(L,"nng.http.handler"); - luaL_newlib(L,nng_http_handler_m); - lua_setfield(L,-2,"__index"); - lua_pop(L,1); - - luaL_newlib(L,nng_http_f); - return 1; -} +#include +#include +#include + +#define NNG_STATIC_LIB + +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "lua-nng-common.h" + +void handle_callback(nng_aio *aio){ + +} + +//handler_alloc(string path,function callback) :: http_handler +int lnng_http_handler_alloc(lua_State *L){ + +} + +static const struct luaL_Reg nng_http_handler_m[] = { + {NULL, NULL} +}; + +static const struct luaL_Reg nng_http_f[] = { + {"handler_alloc",lnng_http_handler_alloc}, + {NULL, NULL} +}; + +int luaopen_nng_http(lua_State *L){ + luaL_newmetatable(L,"nng.http.handler"); + luaL_newlib(L,nng_http_handler_m); + lua_setfield(L,-2,"__index"); + lua_pop(L,1); + + luaL_newlib(L,nng_http_f); + return 1; +} -- cgit v1.2.3-70-g09d2