Check-in [8e0181d70f]
Overview
Comment:libconfig 0.2.1 Updated typos in man pages, made "SEE ALSO" more consistent Added manpage formatting for new man pages, added lc_handle_type man page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 0.2.1
Files: files | file ages | folders
SHA1:8e0181d70f453e4f4f868582ec23485c9c9a3e89
User & Date: rkeene on 2006-12-17 19:40:53
Other Links: manifest | tags
Context
2006-12-17
19:57
libconfig 0.2.2 Fixed missing install commands for new man pages (oops) check-in: b3554bc362 user: rkeene tags: trunk, 0.2.2
19:40
libconfig 0.2.1 Updated typos in man pages, made "SEE ALSO" more consistent Added manpage formatting for new man pages, added lc_handle_type man page check-in: 8e0181d70f user: rkeene tags: trunk, 0.2.1
19:40
Subversion to Fossil Copy Commit. Please Ignore. Recording copying libconfig.3.in to lc_handle_type.3.in. check-in: 476bfb745f user: rkeene tags: trunk
Changes

Modified build/build_web_manpages from [30cc606ea6] to [daac12e0fd].

     4      4   fi
     5      5   
     6      6   if [ ! -f libconfig.3 ]; then
     7      7   	echo  'Could not find libconfig.3, aborting.' >&2
     8      8   	exit 1
     9      9   fi
    10     10   
    11         -for file in lc_cleanup lc_geterrno lc_geterrstr lc_seterrstr lc_process lc_process_file lc_register_callback lc_register_var libconfig; do
           11  +for file in lc_cleanup lc_geterrno lc_geterrstr lc_seterrstr lc_process lc_process_file lc_register_callback lc_register_var libconfig lc_handle_type; do
    12     12   	man2html -H "REPLACE" -M "/ME" < ${file}.3 | grep -iv '^Content-Type:' | sed 's@"http://REPLACE/ME?\([0-9]*\)+\([^"]*\)"@"\2.htm"@;s@http://REPLACE/ME@@g' > /web/rkeene/docs/oss/libconfig/${file}.htm
    13     13   done
    14     14   

build/prep.sh became executable with contents [3f4d67e154].


Modified configure from [d01fd0ab60] to [b0751438d7].

     1      1   #! /bin/sh
     2      2   # From configure.ac Revision .
     3      3   # Guess values for system-dependent variables and create Makefiles.
     4         -# Generated by GNU Autoconf 2.59 for libconfig 0.2.0.
            4  +# Generated by GNU Autoconf 2.59 for libconfig 0.2.1.
     5      5   #
     6      6   # Copyright (C) 2003 Free Software Foundation, Inc.
     7      7   # This configure script is free software; the Free Software Foundation
     8      8   # gives unlimited permission to copy, distribute and modify it.
     9      9   ## --------------------- ##
    10     10   ## M4sh Initialization.  ##
    11     11   ## --------------------- ##
................................................................................
   264    264   # This variable seems obsolete.  It should probably be removed, and
   265    265   # only ac_max_sed_lines should be used.
   266    266   : ${ac_max_here_lines=38}
   267    267   
   268    268   # Identity of this package.
   269    269   PACKAGE_NAME='libconfig'
   270    270   PACKAGE_TARNAME='libconfig'
   271         -PACKAGE_VERSION='0.2.0'
   272         -PACKAGE_STRING='libconfig 0.2.0'
          271  +PACKAGE_VERSION='0.2.1'
          272  +PACKAGE_STRING='libconfig 0.2.1'
   273    273   PACKAGE_BUGREPORT=''
   274    274   
   275    275   # Factoring default headers for most tests.
   276    276   ac_includes_default="\
   277    277   #include <stdio.h>
   278    278   #if HAVE_SYS_TYPES_H
   279    279   # include <sys/types.h>
