summaryrefslogtreecommitdiff
path: root/rtclient.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-04 15:23:46 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-04 15:23:46 +0800
commited0d6e131fd94f4ed151df12834feffa777db840 (patch)
treecc8b84e71f2b55ce50c58ec705c0be3e4977fe00 /rtclient.c
parent2ec07c04b8a4ea88cc1a2091130dd3404d950d0d (diff)
Separated the user properties retrieval function
Diffstat (limited to 'rtclient.c')
-rw-r--r--rtclient.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rtclient.c b/rtclient.c
index 306aadc..4f42463 100644
--- a/rtclient.c
+++ b/rtclient.c
@@ -60,6 +60,13 @@ void rtclient_login(const char *name, const char *password)
#endif // ANDROID
}
#endif // DEBUG
+}
+
+void rtclient_user(const char *name)
+{
+#ifdef DEBUG
+ fprintf(stderr, "NAME:\n%s\n", name);
+#endif
static const char *user_path = "/REST/1.0/user/";
char user_url[strlen(server_url) + strlen(user_path) + strlen(name) + 1];
sprintf(user_url, "%s%s%s", server_url, user_path, name);