From 2dec73680d1f007235d52abd9e1aa6c89ecf361c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 15 Jan 2022 17:22:33 +0800 Subject: Rename rtclient/client.h to rtclient.h --- Makefile.am | 4 ++-- client.c | 2 +- main.c | 2 +- rtclient.h | 16 ++++++++++++++++ rtclient/client.h | 16 ---------------- 5 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 rtclient.h delete mode 100644 rtclient/client.h diff --git a/Makefile.am b/Makefile.am index 8e823f3..b6fee15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,11 +10,11 @@ librtclient_la_SOURCES = \ client.c librtclient_la_CPPFLAGS = -I${prefix}/include librtclient_la_LDFLAGS = -L${prefix}/lib -lcurl +include_HEADERS = rtclient.h pkginclude_HEADERS = \ rtclient/user.h \ rtclient/ticket.h \ - rtclient/search.h \ - rtclient/client.h + rtclient/search.h #bin_PROGRAMS = rtclienttest #rtclienttest_SOURCES = main.c #rtclienttest_LDADD = librtclient.la diff --git a/client.c b/client.c index 8970b84..f452b06 100644 --- a/client.c +++ b/client.c @@ -1,7 +1,7 @@ #include #include #include "request.h" -#include "rtclient/client.h" +#include "rtclient.h" CURL *curl = NULL; char *server_url = NULL; diff --git a/main.c b/main.c index 9a8852c..6c00ffd 100644 --- a/main.c +++ b/main.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/rtclient.h b/rtclient.h new file mode 100644 index 0000000..dac2198 --- /dev/null +++ b/rtclient.h @@ -0,0 +1,16 @@ +#ifndef RTCLIENT_H +#define RTCLIENT_H + +#ifdef __cplusplus +extern "C" { +#endif + + bool rtclient_init(const char *url, const char *certificate); + void rtclient_login(const char *name, const char *password); + void rtclient_cleanup(); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/rtclient/client.h b/rtclient/client.h deleted file mode 100644 index db9918e..0000000 --- a/rtclient/client.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef RTCLIENT_CLIENT_H -#define RTCLIENT_CLIENT_H - -#ifdef __cplusplus -extern "C" { -#endif - - bool rtclient_init(const char *url, const char *certificate); - void rtclient_login(const char *name, const char *password); - void rtclient_cleanup(); - -#ifdef __cplusplus -} -#endif - -#endif // RTCLIENT_CLIENT_H -- cgit v1.2.3