diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-30 12:31:50 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-30 12:31:50 +0800 |
commit | 0588263c5283c85cd4751c2251f3eb7881d7f87f (patch) | |
tree | 523cae25ef373f7447c19fc07acce8bbd8167a4e /rtclient | |
parent | ef01ae33d4f438ac642889ab5e85386d695ee36c (diff) |
Change ticket_search to search_ticket
because search is a different namespace in the REST API
Diffstat (limited to 'rtclient')
-rw-r--r-- | rtclient/search.h | 21 | ||||
-rw-r--r-- | rtclient/ticket.h | 8 |
2 files changed, 21 insertions, 8 deletions
diff --git a/rtclient/search.h b/rtclient/search.h new file mode 100644 index 0000000..e0e386a --- /dev/null +++ b/rtclient/search.h @@ -0,0 +1,21 @@ +#ifndef RTCLIENT_SEARCH_H +#define RTCLIENT_SEARCH_H + +struct rtclient_search_ticket_list { + size_t length; + struct rtclient_ticket *tickets[]; +}; + +#ifdef __cplusplus +extern "C" { +#endif + + void rtclient_search_ticket(struct rtclient_search_ticket_list **listptr + , const char *query); + void rtclient_search_ticket_free(struct rtclient_search_ticket_list *list); + +#ifdef __cplusplus +} +#endif + +#endif // RTCLIENT_SEARCH_H diff --git a/rtclient/ticket.h b/rtclient/ticket.h index db2d031..5ff5c2f 100644 --- a/rtclient/ticket.h +++ b/rtclient/ticket.h @@ -6,11 +6,6 @@ struct rtclient_ticket { char *subject; }; -struct rtclient_ticket_list { - size_t length; - struct rtclient_ticket *tickets[]; -}; - enum rtclient_ticket_history_type { RTCLIENT_TICKET_HISTORY_TYPE_CREATE , RTCLIENT_TICKET_HISTORY_TYPE_EMAILRECORD @@ -60,10 +55,7 @@ extern "C" { , const char *starts , const char *due , const char *text); - void rtclient_ticket_search(struct rtclient_ticket_list **listptr - , const char *query); void rtclient_ticket_history(unsigned int id); - void rtclient_ticket_freelist(struct rtclient_ticket_list *list); #ifdef __cplusplus } |