................................................................................
   774    774   #
   775    775   # Report the --help message.
   776    776   #
   777    777   if test "$ac_init_help" = "long"; then
   778    778     # Omit some internal or obsolete options to make the list less imposing.
   779    779     # This message is too long to be a string in the A/UX 3.1 sh.
   780    780     cat <<_ACEOF
   781         -\`configure' configures libconfig 0.2.0 to adapt to many kinds of systems.
          781  +\`configure' configures libconfig 0.2.1 to adapt to many kinds of systems.
   782    782   
   783    783   Usage: $0 [OPTION]... [VAR=VALUE]...
   784    784   
   785    785   To assign environment variables (e.g., CC, CFLAGS...), specify them as
   786    786   VAR=VALUE.  See below for descriptions of some of the useful variables.
   787    787   
   788    788   Defaults for the options are specified in brackets.
................................................................................
   835    835     --build=BUILD     configure for building on BUILD [guessed]
   836    836     --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   837    837   _ACEOF
   838    838   fi
   839    839   
   840    840   if test -n "$ac_init_help"; then
   841    841     case $ac_init_help in
   842         -     short | recursive ) echo "Configuration of libconfig 0.2.0:";;
          842  +     short | recursive ) echo "Configuration of libconfig 0.2.1:";;
   843    843      esac
   844    844     cat <<\_ACEOF
   845    845   
   846    846   Optional Features:
   847    847     --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   848    848     --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   849    849     --enable-small          Enable small build of libconfig. (disabled)
................................................................................
   956    956       cd $ac_popdir
   957    957     done
   958    958   fi
   959    959   
   960    960   test -n "$ac_init_help" && exit 0
   961    961   if $ac_init_version; then
   962    962     cat <<\_ACEOF
   963         -libconfig configure 0.2.0
          963  +libconfig configure 0.2.1
   964    964   generated by GNU Autoconf 2.59
   965    965   
   966    966   Copyright (C) 2003 Free Software Foundation, Inc.
   967    967   This configure script is free software; the Free Software Foundation
   968    968   gives unlimited permission to copy, distribute and modify it.
   969    969   _ACEOF
   970    970     exit 0
   971    971   fi
   972    972   exec 5>config.log
   973    973   cat >&5 <<_ACEOF
   974    974   This file contains any messages produced by compilers while
   975    975   running configure, to aid debugging if configure makes a mistake.
   976    976   
   977         -It was created by libconfig $as_me 0.2.0, which was
          977  +It was created by libconfig $as_me 0.2.1, which was
   978    978   generated by GNU Autoconf 2.59.  Invocation command line was
   979    979   
   980    980     $ $0 $@
   981    981   
   982    982   _ACEOF
   983    983   {
   984    984   cat <<_ASUNAME
................................................................................
 17087  17087   
 17088  17088     SHLIBOBJS=""
 17089  17089     for obj in $LIBOBJS; do
 17090  17090       SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`"
 17091  17091     done
 17092  17092   
 17093  17093   
 17094         -                                                                                          ac_config_files="$ac_config_files Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3"
        17094  +                                                                                                              ac_config_files="$ac_config_files Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_seterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3 lc_handle_type.3"
 17095  17095   cat >confcache <<\_ACEOF
 17096  17096   # This file is a shell script that caches the results of configure
 17097  17097   # tests run on this system so they can be shared between configure
 17098  17098   # scripts and configure runs, see configure's option --config-cache.
 17099  17099   # It is not useful on other systems.  If it contains results you don't
 17100  17100   # want to keep, you may remove or edit it.
 17101  17101   #
................................................................................
 17450  17450     echo
 17451  17451     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 17452  17452   ## Running $as_me. ##
 17453  17453   _ASBOX
 17454  17454   } >&5
 17455  17455   cat >&5 <<_CSEOF
 17456  17456   
 17457         -This file was extended by libconfig $as_me 0.2.0, which was
        17457  +This file was extended by libconfig $as_me 0.2.1, which was
 17458  17458   generated by GNU Autoconf 2.59.  Invocation command line was
 17459  17459   
 17460  17460     CONFIG_FILES    = $CONFIG_FILES
 17461  17461     CONFIG_HEADERS  = $CONFIG_HEADERS
 17462  17462     CONFIG_LINKS    = $CONFIG_LINKS
 17463  17463     CONFIG_COMMANDS = $CONFIG_COMMANDS
 17464  17464     $ $0 $@
