1 1.1 christos /* 2 1.1 christos * libunbound/remote.h - prototypes for remote control methods. 3 1.1 christos * 4 1.1 christos * Copyright (c) 2026, NLnet Labs. All rights reserved. 5 1.1 christos * 6 1.1 christos * This software is open source. 7 1.1 christos * 8 1.1 christos * Redistribution and use in source and binary forms, with or without 9 1.1 christos * modification, are permitted provided that the following conditions 10 1.1 christos * are met: 11 1.1 christos * 12 1.1 christos * Redistributions of source code must retain the above copyright notice, 13 1.1 christos * this list of conditions and the following disclaimer. 14 1.1 christos * 15 1.1 christos * Redistributions in binary form must reproduce the above copyright notice, 16 1.1 christos * this list of conditions and the following disclaimer in the documentation 17 1.1 christos * and/or other materials provided with the distribution. 18 1.1 christos * 19 1.1 christos * Neither the name of the NLNET LABS nor the names of its contributors may 20 1.1 christos * be used to endorse or promote products derived from this software without 21 1.1 christos * specific prior written permission. 22 1.1 christos * 23 1.1 christos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 1.1 christos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 1.1 christos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 1.1 christos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 1.1 christos * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 1.1 christos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 29 1.1 christos * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 1.1 christos * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 1.1 christos * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 1.1 christos * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 1.1 christos * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 1.1 christos */ 35 1.1 christos 36 1.1 christos /** 37 1.1 christos * \file 38 1.1 christos * 39 1.1 christos * This file declares the methods that must be implemented to use the 40 1.1 christos * remote control service. 41 1.1 christos */ 42 1.1 christos 43 1.1 christos #ifndef LIBUNBOUND_REMOTE_H 44 1.1 christos #define LIBUNBOUND_REMOTE_H 45 1.1 christos 46 1.1 christos struct comm_reply; 47 1.1 christos struct comm_point; 48 1.1 christos 49 1.1 christos /** fast reload thread commands to remote service thread event callback */ 50 1.1 christos void fast_reload_service_cb(int fd, short bits, void* arg); 51 1.1 christos 52 1.1 christos /** fast reload callback for the remote control client connection */ 53 1.1 christos int fast_reload_client_callback(struct comm_point* c, void* arg, int err, 54 1.1 christos struct comm_reply* rep); 55 1.1 christos 56 1.1 christos /** handle remote control accept callbacks */ 57 1.1 christos int remote_accept_callback(struct comm_point*, void*, int, struct comm_reply*); 58 1.1 christos 59 1.1 christos /** handle remote control data callbacks */ 60 1.1 christos int remote_control_callback(struct comm_point*, void*, int, struct comm_reply*); 61 1.1 christos 62 1.1 christos /** routine to printout option values over SSL */ 63 1.1 christos void remote_get_opt_ssl(char* line, void* arg); 64 1.1 christos 65 1.1 christos #endif /* LIBUNBOUND_REMOTE_H */ 66