From: W.C.A. Wijngaards Date: Fri, 8 Dec 2023 12:17:52 +0000 (+0100) Subject: - fast-reload, print queue structure, for output to the remote client. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf6419a0ce3c1b769faa547d82dee29c2ef46d2;p=thirdparty%2Funbound.git - fast-reload, print queue structure, for output to the remote client. --- 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 */