1 /* 2 * 3 ***** BEGIN LICENSE BLOCK ***** 4 5 Copyright (C) 2009-2016 Olof Hagsand and Benny Holmgren 6 Copyright (C) 2017-2019 Olof Hagsand 7 8 This file is part of CLIXON. 9 10 Licensed under the Apache License, Version 2.0 (the "License"); 11 you may not use this file except in compliance with the License. 12 You may obtain a copy of the License at 13 14 http://www.apache.org/licenses/LICENSE-2.0 15 16 Unless required by applicable law or agreed to in writing, software 17 distributed under the License is distributed on an "AS IS" BASIS, 18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 See the License for the specific language governing permissions and 20 limitations under the License. 21 22 Alternatively, the contents of this file may be used under the terms of 23 the GNU General Public License Version 3 or later (the "GPL"), 24 in which case the provisions of the GPL are applicable instead 25 of those above. If you wish to allow use of your version of this file only 26 under the terms of the GPL, and not to allow others to 27 use your version of this file under the terms of Apache License version 2, 28 indicate your decision by deleting the provisions above and replace them with 29 the notice and other provisions required by the GPL. If you do not delete 30 the provisions above, a recipient may use your version of this file under 31 the terms of any one of the Apache License version 2 or the GPL. 32 33 ***** END LICENSE BLOCK ***** 34 35 * 36 */ 37 38 #ifndef _BACKEND_HANDLE_H_ 39 #define _BACKEND_HANDLE_H_ 40 41 /* 42 * Prototypes 43 * not exported. 44 */ 45 /* backend handles. Defined in clixon_backend_handle.c */ 46 clicon_handle backend_handle_init(void); 47 48 int backend_handle_exit(clicon_handle h); 49 50 struct client_entry *backend_client_add(clicon_handle h, struct sockaddr *addr); 51 52 struct client_entry *backend_client_list(clicon_handle h); 53 54 int backend_client_delete(clicon_handle h, struct client_entry *ce); 55 56 #endif /* _BACKEND_HANDLE_H_ */ 57