mhd_bool.h (2448B)
1 /* SPDX-License-Identifier: LGPL-2.1-or-later OR (GPL-2.0-or-later WITH eCos-exception-2.0) */ 2 /* 3 This file is part of GNU libmicrohttpd. 4 Copyright (C) 2024 Christian Grothoff 5 Copyright (C) 2024 Evgeny Grin (Karlson2k) 6 7 GNU libmicrohttpd is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 2.1 of the License, or (at your option) any later version. 11 12 GNU libmicrohttpd is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Lesser General Public License for more details. 16 17 Alternatively, you can redistribute GNU libmicrohttpd and/or 18 modify it under the terms of the GNU General Public License as 19 published by the Free Software Foundation; either version 2 of 20 the License, or (at your option) any later version, together 21 with the eCos exception, as follows: 22 23 As a special exception, if other files instantiate templates or 24 use macros or inline functions from this file, or you compile this 25 file and link it with other works to produce a work based on this 26 file, this file does not by itself cause the resulting work to be 27 covered by the GNU General Public License. However the source code 28 for this file must still be made available in accordance with 29 section (3) of the GNU General Public License v2. 30 31 This exception does not invalidate any other reasons why a work 32 based on this file might be covered by the GNU General Public 33 License. 34 35 You should have received copies of the GNU Lesser General Public 36 License and the GNU General Public License along with this library; 37 if not, see <https://www.gnu.org/licenses/>. 38 */ 39 40 /** 41 * @file src/mhd2/mhd_bool.h 42 * @brief The definition of the enum MHD_Bool, which is used in public API 43 * @author Karlson2k (Evgeny Grin) 44 */ 45 46 #ifndef MHD_BOOL_H 47 #define MHD_BOOL_H 1 48 49 #include "mhd_sys_options.h" 50 51 #ifndef MHD_BOOL_DEFINED 52 53 enum MHD_Bool 54 { 55 /** 56 * MHD-internal return code for "NO". 57 */ 58 MHD_NO = 0 59 , 60 /** 61 * MHD-internal return code for "YES". All non-zero values 62 * will be interpreted as "YES", but MHD will only ever 63 * return #MHD_YES or #MHD_NO. 64 */ 65 MHD_YES = 1 66 }; 67 68 69 #define MHD_BOOL_DEFINED 1 70 #endif /* ! MHD_BOOL_DEFINED */ 71 72 #endif /* ! MHD_BOOL_H */