00001
00002
00003
00004
00005 #ifndef _basic_cmdline_h
00006 #define _basic_cmdline_h
00007
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011
00012
00013 #if defined PACKAGE
00014 # undef PACKAGE
00015 #endif
00016 #define PACKAGE "pds-tests"
00017 #if defined VERSION
00018 # undef VERSION
00019 #endif
00020 #define VERSION "0.1"
00021
00022 struct gengetopt_args_info {
00023 char * hostname_arg;
00024 int port_arg;
00025
00026 int help_given ;
00027 int version_given ;
00028 int hostname_given ;
00029 int port_given ;
00030 } ;
00031
00032 int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
00033
00034 void cmdline_parser_print_help(void);
00035 void cmdline_parser_print_version(void);
00036
00037 #ifdef __cplusplus
00038 }
00039 #endif
00040 #endif