From cb9020218b20470b483197dd6662c0fae3237e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 15 Sep 2019 18:34:46 +0800 Subject: Rename rtclient.h to client.h for consistency --- Makefile.am | 2 +- client.c | 2 +- main.c | 2 +- rtclient/client.h | 19 +++++++++++++++++++ rtclient/rtclient.h | 19 ------------------- 5 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 rtclient/client.h delete mode 100644 rtclient/rtclient.h diff --git a/Makefile.am b/Makefile.am index 0d8b7bb..89f6af1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ librtclient_a_SOURCES = \ rtclient/request.h \ rtclient/user.h \ rtclient/ticket.h \ - rtclient/rtclient.h \ + rtclient/client.h \ request.c \ user.c \ ticket.c \ diff --git a/client.c b/client.c index c8773a3..89f6413 100644 --- a/client.c +++ b/client.c @@ -1,6 +1,6 @@ #include #include "rtclient/request.h" -#include "rtclient/rtclient.h" +#include "rtclient/client.h" CURL *curl = NULL; char *server_url = NULL; diff --git a/main.c b/main.c index 6b75c9b..19e43c2 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ #include #include #include -#include +#include int main(void) { diff --git a/rtclient/client.h b/rtclient/client.h new file mode 100644 index 0000000..dcc8c7e --- /dev/null +++ b/rtclient/client.h @@ -0,0 +1,19 @@ +#ifndef RTCLIENT_H +#define RTCLIENT_H + +#include "user.h" +#include "ticket.h" + +#ifdef __cplusplus +extern "C" { +#endif + + bool rtclient_init(const char *server_url); + void rtclient_login(const char *name, const char *password); + void rtclient_cleanup(); + +#ifdef __cplusplus +} +#endif + +#endif // RTCLIENT_H diff --git a/rtclient/rtclient.h b/rtclient/rtclient.h deleted file mode 100644 index dcc8c7e..0000000 --- a/rtclient/rtclient.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef RTCLIENT_H -#define RTCLIENT_H - -#include "user.h" -#include "ticket.h" - -#ifdef __cplusplus -extern "C" { -#endif - - bool rtclient_init(const char *server_url); - void rtclient_login(const char *name, const char *password); - void rtclient_cleanup(); - -#ifdef __cplusplus -} -#endif - -#endif // RTCLIENT_H -- cgit v1.2.3