................................................................................
 17510  17510   $config_headers
 17511  17511   
 17512  17512   Report bugs to <bug-autoconf@gnu.org>."
 17513  17513   _ACEOF
 17514  17514   
 17515  17515   cat >>$CONFIG_STATUS <<_ACEOF
 17516  17516   ac_cs_version="\\
 17517         -libconfig config.status 0.2.0
        17517  +libconfig config.status 0.2.1
 17518  17518   configured by $0, generated by GNU Autoconf 2.59,
 17519  17519     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 17520  17520   
 17521  17521   Copyright (C) 2003 Free Software Foundation, Inc.
 17522  17522   This config.status script is free software; the Free Software Foundation
 17523  17523   gives unlimited permission to copy, distribute and modify it."
 17524  17524   srcdir=$srcdir
................................................................................
 17618  17618     case "$ac_config_target" in
 17619  17619     # Handling of arguments.
 17620  17620     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 17621  17621     "lc_geterrno.3" ) CONFIG_FILES="$CONFIG_FILES lc_geterrno.3" ;;
 17622  17622     "lc_process.3" ) CONFIG_FILES="$CONFIG_FILES lc_process.3" ;;
 17623  17623     "lc_register_var.3" ) CONFIG_FILES="$CONFIG_FILES lc_register_var.3" ;;
 17624  17624     "lc_geterrstr.3" ) CONFIG_FILES="$CONFIG_FILES lc_geterrstr.3" ;;
        17625  +  "lc_seterrstr.3" ) CONFIG_FILES="$CONFIG_FILES lc_seterrstr.3" ;;
 17625  17626     "lc_register_callback.3" ) CONFIG_FILES="$CONFIG_FILES lc_register_callback.3" ;;
 17626  17627     "lc_cleanup.3" ) CONFIG_FILES="$CONFIG_FILES lc_cleanup.3" ;;
 17627  17628     "lc_process_file.3" ) CONFIG_FILES="$CONFIG_FILES lc_process_file.3" ;;
 17628  17629     "libconfig.3" ) CONFIG_FILES="$CONFIG_FILES libconfig.3" ;;
        17630  +  "lc_handle_type.3" ) CONFIG_FILES="$CONFIG_FILES lc_handle_type.3" ;;
 17629  17631     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 17630  17632     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 17631  17633   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 17632  17634      { (exit 1); exit 1; }; };;
 17633  17635     esac
 17634  17636   done
 17635  17637   

Modified configure.ac from [b033e9b94a] to [bca08ee458].

     1      1   AC_REVISION($Revision $)
     2         -AC_INIT(libconfig, 0.2.0)
            2  +AC_INIT(libconfig, 0.2.1)
     3      3   AC_CONFIG_HEADER(config.h)
     4      4   
     5      5   dnl Find out about the host OS
     6      6   DC_CHK_OS_INFO
     7      7   
     8      8   dnl Checks for programs.
     9      9   AC_PROG_CC
................................................................................
    40     40   
    41     41   AC_REPLACE_FUNCS(strsep strtoll getuid)
    42     42   AC_CHECK_FUNCS(getpwuid)
    43     43   
    44     44   dnl This MUST be last.
    45     45   DC_SYNC_SHLIBOBJS
    46     46   
    47         -AC_OUTPUT(Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3)
           47  +AC_OUTPUT(Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_seterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3 lc_handle_type.3)

