From f36fd455104fcaa083fd1ea2186e65ec0350f208 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: Sat, 14 Sep 2019 08:35:45 +0800 Subject: Try a more consistent function naming and more adhering to the REST path names too --- rtclient.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rtclient.c') diff --git a/rtclient.c b/rtclient.c index ea8811a..c623c84 100644 --- a/rtclient.c +++ b/rtclient.c @@ -246,20 +246,20 @@ void rtclient_login(const char *name, const char *password) post = NULL; } -void rtclient_userget(rt_user **userptr, const char *name) +void rtclient_user_show(rt_user **userptr, const char *name) { *userptr = malloc(sizeof(rt_user)); request("/REST/1.0/user/", name, user_callback, (void *)userptr, NULL); } -void rtclient_ticketssearch(rt_ticketlist **listptr, const char *query) +void rtclient_ticket_search(rt_ticketlist **listptr, const char *query) { *listptr = malloc(sizeof(rt_ticketlist)); request("/REST/1.0/search/ticket?query=", query, search_callback , (void *)listptr, NULL); } -void rtclient_userfree(rt_user *user) +void rtclient_user_free(rt_user *user) { free(user->id); free(user->password); @@ -286,7 +286,7 @@ void rtclient_userfree(rt_user *user) user = NULL; } -void rtclient_ticketsfree(rt_ticketlist *list) +void rtclient_ticket_freelist(rt_ticketlist *list) { for (unsigned short i = 0; i < list->length; i++) free(list->tickets[i]); -- cgit v1.2.3