summaryrefslogtreecommitdiff
path: root/rtclient
diff options
context:
space:
mode:
Diffstat (limited to 'rtclient')
-rw-r--r--rtclient/ticket.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/rtclient/ticket.h b/rtclient/ticket.h
index 44d2245..f4e9d5f 100644
--- a/rtclient/ticket.h
+++ b/rtclient/ticket.h
@@ -11,6 +11,37 @@ struct rtclient_ticket_list {
struct rtclient_ticket *tickets[];
};
+enum rtclient_ticket_history_type {
+ RTCLIENT_TICKET_HISTORY_TYPE_CREATE
+ , RTCLIENT_TICKET_HISTORY_TYPE_EMAILRECORD
+ , RTCLIENT_TICKET_HISTORY_TYPE_SET
+ , RTCLIENT_TICKET_HISTORY_TYPE_SETWATCHER
+ , RTCLIENT_TICKET_HISTORY_TYPE_STATUS
+};
+
+enum rtclient_ticket_history_field {
+ RTCLIENT_TICKET_HISTORY_FIELD_NONE
+ , RTCLIENT_TICKET_HISTORY_FIELD_PRIORITY
+ , RTCLIENT_TICKET_HISTORY_FIELD_STATUS
+ , RTCLIENT_TICKET_HISTORY_FIELD_OWNER
+};
+
+struct rtclient_ticket_history {
+ unsigned int id;
+ unsigned int ticket;
+ unsigned int time_taken;
+ enum rtclient_ticket_history_type type;
+ enum rtclient_ticket_history_field field;
+ const char *old_value;
+ const char *new_value;
+ const char *data;
+ const char *description;
+ const char *content;
+ const char *creator;
+ struct tm *created;
+ const char *attachments;
+};
+
#ifdef __cplusplus
extern "C" {
#endif