From a589075c75ace73cd21e0c0ee32e31df3f6a5389 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: Tue, 1 Oct 2019 20:50:07 +0800 Subject: Ticket history attachment structure --- rtclient/ticket.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rtclient/ticket.h b/rtclient/ticket.h index 6ed4b67..c48a121 100644 --- a/rtclient/ticket.h +++ b/rtclient/ticket.h @@ -22,6 +22,12 @@ enum rtclient_ticket_history_field { , RTCLIENT_TICKET_HISTORY_FIELD_OWNER }; +struct rtclient_ticket_history_attachment { + unsigned int id; + char *file_name; + size_t size; +}; + struct rtclient_ticket_history { unsigned int id; unsigned int ticket; @@ -37,8 +43,8 @@ struct rtclient_ticket_history { struct tm *created; struct { size_t length; - const char *attachments[]; - }; + struct rtclient_ticket_history_attachment *attachments[]; + } *attachments; }; struct rtclient_ticket_history_list { -- cgit v1.2.3