Index: aclocal.m4 ================================================================== --- aclocal.m4 +++ aclocal.m4 @@ -134,11 +134,10 @@ SHOBJFLAGS="-fPIC -DPIC" CFLAGS="$CFLAGS -mms-bitfields" CPPFLAGS="$CPPFLAGS -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a' ;; - esac ]) AC_DEFUN(DC_ASK_OPTLIB, [ Index: configure ================================================================== --- configure +++ configure @@ -1,9 +1,9 @@ #! /bin/sh # From configure.ac Revision . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for libconfig 0.1.16. +# Generated by GNU Autoconf 2.59 for libconfig 0.1.17. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## @@ -266,12 +266,12 @@ : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='libconfig' PACKAGE_TARNAME='libconfig' -PACKAGE_VERSION='0.1.16' -PACKAGE_STRING='libconfig 0.1.16' +PACKAGE_VERSION='0.1.17' +PACKAGE_STRING='libconfig 0.1.17' PACKAGE_BUGREPORT='' # Factoring default headers for most tests. ac_includes_default="\ #include @@ -776,11 +776,11 @@ # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libconfig 0.1.16 to adapt to many kinds of systems. +\`configure' configures libconfig 0.1.17 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. @@ -837,11 +837,11 @@ _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libconfig 0.1.16:";; + short | recursive ) echo "Configuration of libconfig 0.1.17:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) @@ -958,11 +958,11 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -libconfig configure 0.1.16 +libconfig configure 0.1.17 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -972,11 +972,11 @@ exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libconfig $as_me 0.1.16, which was +It was created by libconfig $as_me 0.1.17, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF @@ -1427,11 +1427,10 @@ SHOBJFLAGS="-fPIC -DPIC" CFLAGS="$CFLAGS -mms-bitfields" CPPFLAGS="$CPPFLAGS -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' ;; - esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -17450,11 +17449,11 @@ ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by libconfig $as_me 0.1.16, which was +This file was extended by libconfig $as_me 0.1.17, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS @@ -17510,11 +17509,11 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -libconfig config.status 0.1.16 +libconfig config.status 0.1.17 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1,7 +1,7 @@ AC_REVISION($Revision $) -AC_INIT(libconfig, 0.1.16) +AC_INIT(libconfig, 0.1.17) AC_CONFIG_HEADER(config.h) dnl Find out about the host OS DC_CHK_OS_INFO Index: libconfig.c ================================================================== --- libconfig.c +++ libconfig.c @@ -53,14 +53,24 @@ static int lc_process_var_cidr(void *data, const char *value) { return(0); } -static int lc_process_var_ip(void *data, const char *value) { - uint32_t *dataval = NULL, retval = 0; +static int lc_process_var_hostname6(void *data, const char *value) { +} + +static int lc_process_var_hostname4(void *data, const char *value) { +} + +static int lc_process_var_ip6(void *data, const char *value) { +} + +static int lc_process_var_ip4(void *data, const char *value) { + uint32_t *dataval, retval = 0; const char *dotptr = NULL; int tmpval = -1; +// int dotcount dataval = data; dotptr = value; @@ -276,11 +286,21 @@ break; case LC_VAR_SIZE_SIZE_T: return(lc_process_var_sizesizet(data, value)); break; case LC_VAR_IP: - return(lc_process_var_ip(data, value)); + case LC_VAR_IP4: + return(lc_process_var_ip4(data, value)); + break; + case LC_VAR_IP6: + return(lc_process_var_ip6(data, value)); + break; + case LC_VAR_HOSTNAME4: + return(lc_process_var_hostname4(data, value)); + break; + case LC_VAR_HOSTNAME6: + return(lc_process_var_hostname6(data, value)); break; case LC_VAR_CIDR: return(lc_process_var_cidr(data, value)); break; case LC_VAR_TIME: Index: libconfig.h.in ================================================================== --- libconfig.h.in +++ libconfig.h.in @@ -39,10 +39,14 @@ LC_VAR_SECTIONEND, LC_VAR_BOOL_BY_EXISTANCE, LC_VAR_SIZE_SIZE_T, LC_VAR_CIDR, LC_VAR_IP, + LC_VAR_IP4, + LC_VAR_IP6, + LC_VAR_HOSTNAME4, + LC_VAR_HOSTNAME6, } lc_var_type_t; __BLANK_LINE__ typedef enum {