Modified lc_cleanup.3.in from [efcfee978b] to [d9be810dd5].

    64     64   }
    65     65   .fi
    66     66   
    67     67   .SH "SEE ALSO"
    68     68   .BR libconfig (3),
    69     69   .BR lc_register_var (3),
    70     70   .BR lc_register_callback (3),
    71         -.BR lc_seterrstr (3),
           71  +.BR lc_geterrno (3),
    72     72   .BR lc_geterrstr (3),
    73         -.BR lc_geterrno (3),
    74         -.BR lc_process_file (3),
    75         -.BR lc_process (3)
           73  +.BR lc_seterrstr (3),
           74  +.BR lc_handle_type (3),
           75  +.BR lc_process (3),
           76  +.BR lc_process_file (3)

Modified lc_geterrno.3.in from [d8407e858d] to [b2eddb899a].

    86     86   
    87     87   .SH "SEE ALSO"
    88     88   .BR libconfig (3),
    89     89   .BR lc_register_var (3),
    90     90   .BR lc_register_callback (3),
    91     91   .BR lc_geterrstr (3),
    92     92   .BR lc_seterrstr (3),
    93         -.BR lc_cleanup (3),
           93  +.BR lc_handle_type (3),
           94  +.BR lc_process (3),
    94     95   .BR lc_process_file (3),
    95         -.BR lc_process (3)
           96  +.BR lc_cleanup (3)      

Modified lc_geterrstr.3.in from [36f9da08c6] to [e7698ed55d].

    51     51   	return(EXIT_SUCCESS);
    52     52   }
    53     53   .fi
    54     54   
    55     55   .SH "SEE ALSO"
    56     56   .BR libconfig (3),
    57     57   .BR lc_register_var (3),
    58         -.BR lc_register_callback (3),
    59         -.BR lc_seterrstr (3),
    60         -.BR lc_geterrno (3),
    61         -.BR lc_cleanup (3),
    62         -.BR lc_process_file (3),
    63         -.BR lc_process (3)
           58  +.BR lc_register_callback (3),                          
           59  +.BR lc_geterrno (3),                                                                                                           
           60  +.BR lc_seterrstr (3),                                                                                                          
           61  +.BR lc_handle_type (3),
           62  +.BR lc_process (3),                                                                                                            
           63  +.BR lc_process_file (3),                                                                                                       
           64  +.BR lc_cleanup (3)

