summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 12:13:00 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 12:13:00 +0800
commitef01ae33d4f438ac642889ab5e85386d695ee36c (patch)
tree71dea43175144febdf0f0173574abc6fd9a31fff
parent806ee6152735a38da0dbde949a5f7947d8931db5 (diff)
Rename callback to handler
-rw-r--r--ticket.c4
-rw-r--r--user.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/ticket.c b/ticket.c
index 1e064fc..360d138 100644
--- a/ticket.c
+++ b/ticket.c
@@ -39,7 +39,7 @@ void rtclient_ticket_new(const char *queue
}, 28);
}
-static size_t search_callback(void *contents, size_t size, size_t nmemb
+static size_t search_handler(void *contents, size_t size, size_t nmemb
, void *writedata)
{
size_t realsize = size * nmemb;
@@ -101,7 +101,7 @@ void rtclient_ticket_search(rtclient_ticket_list **listptr, const char *query)
{
*listptr = malloc(sizeof(rtclient_ticket_list));
(*listptr)->length = 0;
- request(search_callback, (void *)listptr, NULL, "%s%s"
+ request(search_handler, (void *)listptr, NULL, "%s%s"
, "REST/1.0/search/ticket?query=", query);
}
diff --git a/user.c b/user.c
index 5612aba..be9bdd2 100644
--- a/user.c
+++ b/user.c
@@ -54,7 +54,7 @@ void rtclient_user_new(const char *name
}, 40);
}
-static size_t show_callback(void *contents, size_t size, size_t nmemb
+static size_t show_handler(void *contents, size_t size, size_t nmemb
, void *writedata)
{
size_t realsize = size * nmemb;
@@ -214,14 +214,14 @@ static inline void user_init(rtclient_user **userptr)
void rtclient_user_showid(rtclient_user **userptr, unsigned int id)
{
user_init(userptr);
- request(show_callback, (void *)userptr, NULL, "%s%u", "REST/1.0/user/"
+ request(show_handler, (void *)userptr, NULL, "%s%u", "REST/1.0/user/"
, id);
}
void rtclient_user_showname(rtclient_user **userptr, const char *name)
{
user_init(userptr);
- request(show_callback, (void *)userptr, NULL, "%s%s", "REST/1.0/user/"
+ request(show_handler, (void *)userptr, NULL, "%s%s", "REST/1.0/user/"
, name);
}