merged the modularization branch (credentials) back to trunk
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
/**
|
||||
* @file optionsfrom.h
|
||||
*
|
||||
* @brief Read command line options from a file
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2007-2008 Andreas Steffen
|
||||
*
|
||||
@@ -20,7 +13,12 @@
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* RCSID $Id$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup optionsfrom optionsfrom
|
||||
* @{ @ingroup utils
|
||||
*/
|
||||
|
||||
#ifndef OPTIONSFROM_H_
|
||||
@@ -29,41 +27,33 @@
|
||||
typedef struct options_t options_t;
|
||||
|
||||
/**
|
||||
* @brief options object.
|
||||
*
|
||||
* @b Constructors:
|
||||
* - options_create()
|
||||
*
|
||||
* @ingroup utils
|
||||
* Reads additional command line arguments from a file
|
||||
*/
|
||||
struct options_t {
|
||||
|
||||
/**
|
||||
* @brief Check if the PKCS#7 contentType is data
|
||||
* Check if the PKCS#7 contentType is data
|
||||
*
|
||||
* @param this calling object
|
||||
* @param filename file containing the options
|
||||
* @param argcp pointer to argc
|
||||
* @param argvp pointer to argv[]
|
||||
* @param optind current optind, number of next argument
|
||||
* @return TRUE if optionsfrom parsing successful
|
||||
*/
|
||||
bool (*from) (options_t * this, char *filename, int *argcp, char **argvp[], int optind);
|
||||
bool (*from) (options_t * this, char *filename,
|
||||
int *argcp, char **argvp[], int optind);
|
||||
|
||||
/**
|
||||
* @brief Destroys the options_t object.
|
||||
*
|
||||
* @param this options_t object to destroy
|
||||
* Destroys the options_t object.
|
||||
*/
|
||||
void (*destroy) (options_t *this);
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Create an options object.
|
||||
* Create an options object.
|
||||
*
|
||||
* @return created options_t object
|
||||
*
|
||||
* @ingroup utils
|
||||
*/
|
||||
options_t *options_create(void);
|
||||
|
||||
#endif /*OPTIONSFROM_H_*/
|
||||
#endif /*OPTIONSFROM_H_ @} */
|
||||
|
||||
Reference in New Issue
Block a user