Modified lc_handle_type.3.in from [93e1c94d05] to [91ccc08f28].

     1         -.TH LIBCONFIG 3 "25 Oct 04" "@PACKAGE_STRING@"
            1  +.TH LC_HANDLE_TYPE 3 "25 Oct 04" "@PACKAGE_STRING@"
     2      2   .SH NAME
     3         -libconfig \- Consistent configuration library.
            3  +lc_handle_type \- Convert string representation of a value to its correct type
     4      4   
     5      5   .SH SYNOPSIS
     6      6   .B #include <libconfig.h>
     7      7   .sp
     8         -.BI "int lc_register_callback(const char *" var ", char " opt ", lc_var_type_t " type ", int (*" callback ")(const char *, const char *, const char *, const char *, lc_flags_t, void *), void *" extra ");"
     9         -
    10         -.BI "int lc_register_var(const char *" var ", lc_var_type_t " type ", void *" data ", char " opt ");"
    11         -
    12         -.BI "int lc_process(int " argc ", char **" argv ", const char *" appname ", lc_conf_type_t " type ", const char *" extra ");"
    13         -
    14         -.BI "lc_err_t lc_geterrno(void);"
    15         -
    16         -.BI "char *lc_geterrstr(void);"
    17         -
    18         -.BI "void lc_geterrstr(const char *" errstr ");"
            8  +.BI "int lc_handle_type(lc_var_type_t " type ", const char *" value ", void *" data ");"
    19      9   
    20     10   .SH DESCRIPTION
    21         -Libconfig is a library to provide easy access to configuration data in a consistent and logical manner.  Variables (registered through
           11  +.BR lc_handle_type (3)
           12  +converts the string
           13  +.I value
           14  +to the correct type specified by the 
           15  +.I type 
           16  +parameter.  The result is stored in the memory region passed as
           17  +.IR data ,
           18  +which should be of the correct type.  For possible values for
           19  +.I type
           20  +and the corresponding
           21  +.I data
           22  +type, see the
    22     23   .BR lc_register_var (3)
    23         -or
    24         -.BR lc_register_callback (3))
    25         -are processed with the
    26         -.BR lc_process (3)
    27         -and
    28         -.BR lc_process_file (3)
    29         -functions.  Errors can be examined through
    30         -.BR lc_geterrno (3)
    31         -and
    32         -.BR lc_geterrstr (3).
    33         -Clean-up may be performed using the
    34         -.BR lc_cleanup (3)
    35         -function.
           24  +man page.
           25  +
           26  +.SH "RETURN VALUE"
           27  +On success 0 is returned, otherwise -1 is returned.  The memory pointed to by
           28  +.I data
           29  +may be altered in either case.
    36     30   
    37     31   .SH EXAMPLE
    38     32   .nf
    39     33   #include <libconfig.h>
    40     34   #include <stdlib.h>
    41     35   #include <stdio.h>
           36  +
           37  +int callback_size(const char *shortvar, const char *var,
           38  +                  const char *arguments, const char *value,
           39  +                  lc_flags_t flags, void *extra) {
           40  +	size_t size;
           41  +	int lc_ht_ret;
           42  +
           43  +	if (value == NULL) {
           44  +		lc_seterrstr("You must specify an argument to \\
           45  +		              Size.");
           46  +		return(LC_CBRET_ERROR);
           47  +	}
           48  +
           49  +	lc_ht_ret = lc_handle_type(LC_VAR_SIZE_SIZE_T, value, &size);
           50  +	if (lc_ht_ret != 0) {
           51  +		lc_seterrstr("Invalid size specified.");
           52  +		return(LC_CBRET_ERROR);
           53  +	}
           54  +
           55  +	printf("Size: %lu\\n", (unsigned long) size);
           56  +
           57  +	return(LC_CBRET_OKAY);
           58  +}
    42     59   
    43     60   int main(int argc, char **argv) {
    44         -	int lc_p_ret, lc_rv_ret;
    45         -	char *filename = NULL;
           61  +	int lc_rc_ret, lc_p_ret;
    46     62   
    47         -	lc_rv_ret = lc_register_var("File", LC_VAR_STRING,
    48         -	                            &filename, 'f');
           63  +	lc_rc_ret = lc_register_callback("Size", 0, LC_VAR_SIZE_SIZE_T,
           64  +	                                 callback_size, NULL);
    49     65   
    50         -	if (lc_rv_ret != 0) {
    51         -		fprintf(stderr, "Error registering variable: %i.\\n",
    52         -		        lc_geterrno());
           66  +	if (lc_rc_ret != 0) {
           67  +		fprintf(stderr, "Error registering callback.\\n");
    53     68   		return(EXIT_FAILURE);
    54     69   	}
    55     70   
    56     71   	lc_p_ret = lc_process(argc, argv, "example", LC_CONF_APACHE,
    57     72   	                      NULL);
    58     73   
    59     74   	lc_cleanup();
................................................................................
    60     75   
    61     76   	if (lc_p_ret != 0) {
    62     77   		fprintf(stderr, "Error processing configuration: \\
    63     78   		        %s\\n", lc_geterrstr());
    64     79   		return(EXIT_FAILURE);
    65     80   	}
    66     81   
    67         -	if (filename != NULL) {
    68         -		printf("File specified was: %s\\n", filename);
    69         -	} else {
    70         -		printf("No filename specified.\\n");
    71         -	}
    72         -
    73     82   	return(EXIT_SUCCESS);
    74     83   }
    75     84   .fi
           85  +
    76     86   
    77     87   .SH "SEE ALSO"
           88  +.BR libconfig (3),
    78     89   .BR lc_register_var (3),
    79     90   .BR lc_register_callback (3),
    80         -.BR lc_geterr (3),
           91  +.BR lc_geterrno (3),
    81     92   .BR lc_geterrstr (3),
    82     93   .BR lc_seterrstr (3),
    83         -.BR lc_cleanup (3),
    84     94   .BR lc_process (3),
    85         -.BR lc_process_file (3)
           95  +.BR lc_process_file (3),
           96  +.BR lc_cleanup (3)

Modified lc_process.3.in from [0f2dddbaaa] to [86242e9b99].

    97     97   	return(EXIT_SUCCESS);
    98     98   }
    99     99   .fi
   100    100   
   101    101   .SH "SEE ALSO"
   102    102   .BR libconfig (3),
   103    103   .BR lc_register_var (3),
   104         -.BR lc_register_callback (3),
   105         -.BR lc_geterrno (3),
   106         -.BR lc_seterrstr (3),
   107         -.BR lc_geterrstr (3),
   108         -.BR lc_cleanup (3),
   109         -.BR lc_process_file (3)
          104  +.BR lc_register_callback (3),                          
          105  +.BR lc_geterrno (3),                                                                                                           
          106  +.BR lc_geterrstr (3),                                                                                                          
          107  +.BR lc_seterrstr (3),                                                                                                          
          108  +.BR lc_handle_type (3),
          109  +.BR lc_process_file (3),                                                                                                       
          110  +.BR lc_cleanup (3)

Modified lc_process_file.3.in from [aecb56c52b] to [5f7c74f31b].

    59     59   	return(EXIT_SUCCESS);
    60     60   }
    61     61   .fi
    62     62   
    63     63   .SH "SEE ALSO"
    64     64   .BR libconfig (3),
    65     65   .BR lc_register_var (3),
    66         -.BR lc_register_callback (3),
    67         -.BR lc_geterrno (3),
    68         -.BR lc_geterrstr (3),
    69         -.BR lc_seterrstr (3),
    70         -.BR lc_cleanup (3),
    71         -.BR lc_process (3)
           66  +.BR lc_register_callback (3),                          
           67  +.BR lc_geterrno (3),                                                                                                           
           68  +.BR lc_geterrstr (3),                                                                                                          
           69  +.BR lc_seterrstr (3),                                                                                                          
           70  +.BR lc_handle_type (3),
           71  +.BR lc_process (3),                                                                                                            
           72  +.BR lc_cleanup (3)

Modified lc_register_callback.3.in from [9235a07e28] to [3bf961bc83].

   218    218   .TP
   219    219   .B ENOMEM
   220    220   Memory could not be allocated to create the needed internal structures.
   221    221   
   222    222   .SH "SEE ALSO"
   223    223   .BR libconfig (3),
   224    224   .BR lc_register_var (3),
   225         -.BR lc_geterrno (3),
   226         -.BR lc_geterrstr (3),
   227         -.BR lc_seterrstr (3),
   228         -.BR lc_cleanup (3),
   229         -.BR lc_process_file (3),
   230         -.BR lc_process (3)
          225  +.BR lc_geterrno (3),                                                                                                           
          226  +.BR lc_geterrstr (3),                                                                                                          
          227  +.BR lc_seterrstr (3),                                                                                                          
          228  +.BR lc_handle_type (3),
          229  +.BR lc_process (3),                                                                                                            
          230  +.BR lc_process_file (3),                                                                                                       
          231  +.BR lc_cleanup (3)

Modified lc_register_var.3.in from [218061b43e] to [2b8548a5a1].

   146    146   
   147    147   	return(EXIT_SUCCESS);
   148    148   }
   149    149   .fi
   150    150   
   151    151   .SH "SEE ALSO"
   152    152   .BR libconfig (3),
   153         -.BR lc_register_callback (3),
   154         -.BR lc_geterrno (3),
   155         -.BR lc_geterrstr (3),
   156         -.BR lc_seterrstr (3),
   157         -.BR lc_cleanup (3),
   158         -.BR lc_process_file (3),
   159         -.BR lc_process (3)
          153  +.BR lc_register_callback (3),                          
          154  +.BR lc_geterrno (3),                                                                                                           
          155  +.BR lc_geterrstr (3),                                                                                                          
          156  +.BR lc_seterrstr (3),                                                                                                          
          157  +.BR lc_handle_type (3),
          158  +.BR lc_process (3),                                                                                                            
          159  +.BR lc_process_file (3),                                                                                                       
          160  +.BR lc_cleanup (3)

