From 316a8686aac06ca326c65e624559a8f7ae8b73f1 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, 8 Sep 2019 23:04:41 +0800 Subject: Functions to get user info and to free it --- rtclient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rtclient.h') diff --git a/rtclient.h b/rtclient.h index bdf6965..32028b1 100644 --- a/rtclient.h +++ b/rtclient.h @@ -9,8 +9,9 @@ extern "C" { bool rtclient_init(const char *server_url); void rtclient_login(const char *name, const char *password); - struct rt_user *rtclient_user(const char *name); + bool rtclient_get_user(struct rt_user **user, const char *name); void rtclient_search(const char *query); + void rtclient_user_free(struct rt_user *user); void rtclient_cleanup(); #ifdef __cplusplus -- cgit v1.2.3