Annotation of embedaddon/curl/src/tool_writeout.h, revision 1.1.1.1

1.1       misho       1: #ifndef HEADER_CURL_TOOL_WRITEOUT_H
                      2: #define HEADER_CURL_TOOL_WRITEOUT_H
                      3: /***************************************************************************
                      4:  *                                  _   _ ____  _
                      5:  *  Project                     ___| | | |  _ \| |
                      6:  *                             / __| | | | |_) | |
                      7:  *                            | (__| |_| |  _ <| |___
                      8:  *                             \___|\___/|_| \_\_____|
                      9:  *
                     10:  * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
                     11:  *
                     12:  * This software is licensed as described in the file COPYING, which
                     13:  * you should have received as part of this distribution. The terms
                     14:  * are also available at https://curl.haxx.se/docs/copyright.html.
                     15:  *
                     16:  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
                     17:  * copies of the Software, and permit persons to whom the Software is
                     18:  * furnished to do so, under the terms of the COPYING file.
                     19:  *
                     20:  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
                     21:  * KIND, either express or implied.
                     22:  *
                     23:  ***************************************************************************/
                     24: #include "tool_setup.h"
                     25: 
                     26: typedef enum {
                     27:   VAR_NONE,       /* must be the first */
                     28:   VAR_TOTAL_TIME,
                     29:   VAR_NAMELOOKUP_TIME,
                     30:   VAR_CONNECT_TIME,
                     31:   VAR_APPCONNECT_TIME,
                     32:   VAR_PRETRANSFER_TIME,
                     33:   VAR_STARTTRANSFER_TIME,
                     34:   VAR_SIZE_DOWNLOAD,
                     35:   VAR_SIZE_UPLOAD,
                     36:   VAR_SPEED_DOWNLOAD,
                     37:   VAR_SPEED_UPLOAD,
                     38:   VAR_HTTP_CODE,
                     39:   VAR_HTTP_CODE_PROXY,
                     40:   VAR_HEADER_SIZE,
                     41:   VAR_REQUEST_SIZE,
                     42:   VAR_EFFECTIVE_URL,
                     43:   VAR_CONTENT_TYPE,
                     44:   VAR_NUM_CONNECTS,
                     45:   VAR_REDIRECT_TIME,
                     46:   VAR_REDIRECT_COUNT,
                     47:   VAR_FTP_ENTRY_PATH,
                     48:   VAR_REDIRECT_URL,
                     49:   VAR_SSL_VERIFY_RESULT,
                     50:   VAR_PROXY_SSL_VERIFY_RESULT,
                     51:   VAR_EFFECTIVE_FILENAME,
                     52:   VAR_PRIMARY_IP,
                     53:   VAR_PRIMARY_PORT,
                     54:   VAR_LOCAL_IP,
                     55:   VAR_LOCAL_PORT,
                     56:   VAR_HTTP_VERSION,
                     57:   VAR_SCHEME,
                     58:   VAR_STDOUT,
                     59:   VAR_STDERR,
                     60:   VAR_JSON,
                     61:   VAR_NUM_OF_VARS /* must be the last */
                     62: } writeoutid;
                     63: 
                     64: typedef enum {
                     65:   JSON_NONE,
                     66:   JSON_STRING,
                     67:   JSON_LONG,
                     68:   JSON_OFFSET,
                     69:   JSON_TIME,
                     70:   JSON_VERSION,
                     71:   JSON_FILENAME
                     72: } jsontype;
                     73: 
                     74: struct writeoutvar {
                     75:   const char *name;
                     76:   writeoutid id;
                     77:   int is_ctrl;
                     78:   CURLINFO cinfo;
                     79:   jsontype jsontype;
                     80: };
                     81: 
                     82: void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo);
                     83: 
                     84: #endif /* HEADER_CURL_TOOL_WRITEOUT_H */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>