summaryrefslogtreecommitdiff
path: root/rtclient/rtclient.h
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-14 08:56:40 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-14 08:56:40 +0800
commita7a7bebcecbcd22da76920cd0e46c455ec8b5bc9 (patch)
tree3eadc67c8f4dcef7d5d6602be299e55e949bd833 /rtclient/rtclient.h
parentf36fd455104fcaa083fd1ea2186e65ec0350f208 (diff)
Isolate headers to a directory
Prepare for header system installation
Diffstat (limited to 'rtclient/rtclient.h')
-rw-r--r--rtclient/rtclient.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/rtclient/rtclient.h b/rtclient/rtclient.h
new file mode 100644
index 0000000..a872f37
--- /dev/null
+++ b/rtclient/rtclient.h
@@ -0,0 +1,23 @@
+#ifndef RTCLIENT_H
+#define RTCLIENT_H
+
+#include "rtuser.h"
+#include "rtticket.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ bool rtclient_init(const char *server_url);
+ void rtclient_login(const char *name, const char *password);
+ void rtclient_user_show(struct rt_user **userptr, const char *name);
+ void rtclient_ticket_search(struct rt_ticketlist **listptr, const char *query);
+ void rtclient_ticket_freelist(struct rt_ticketlist *list);
+ void rtclient_user_free(struct rt_user *user);
+ void rtclient_cleanup();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // RTCLIENT_H