Modified lc_seterrstr.3.in from [eb760dc316] to [4d781cbd7f].

     1         -.TH LC_GETERRSTR 3 "25 Oct 04" "@PACKAGE_STRING@"
            1  +.TH LC_SETERRSTR 3 "25 Oct 04" "@PACKAGE_STRING@"
     2      2   .SH NAME
     3         -lc_geterrstr \- Set an error message from a callback.
            3  +lc_seterrstr \- Set an error message from a callback.
     4      4   
     5      5   .SH SYNOPSIS
     6      6   .B #include <libconfig.h>
     7      7   .sp
     8      8   .BI "void lc_seterrstr(const char *" errstr ");"
     9      9   
    10     10   .SH DESCRIPTION
................................................................................
    13     13   function sets a human readable error message to be returned by
    14     14   .BR lc_geterrstr (3)
    15     15   function when an error is returned from a callback function.  The value is ignored if the error is not related to a callback.
    16     16   
    17     17   .SH "SEE ALSO"
    18     18   .BR libconfig (3),
    19     19   .BR lc_register_var (3),
    20         -.BR lc_register_callback (3),
    21         -.BR lc_geterrno (3),
    22         -.BR lc_geterrstr (3),
    23         -.BR lc_cleanup (3),
    24         -.BR lc_process_file (3),
    25         -.BR lc_process (3)
           20  +.BR lc_register_callback (3),                          
           21  +.BR lc_geterrno (3),                                                                                                           
           22  +.BR lc_geterrstr (3),                                                                                                          
           23  +.BR lc_handle_type (3),
           24  +.BR lc_process (3),                                                                                                            
           25  +.BR lc_process_file (3),                                                                                                       
           26  +.BR lc_cleanup (3)

