gnunet_util_lib.h (3126B)
1 /* 2 This file is part of GNUnet 3 Copyright (C) 2009 GNUnet e.V. 4 5 GNUnet is free software: you can redistribute it and/or modify it 6 under the terms of the GNU Affero General Public License as published 7 by the Free Software Foundation, either version 3 of the License, 8 or (at your option) any later version. 9 10 GNUnet is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Affero General Public License for more details. 14 15 You should have received a copy of the GNU Affero General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 SPDX-License-Identifier: AGPL3.0-or-later 19 */ 20 21 /** 22 * @author Christian Grothoff 23 * 24 * @file 25 * Convenience header including all headers of subsystems in the gnunet_util library 26 * 27 * @see [Documentation](https://gnunet.org/libgnuneutil) 28 */ 29 30 #ifndef GNUNET_UTIL_LIB_H 31 #define GNUNET_UTIL_LIB_H 32 33 #define __GNUNET_UTIL_LIB_H_INSIDE__ 34 35 #include <sys/socket.h> 36 37 #ifdef __cplusplus 38 extern "C" 39 { 40 #if 0 /* keep Emacsens' auto-indent happy */ 41 } 42 #endif 43 #endif 44 45 46 /** 47 * Largest supported message (to be precise, one byte more 48 * than the largest possible message, so tests involving 49 * this value should check for messages being smaller than 50 * this value). 51 */ 52 #define GNUNET_MAX_MESSAGE_SIZE 65536 53 54 /** 55 * Smallest supported message. 56 */ 57 #define GNUNET_MIN_MESSAGE_SIZE sizeof(struct GNUNET_MessageHeader) 58 59 /** 60 * NOTE: You MUST adjust this URL to point to the location of a 61 * publicly accessible repository (or TGZ) containing the sources of 62 * THIS release. Otherwise, you are violating the Affero GPL if you make 63 * this service available to anyone but yourself. 64 */ 65 #define GNUNET_AGPL_URL "https://git.gnunet.org/gnunet.git/tag/?h=v" \ 66 GNUNET_VERSION 67 68 #include "gnunet_config.h" 69 #include "gnunet_common.h" 70 #include "gnunet_crypto_lib.h" 71 #include "gnunet_bandwidth_lib.h" 72 #include "gnunet_bio_lib.h" 73 #include "gnunet_buffer_lib.h" 74 #include "gnunet_client_lib.h" 75 #include "gnunet_container_lib.h" 76 #include "gnunet_getopt_lib.h" 77 #include "gnunet_helper_lib.h" 78 #include "gnunet_mst_lib.h" 79 #include "gnunet_mq_lib.h" 80 #include "gnunet_nat_lib.h" 81 #include "gnunet_nt_lib.h" 82 #include "gnunet_nc_lib.h" 83 #include "gnunet_os_lib.h" 84 #include "gnunet_peer_lib.h" 85 #include "gnunet_plugin_lib.h" 86 #include "gnunet_program_lib.h" 87 #include "gnunet_protocols.h" 88 #include "gnunet_service_lib.h" 89 #include "gnunet_signal_lib.h" 90 #include "gnunet_strings_lib.h" 91 #include "gnunet_tun_lib.h" 92 #include "gnunet_dnsstub_lib.h" 93 #include "gnunet_dnsparser_lib.h" 94 #include "gnunet_child_management_lib.h" 95 #include "gnunet_error_codes.h" 96 97 98 /** 99 * Stringify operator. 100 * 101 * @param a some expression to stringify. Must NOT be a macro. 102 * @return same expression as a constant string. 103 */ 104 #define GNUNET_S(a) #a 105 106 107 #if 0 /* keep Emacsens' auto-indent happy */ 108 { 109 #endif 110 #ifdef __cplusplus 111 } 112 #endif 113 114 #undef __GNUNET_UTIL_LIB_H_INSIDE__ 115 116 #endif