curlx.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_CURLX_H
00002 #define HEADER_CURL_CURLX_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 
00025 /*
00026  * Defines protos and includes all header files that provide the curlx_*
00027  * functions. The curlx_* functions are not part of the libcurl API, but are
00028  * stand-alone functions whose sources can be built and linked by apps if need
00029  * be.
00030  */
00031 
00032 #include <curl/mprintf.h>
00033 /* this is still a public header file that provides the curl_mprintf()
00034    functions while they still are offered publicly. They will be made library-
00035    private one day */
00036 
00037 #include "strcase.h"
00038 /* "strcase.h" provides the strcasecompare protos */
00039 
00040 #include "strtoofft.h"
00041 /* "strtoofft.h" provides this function: curlx_strtoofft(), returns a
00042    curl_off_t number from a given string.
00043 */
00044 
00045 #include "timeval.h"
00046 /*
00047   "timeval.h" sets up a 'struct timeval' even for platforms that otherwise
00048   don't have one and has protos for these functions:
00049 
00050   curlx_tvnow()
00051   curlx_tvdiff()
00052   curlx_tvdiff_secs()
00053 */
00054 
00055 #include "nonblock.h"
00056 /* "nonblock.h" provides curlx_nonblock() */
00057 
00058 #include "warnless.h"
00059 /* "warnless.h" provides functions:
00060 
00061   curlx_ultous()
00062   curlx_ultouc()
00063   curlx_uztosi()
00064 */
00065 
00066 /* Now setup curlx_ * names for the functions that are to become curlx_ and
00067    be removed from a future libcurl official API:
00068    curlx_getenv
00069    curlx_mprintf (and its variations)
00070    curlx_strcasecompare
00071    curlx_strncasecompare
00072 
00073 */
00074 
00075 #define curlx_getenv curl_getenv
00076 #define curlx_mvsnprintf curl_mvsnprintf
00077 #define curlx_msnprintf curl_msnprintf
00078 #define curlx_maprintf curl_maprintf
00079 #define curlx_mvaprintf curl_mvaprintf
00080 #define curlx_msprintf curl_msprintf
00081 #define curlx_mprintf curl_mprintf
00082 #define curlx_mfprintf curl_mfprintf
00083 #define curlx_mvsprintf curl_mvsprintf
00084 #define curlx_mvprintf curl_mvprintf
00085 #define curlx_mvfprintf curl_mvfprintf
00086 
00087 #ifdef ENABLE_CURLX_PRINTF
00088 /* If this define is set, we define all "standard" printf() functions to use
00089    the curlx_* version instead. It makes the source code transparent and
00090    easier to understand/patch. Undefine them first. */
00091 # undef printf
00092 # undef fprintf
00093 # undef sprintf
00094 # undef snprintf
00095 # undef vprintf
00096 # undef vfprintf
00097 # undef vsprintf
00098 # undef vsnprintf
00099 # undef aprintf
00100 # undef vaprintf
00101 
00102 # define printf curlx_mprintf
00103 # define fprintf curlx_mfprintf
00104 # define sprintf curlx_msprintf
00105 # define snprintf curlx_msnprintf
00106 # define vprintf curlx_mvprintf
00107 # define vfprintf curlx_mvfprintf
00108 # define vsprintf curlx_mvsprintf
00109 # define vsnprintf curlx_mvsnprintf
00110 # define aprintf curlx_maprintf
00111 # define vaprintf curlx_mvaprintf
00112 #endif /* ENABLE_CURLX_PRINTF */
00113 
00114 #endif /* HEADER_CURL_CURLX_H */
00115 


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02