2011-10-04 18:03:20 -04:00
|
|
|
#ifndef HEADER_CURL_TOOL_GETPARAM_H
|
|
|
|
#define HEADER_CURL_TOOL_GETPARAM_H
|
2011-09-17 19:58:18 -04:00
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2012-04-06 17:35:15 -04:00
|
|
|
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2011-09-17 19:58:18 -04:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
|
|
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2012-04-06 17:35:15 -04:00
|
|
|
#include "tool_setup.h"
|
2011-09-17 19:58:18 -04:00
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
typedef enum {
|
2012-11-26 10:23:02 -05:00
|
|
|
PARAM_OK = 0,
|
2011-10-04 18:03:20 -04:00
|
|
|
PARAM_OPTION_AMBIGUOUS,
|
|
|
|
PARAM_OPTION_UNKNOWN,
|
|
|
|
PARAM_REQUIRES_PARAMETER,
|
|
|
|
PARAM_BAD_USE,
|
|
|
|
PARAM_HELP_REQUESTED,
|
|
|
|
PARAM_GOT_EXTRA_PARAMETER,
|
|
|
|
PARAM_BAD_NUMERIC,
|
2012-07-10 17:11:30 -04:00
|
|
|
PARAM_NEGATIVE_NUMERIC,
|
2011-10-04 18:03:20 -04:00
|
|
|
PARAM_LIBCURL_DOESNT_SUPPORT,
|
|
|
|
PARAM_NO_MEM,
|
|
|
|
PARAM_LAST
|
|
|
|
} ParameterError;
|
|
|
|
|
2012-06-08 17:14:30 -04:00
|
|
|
struct Configurable;
|
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
ParameterError getparameter(char *flag,
|
|
|
|
char *nextarg,
|
|
|
|
bool *usedarg,
|
|
|
|
struct Configurable *config);
|
|
|
|
|
|
|
|
#endif /* HEADER_CURL_TOOL_GETPARAM_H */
|
2011-09-17 19:58:18 -04:00
|
|
|
|