summaryrefslogtreecommitdiff
path: root/src/common/server-mainloop.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-27 00:45:54 +0000
committerStef Walter <stef@memberwebs.com>2006-01-27 00:45:54 +0000
commita4f6f05bd37adf54d84561dab6b11365c0e2b860 (patch)
treed7c3220f9bbf8d11d12bea6f80e190aa78c6d1af /src/common/server-mainloop.h
parent965ffa71d8352d53b48d08ffd7fee3e4bcafcfa6 (diff)
Move rrdbot code into right project.
Diffstat (limited to 'src/common/server-mainloop.h')
-rw-r--r--src/common/server-mainloop.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/common/server-mainloop.h b/src/common/server-mainloop.h
deleted file mode 100644
index ceff28d..0000000
--- a/src/common/server-mainloop.h
+++ /dev/null
@@ -1,27 +0,0 @@
-
-#ifndef __SERVER_MAINLOOP_H__
-#define __SERVER_MAINLOOP_H__
-
-#include <stdint.h>
-
-/* TODO: Prefix functions with svr */
-
-#define SERVER_READ 0x01
-#define SERVER_WRITE 0x02
-
-typedef void (*server_socket_callback)(int fd, int type, void* arg);
-/* TODO: We should declare our own time type: 'mstime' */
-typedef int (*server_timer_callback)(uint64_t when, void* arg);
-
-void server_init();
-void server_uninit();
-int server_run();
-void server_stop();
-int server_stopped();
-int server_watch(int fd, int type, server_socket_callback callback, void* arg);
-void server_unwatch(int fd);
-int server_timer(int length, server_timer_callback callback, void* arg);
-int server_oneshot(int length, server_timer_callback callback, void* arg);
-uint64_t server_get_time();
-
-#endif /* __SERVER_MAINLOOP_H__ */