]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- fast-reload, print queue structure, for output to the remote client.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Dec 2023 12:17:52 +0000 (13:17 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Dec 2023 12:17:52 +0000 (13:17 +0100)
daemon/remote.h

index 42abd44a974cff5547d589e225b20022d73218e5..91573173fcfc6baf3170eaee6fe45258007e3f53 100644 (file)
@@ -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
  */