Annotation of embedaddon/strongswan/src/libstrongswan/utils/optionsfrom.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * Copyright (C) 2007-2008 Andreas Steffen
        !             3:  *
        !             4:  * HSR Hochschule fuer Technik Rapperswil
        !             5:  *
        !             6:  * This program is free software; you can redistribute it and/or modify it
        !             7:  * under the terms of the GNU General Public License as published by the
        !             8:  * Free Software Foundation; either version 2 of the License, or (at your
        !             9:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
        !            10:  *
        !            11:  * This program is distributed in the hope that it will be useful, but
        !            12:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
        !            13:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
        !            14:  * for more details.
        !            15:  */
        !            16: 
        !            17: /**
        !            18:  * @defgroup optionsfrom optionsfrom
        !            19:  * @{ @ingroup utils
        !            20:  */
        !            21: 
        !            22: #ifndef OPTIONSFROM_H_
        !            23: #define OPTIONSFROM_H_
        !            24: 
        !            25: typedef struct options_t options_t;
        !            26: 
        !            27: /**
        !            28:  * Reads additional command line arguments from a file
        !            29:  */
        !            30: struct options_t {
        !            31: 
        !            32:        /**
        !            33:         * Check if the PKCS#7 contentType is data
        !            34:         *
        !            35:         * @param filename              file containing the options
        !            36:         * @param argcp                 pointer to argc
        !            37:         * @param argvp                 pointer to argv[]
        !            38:         * @param optind                current optind, number of next argument
        !            39:         * @return                              TRUE if optionsfrom parsing successful
        !            40:         */
        !            41:        bool (*from) (options_t * this, char *filename,
        !            42:                                  int *argcp, char **argvp[], int optind);
        !            43: 
        !            44:        /**
        !            45:         * Destroys the options_t object.
        !            46:         */
        !            47:        void (*destroy) (options_t *this);
        !            48: };
        !            49: 
        !            50: /**
        !            51:  * Create an options object.
        !            52:  *
        !            53:  * @return                                     created options_t object
        !            54:  */
        !            55: options_t *options_create(void);
        !            56: 
        !            57: #endif /** OPTIONSFROM_H_ @}*/

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