diff options
author | Aki <please@ignore.pl> | 2020-08-24 18:57:02 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-24 18:57:02 +0200 |
commit | beab4f743429525add08cd22341470c972cb01be (patch) | |
tree | 19c9a8f34c0953d880c3e34f9818314e6169d89f /main.c | |
parent | 96b6d2a1cfccb060fadce11c50737000c7bf036c (diff) | |
download | plop-beab4f743429525add08cd22341470c972cb01be.zip plop-beab4f743429525add08cd22341470c972cb01be.tar.gz plop-beab4f743429525add08cd22341470c972cb01be.tar.bz2 |
Added prefix to plop functions
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,7 +54,7 @@ int main(int argc, char ** argv) return 8; } - if (LUA_OK != load_handler(L, argv[optind])) + if (LUA_OK != plop_load_handler(L, argv[optind])) { return 2; } @@ -69,7 +69,7 @@ int main(int argc, char ** argv) struct epoll_event e; e.events = EPOLLIN; e.data.ptr = NULL; // TODO: Consider putting server's Lua state in here? - const int server = make_server(NULL, service); // TODO: Check server's fd before ctl? + const int server = plop_make_server(NULL, service); // TODO: Check server's fd before ctl? if (-1 == epoll_ctl(efd, EPOLL_CTL_ADD, server, &e)) { @@ -92,14 +92,14 @@ int main(int argc, char ** argv) { if (NULL == events[i].data.ptr) { - if (-1 == handle_server(L, efd, server)) + if (-1 == plop_handle_server(L, efd, server)) { return 6; } } else { - if (-1 == handle_client(L, &events[i])) + if (-1 == plop_handle_client(L, &events[i])) { return 7; } |