From caf6419a0ce3c1b769faa547d82dee29c2ef46d2 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 8 Dec 2023 13:17:52 +0100 Subject: [PATCH] - fast-reload, print queue structure, for output to the remote client. --- daemon/remote.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/daemon/remote.h b/daemon/remote.h index 42abd44a9..91573173f 100644 --- a/daemon/remote.h +++ b/daemon/remote.h @@ -140,6 +140,30 @@ enum fast_reload_notification { fast_reload_notification_printout = 5 }; +/** + * Fast reload printout queue. Contains a list of strings, that need to be + * printed over the file descriptor. + */ +struct fast_reload_printq { + /** if this item is in a list, the previous and next */ + struct fast_reload_printq *prev, *next; + /** if this item is in a list, it is true. */ + int in_list; + /** list of strings to printout */ + struct config_strlist_head* to_print; + /** the current item to print. It is malloced. NULL if none. */ + char* client_item; + /** The length, strlen, of the client_item, that has to be sent. */ + int client_len; + /** The number of bytes sent of client_item. */ + int client_byte_count; + /** the comm point for the client connection, the remote control + * client. */ + struct comm_point* client_cp; + /** the worker that the event is added in */ + struct worker* worker; +}; + /** * Fast reload thread structure */ -- 2.47.2