Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
|
|
/*******************************************************************************
|
|
* FILENAME: tokenize_option_string.h
|
|
* DESCRIPTION: Contains the prototype for the tokenize_option_string
|
|
* routine. Contains the definition of the
|
|
* OptionValuePair structure.
|
|
*
|
|
* ORIGINAL AUTHOR: Bryon Lawrence
|
|
* CREATION DATE: September 22, 2003
|
|
* ORGANIZATION: OHD / HSEB
|
|
* MACHINE: HP-UX, Red Hat Linux
|
|
* MODIFICATION HISTORY:
|
|
* DATE PROGRAMMER DESCRIPTION/REASON
|
|
* 9/22/2003 Bryon Lawrence Original Coding
|
|
********************************************************************************
|
|
*/
|
|
|
|
#ifndef TOKENIZE_OPTION_STRING_H
|
|
#define TOKENIZE_OPTION_STRING_H
|
|
|
|
#include "List.h"
|
|
|
|
#define TOKENIZE_OPTION_OK 0
|
|
#define TOKENIZE_OPTION_MALLOC_ERROR 1
|
|
#define TOKENIZE_OPTION_MISSING_EQUAL 2
|
|
#define TOKENIZE_OPTION_NULL_ARGUMENT 3
|
|
|
|
typedef struct OptionValuePair {
|
|
|
|
Node node ;
|
|
|
|
char * option_name ;
|
|
char ** value_string ;
|
|
int number_of_values ;
|
|
|
|
List list ;
|
|
|
|
} OptionValuePair ;
|
|
|
|
int TokenizeOptionString ( const char * option_string ,
|
|
OptionValuePair ** pOptionValuePair ) ;
|
|
void FreeOptionValueList ( OptionValuePair ** pOptionValuePair ) ;
|
|
|
|
#endif /* #ifndef TOKENIZE_OPTION_STRING_H */
|