summaryrefslogtreecommitdiffstats
path: root/server.h
diff options
context:
space:
mode:
authorSimon Rettberg2014-03-15 01:49:50 +0100
committerSimon Rettberg2014-03-15 01:49:50 +0100
commitbedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad (patch)
treec7d1995a09f6ed0c4e6873252e957d72f5d07d07 /server.h
downloadldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.tar.gz
ldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.tar.xz
ldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.zip
Lean and mean initial commit
Not much functionality yet
Diffstat (limited to 'server.h')
-rw-r--r--server.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/server.h b/server.h
new file mode 100644
index 0000000..1463f8a
--- /dev/null
+++ b/server.h
@@ -0,0 +1,28 @@
+#ifndef _SERVER_H_
+#define _SERVER_H_
+
+#include "types.h"
+
+struct string;
+struct SearchRequest;
+
+void server_setBind(const char *server, const char *bind);
+
+void server_setPassword(const char *server, const char *password);
+
+void server_setBase(const char *server, const char *base);
+
+void server_setAlias(const char *server, const char *alias);
+
+void server_initServers();
+
+int server_send(epoll_server_t *server, const char *buffer, size_t len, const BOOL cork);
+
+int server_aliasToBase(struct string *in, struct string *out);
+
+int server_baseToAlias(struct string *in, struct string *out);
+
+uint32_t server_searchRequest(int server, struct SearchRequest *req);
+
+#endif
+