"Fossies" - the Fresh Open Source Software Archive

Member "cppcheck-1.89/cfg/libcurl.cfg" (1 Sep 2019, 14564 Bytes) of package /windows/misc/cppcheck-1.89.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0"?>
    2 <def format="2">
    3   <!-- libcurl C API. See https://curl.haxx.se/libcurl/c/ -->
    4   <!-- The libcurl C API is typically include by '#include <curl/curl.h>' -->
    5   <!-- ########## libcurl Types ########## -->
    6   <podtype name="CURLcode"/>
    7   <!-- ########## libcurl defines / macros ########## -->
    8   <define name="CURLE_OK" value="(0)"/>
    9   <!-- ########## libcurl Allocation / Deallocation ########## -->
   10   <resource>
   11     <alloc init="true">curl_easy_init</alloc>
   12     <alloc init="true">curl_easy_duphandle</alloc>
   13     <dealloc>curl_easy_cleanup</dealloc>
   14   </resource>
   15   <memory>
   16     <alloc init="true">curl_easy_escape</alloc>
   17     <alloc init="true">curl_easy_unescape</alloc>
   18     <alloc init="true">curl_escape</alloc>
   19     <alloc init="true">curl_unescape</alloc>
   20     <dealloc>curl_free</dealloc>
   21   </memory>
   22   <memory>
   23     <alloc init="true">curl_getenv</alloc>
   24     <alloc init="true">curl_maprintf</alloc>
   25     <alloc init="true">curl_mvaprintf</alloc>
   26     <dealloc>free</dealloc>
   27   </memory>
   28   <!-- ########## libcurl C API Functions ########## -->
   29   <!-- void curl_easy_cleanup(CURL * handle ); -->
   30   <function name="curl_easy_cleanup">
   31     <noreturn>false</noreturn>
   32     <returnValue type="void"/>
   33     <arg nr="1">
   34       <not-uninit/>
   35       <not-bool/>
   36     </arg>
   37   </function>
   38   <!-- CURL *curl_easy_duphandle(CURL *handle ); -->
   39   <function name="curl_easy_duphandle">
   40     <noreturn>false</noreturn>
   41     <returnValue type="CURL *"/>
   42     <use-retval/>
   43     <arg nr="1">
   44       <not-uninit/>
   45       <not-bool/>
   46     </arg>
   47   </function>
   48   <!-- char *curl_easy_escape( CURL * curl , const char * string , int length ); -->
   49   <function name="curl_easy_escape">
   50     <noreturn>false</noreturn>
   51     <returnValue type="char *"/>
   52     <use-retval/>
   53     <arg nr="1">
   54       <not-uninit/>
   55     </arg>
   56     <arg nr="2" direction="in">
   57       <not-uninit/>
   58     </arg>
   59     <arg nr="3" direction="in">
   60       <not-uninit/>
   61       <not-bool/>
   62       <valid>0:</valid>
   63     </arg>
   64   </function>
   65   <!-- CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ... ); -->
   66   <function name="curl_easy_getinfo">
   67     <noreturn>false</noreturn>
   68     <returnValue type="CURLcode"/>
   69     <leak-ignore/>
   70     <arg nr="1">
   71       <not-uninit/>
   72     </arg>
   73     <arg nr="2" direction="in">
   74       <not-uninit/>
   75     </arg>
   76     <arg nr="3" direction="out">
   77       <not-bool/>
   78     </arg>
   79   </function>
   80   <!-- CURL *curl_easy_init( ); -->
   81   <function name="curl_easy_init">
   82     <noreturn>false</noreturn>
   83     <returnValue type="CURL *"/>
   84     <use-retval/>
   85   </function>
   86   <!-- CURLcode curl_easy_pause(CURL *handle , int bitmask ); -->
   87   <function name="curl_easy_pause">
   88     <noreturn>false</noreturn>
   89     <returnValue type="CURLcode"/>
   90     <leak-ignore/>
   91     <arg nr="1">
   92       <not-uninit/>
   93     </arg>
   94     <arg nr="2" direction="in">
   95       <not-uninit/>
   96       <not-bool/>
   97     </arg>
   98   </function>
   99   <!-- CURLcode curl_easy_perform(CURL * easy_handle ); -->
  100   <function name="curl_easy_perform">
  101     <noreturn>false</noreturn>
  102     <returnValue type="CURLcode"/>
  103     <leak-ignore/>
  104     <arg nr="1">
  105       <not-uninit/>
  106       <not-bool/>
  107     </arg>
  108   </function>
  109   <!-- CURLcode curl_easy_recv( CURL * curl , void * buffer , size_t buflen , size_t * n ); -->
  110   <function name="curl_easy_recv">
  111     <noreturn>false</noreturn>
  112     <returnValue type="CURLcode"/>
  113     <leak-ignore/>
  114     <arg nr="1">
  115       <not-uninit/>
  116     </arg>
  117     <arg nr="2" direction="out">
  118       <minsize type="argvalue" arg="3"/>
  119     </arg>
  120     <arg nr="3" direction="in">
  121       <not-uninit/>
  122       <valid>0:</valid>
  123     </arg>
  124     <arg nr="4" direction="out">
  125       <not-null/>
  126       <not-bool/>
  127     </arg>
  128   </function>
  129   <!-- void curl_easy_reset(CURL *handle ); -->
  130   <function name="curl_easy_reset">
  131     <noreturn>false</noreturn>
  132     <returnValue type="void"/>
  133     <leak-ignore/>
  134     <arg nr="1">
  135       <not-uninit/>
  136     </arg>
  137   </function>
  138   <!-- CURLcode curl_easy_send( CURL * curl , const void * buffer , size_t buflen , size_t * n ); -->
  139   <function name="curl_easy_send">
  140     <noreturn>false</noreturn>
  141     <returnValue type="CURLcode"/>
  142     <leak-ignore/>
  143     <arg nr="1">
  144       <not-uninit/>
  145     </arg>
  146     <arg nr="2" direction="in">
  147       <minsize type="argvalue" arg="3"/>
  148       <not-uninit/>
  149     </arg>
  150     <arg nr="3" direction="in">
  151       <not-uninit/>
  152       <valid>0:</valid>
  153     </arg>
  154     <arg nr="4" direction="out">
  155       <not-null/>
  156       <not-bool/>
  157     </arg>
  158   </function>
  159   <!-- CURLcode curl_easy_setopt(CURL *handle, CURLoption option, parameter); -->
  160   <function name="curl_easy_setopt">
  161     <noreturn>false</noreturn>
  162     <returnValue type="CURLcode"/>
  163     <leak-ignore/>
  164     <arg nr="1">
  165       <not-uninit/>
  166     </arg>
  167     <arg nr="2" direction="in">
  168       <not-uninit/>
  169     </arg>
  170     <arg nr="3" direction="in">
  171       <not-uninit/>
  172     </arg>
  173   </function>
  174   <!-- const char *curl_easy_strerror(CURLcode errornum); -->
  175   <function name="curl_easy_strerror">
  176     <noreturn>false</noreturn>
  177     <returnValue type="const char *"/>
  178     <use-retval/>
  179     <arg nr="1" direction="in">
  180       <not-uninit/>
  181       <not-bool/>
  182     </arg>
  183   </function>
  184   <!-- char *curl_easy_unescape( CURL * curl , const char * url , int inlength , int * outlength ); -->
  185   <function name="curl_easy_unescape">
  186     <noreturn>false</noreturn>
  187     <returnValue type="char *"/>
  188     <arg nr="1">
  189       <not-uninit/>
  190     </arg>
  191     <arg nr="2" direction="in">
  192       <not-uninit/>
  193     </arg>
  194     <arg nr="3" direction="in">
  195       <not-uninit/>
  196       <valid>0:</valid>
  197     </arg>
  198     <arg nr="4" direction="out">
  199       <not-bool/>
  200     </arg>
  201   </function>
  202   <!-- CURLcode curl_easy_upkeep(CURL * handle ); -->
  203   <function name="curl_easy_upkeep">
  204     <noreturn>false</noreturn>
  205     <returnValue type="CURLcode"/>
  206     <leak-ignore/>
  207     <arg nr="1">
  208       <not-uninit/>
  209     </arg>
  210   </function>
  211   <!-- char *curl_escape( const char * url , int length ); -->
  212   <function name="curl_escape">
  213     <noreturn>false</noreturn>
  214     <returnValue type="char *"/>
  215     <use-retval/>
  216     <warn severity="style" alternatives="curl_easy_escape" reason="Obsolete"/>
  217     <arg nr="1" direction="in">
  218       <not-uninit/>
  219     </arg>
  220     <arg nr="2" direction="in">
  221       <not-uninit/>
  222       <not-bool/>
  223       <valid>0:</valid>
  224     </arg>
  225   </function>
  226   <!-- void curl_free( char * ptr ); -->
  227   <function name="curl_free">
  228     <noreturn>false</noreturn>
  229     <returnValue type="void"/>
  230     <arg nr="1"/>
  231   </function>
  232   <!-- char *curl_getenv(const char * name ); -->
  233   <function name="curl_getenv">
  234     <noreturn>false</noreturn>
  235     <returnValue type="char *"/>
  236     <use-retval/>
  237     <warn severity="style">This function will be removed from the public libcurl API in a near future. It will instead be made "available" by source code access only, and then as curlx_getenv().</warn>
  238     <arg nr="1" direction="in">
  239       <not-uninit/>
  240       <not-bool/>
  241     </arg>
  242   </function>
  243   <!-- char *curl_maprintf(const char * format , ...); -->
  244   <function name="curl_maprintf">
  245     <noreturn>false</noreturn>
  246     <returnValue type="char *"/>
  247     <use-retval/>
  248     <warn severity="style">These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects.</warn>
  249     <formatstr/>
  250     <arg nr="1" direction="in">
  251       <formatstr/>
  252       <not-uninit/>
  253     </arg>
  254   </function>
  255   <!-- int curl_mfprintf(FILE * fd , const char * format , ...); -->
  256   <function name="curl_mfprintf">
  257     <returnValue type="int"/>
  258     <noreturn>false</noreturn>
  259     <leak-ignore/>
  260     <warn severity="style" alternatives="fprintf" reason="Obsolete"/>
  261     <arg nr="1" direction="inout">
  262       <not-null/>
  263       <not-uninit/>
  264     </arg>
  265     <formatstr/>
  266     <arg nr="2" direction="in">
  267       <formatstr/>
  268       <not-uninit/>
  269     </arg>
  270   </function>
  271   <!-- int curl_mprintf(const char * format , ...); -->
  272   <function name="curl_mprintf">
  273     <noreturn>false</noreturn>
  274     <returnValue type="int"/>
  275     <leak-ignore/>
  276     <warn severity="style" alternatives="printf" reason="Obsolete"/>
  277     <formatstr/>
  278     <arg nr="1" direction="in">
  279       <formatstr/>
  280       <not-uninit/>
  281     </arg>
  282   </function>
  283   <!-- int curl_msnprintf(char * buffer , size_t maxlength , const char * format , ...);  -->
  284   <function name="curl_msnprintf">
  285     <returnValue type="int"/>
  286     <noreturn>false</noreturn>
  287     <leak-ignore/>
  288     <warn severity="style" alternatives="snprintf" reason="Obsolete"/>
  289     <arg nr="1" direction="out">
  290       <not-uninit/>
  291       <minsize type="argvalue" arg="2"/>
  292     </arg>
  293     <arg nr="2" direction="in">
  294       <not-uninit/>
  295       <valid>0:</valid>
  296     </arg>
  297     <formatstr/>
  298     <arg nr="3" direction="in">
  299       <formatstr/>
  300       <not-null/>
  301       <not-uninit/>
  302     </arg>
  303   </function>
  304   <!-- int curl_msprintf(char * buffer , const char * format , ...); -->
  305   <function name="curl_msprintf">
  306     <returnValue type="int"/>
  307     <noreturn>false</noreturn>
  308     <leak-ignore/>
  309     <warn severity="style" alternatives="sprintf" reason="Obsolete"/>
  310     <arg nr="1" direction="out">
  311       <not-uninit/>
  312       <minsize type="strlen" arg="2"/>
  313     </arg>
  314     <formatstr/>
  315     <arg nr="2" direction="in">
  316       <formatstr/>
  317       <not-null/>
  318       <not-uninit/>
  319     </arg>
  320   </function>
  321   <!-- CURLMcode curl_multi_socket(CURLM * multi_handle, curl_socket_t sockfd, int *running_handles); -->
  322   <function name="curl_multi_socket">
  323     <noreturn>false</noreturn>
  324     <returnValue type="CURLMcode"/>
  325     <leak-ignore/>
  326     <warn severity="style" alternatives="curl_multi_socket_action" reason="Obsolete">Usage of curl_multi_socket is deprecated, whereas the function is equivalent to curl_multi_socket_action with ev_bitmask set to 0.</warn>
  327     <arg nr="1">
  328       <not-null/>
  329       <not-uninit/>
  330     </arg>
  331     <arg nr="2" direction="in">
  332       <not-uninit/>
  333     </arg>
  334     <arg nr="3" direction="out">
  335       <not-null/>
  336       <not-bool/>
  337     </arg>
  338   </function>
  339   <!-- CURLMcode curl_multi_socket_all(CURLM *multi_handle, int *running_handles); -->
  340   <function name="curl_multi_socket_all">
  341     <noreturn>false</noreturn>
  342     <returnValue type="CURLMcode"/>
  343     <leak-ignore/>
  344     <warn severity="style" alternatives="curl_multi_socket_action" reason="Obsolete"/>
  345     <arg nr="1">
  346       <not-null/>
  347       <not-uninit/>
  348     </arg>
  349     <arg nr="2" direction="out">
  350       <not-null/>
  351       <not-bool/>
  352     </arg>
  353   </function>
  354   <!-- char *curl_mvaprintf(const char * format , va_list args ); -->
  355   <function name="curl_mvaprintf">
  356     <returnValue type="char *"/>
  357     <noreturn>false</noreturn>
  358     <use-retval/>
  359     <warn severity="style">These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects.</warn>
  360     <arg nr="1" direction="in">
  361       <not-uninit/>
  362       <formatstr/>
  363     </arg>
  364     <arg nr="2"/>
  365   </function>
  366   <!-- int curl_mvfprintf(FILE * fd , const char * format , va_list args ); -->
  367   <function name="curl_mvfprintf">
  368     <returnValue type="int"/>
  369     <noreturn>false</noreturn>
  370     <leak-ignore/>
  371     <warn severity="style" alternatives="vfprintf" reason="Obsolete"/>
  372     <arg nr="1" direction="inout">
  373       <not-null/>
  374       <not-uninit/>
  375     </arg>
  376     <arg nr="2" direction="in">
  377       <not-uninit/>
  378       <formatstr/>
  379     </arg>
  380     <arg nr="3"/>
  381   </function>
  382   <!-- int curl_mvprintf(const char * format , va_list args ); -->
  383   <function name="curl_mvprintf">
  384     <returnValue type="int"/>
  385     <noreturn>false</noreturn>
  386     <leak-ignore/>
  387     <warn severity="style" alternatives="vprintf" reason="Obsolete"/>
  388     <arg nr="1" direction="in">
  389       <not-uninit/>
  390       <formatstr/>
  391     </arg>
  392     <arg nr="2"/>
  393   </function>
  394   <!-- int curl_mvsnprintf(char * buffer , size_t maxlength , const char * format , va_list args ); -->
  395   <function name="curl_mvsnprintf">
  396     <returnValue type="int"/>
  397     <noreturn>false</noreturn>
  398     <leak-ignore/>
  399     <warn severity="style" alternatives="vsnprintf" reason="Obsolete"/>
  400     <arg nr="1" direction="out">
  401       <not-uninit/>
  402       <minsize type="argvalue" arg="2"/>
  403     </arg>
  404     <arg nr="2" direction="in">
  405       <not-uninit/>
  406       <valid>0:</valid>
  407     </arg>
  408     <arg nr="3" direction="in">
  409       <not-null/>
  410       <not-uninit/>
  411       <formatstr/>
  412     </arg>
  413     <arg nr="4"/>
  414   </function>
  415   <!-- int curl_mvsprintf(char * buffer , const char * format , va_list args ); -->
  416   <function name="curl_mvsprintf">
  417     <returnValue type="int"/>
  418     <noreturn>false</noreturn>
  419     <leak-ignore/>
  420     <warn severity="style" alternatives="vsprintf" reason="Obsolete"/>
  421     <arg nr="1" direction="out">
  422       <not-null/>
  423     </arg>
  424     <arg nr="2" direction="in">
  425       <not-null/>
  426       <not-uninit/>
  427       <formatstr/>
  428     </arg>
  429     <arg nr="3"/>
  430   </function>
  431   <!-- int curl_strequal(char * str1 , char * str2 ); -->
  432   <function name="curl_strequal">
  433     <noreturn>false</noreturn>
  434     <returnValue type="int"/>
  435     <use-retval/>
  436     <pure/>
  437     <leak-ignore/>
  438     <warn severity="style">These functions will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access only, and then as curlx_strequal() and curlx_strenqual().</warn>
  439     <arg nr="1" direction="in">
  440       <not-null/>
  441       <not-uninit/>
  442       <strz/>
  443     </arg>
  444     <arg nr="2" direction="in">
  445       <not-null/>
  446       <not-uninit/>
  447       <strz/>
  448     </arg>
  449   </function>
  450   <!-- int curl_strnequal(char * str1 , char * str2 , size_t len ); -->
  451   <function name="curl_strnequal">
  452     <noreturn>false</noreturn>
  453     <returnValue type="int"/>
  454     <use-retval/>
  455     <pure/>
  456     <leak-ignore/>
  457     <warn severity="style">These functions will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access only, and then as curlx_strequal() and curlx_strenqual().</warn>
  458     <arg nr="1" direction="in">
  459       <not-null/>
  460       <not-uninit/>
  461     </arg>
  462     <arg nr="2" direction="in">
  463       <not-null/>
  464       <not-uninit/>
  465     </arg>
  466     <arg nr="3" direction="in">
  467       <not-uninit/>
  468       <not-bool/>
  469       <valid>0:</valid>
  470     </arg>
  471   </function>
  472   <!-- char *curl_unescape( const char * url , int length ); -->
  473   <function name="curl_unescape">
  474     <noreturn>false</noreturn>
  475     <returnValue type="char *"/>
  476     <use-retval/>
  477     <warn severity="style" alternatives="curl_easy_unescape" reason="Obsolete"/>
  478     <arg nr="1" direction="in">
  479       <not-uninit/>
  480     </arg>
  481     <arg nr="2" direction="in">
  482       <not-uninit/>
  483       <not-bool/>
  484       <valid>0:</valid>
  485     </arg>
  486   </function>
  487 </def>