Modified libconfig.3.in from [93e1c94d05] to [cf1d1a2d27].

    11     11   
    12     12   .BI "int lc_process(int " argc ", char **" argv ", const char *" appname ", lc_conf_type_t " type ", const char *" extra ");"
    13     13   
    14     14   .BI "lc_err_t lc_geterrno(void);"
    15     15   
    16     16   .BI "char *lc_geterrstr(void);"
    17     17   
    18         -.BI "void lc_geterrstr(const char *" errstr ");"
           18  +.BI "void lc_seterrstr(const char *" errstr ");"
           19  +
           20  +.BI "int lc_handle_type(lc_var_type_t " type ", const char *" value ", void *" data ");"
           21  +
           22  +.BI "void lc_cleanup(void);"
    19     23   
    20     24   .SH DESCRIPTION
    21     25   Libconfig is a library to provide easy access to configuration data in a consistent and logical manner.  Variables (registered through
    22     26   .BR lc_register_var (3)
    23     27   or
    24     28   .BR lc_register_callback (3))
    25     29   are processed with the
................................................................................
    73     77   	return(EXIT_SUCCESS);
    74     78   }
    75     79   .fi
    76     80   
    77     81   .SH "SEE ALSO"
    78     82   .BR lc_register_var (3),
    79     83   .BR lc_register_callback (3),
    80         -.BR lc_geterr (3),
           84  +.BR lc_geterrno (3),
    81     85   .BR lc_geterrstr (3),
    82     86   .BR lc_seterrstr (3),
    83         -.BR lc_cleanup (3),
           87  +.BR lc_handle_type (3),
    84     88   .BR lc_process (3),
    85         -.BR lc_process_file (3)
           89  +.BR lc_process_file (3),
           90  +.BR lc_cleanup (3)