doxygen annotations for popt.
authorjbj <devnull@localhost>
Tue, 2 Jan 2001 17:19:34 +0000 (17:19 +0000)
committerjbj <devnull@localhost>
Tue, 2 Jan 2001 17:19:34 +0000 (17:19 +0000)
CVS patchset: 4401
CVS date: 2001/01/02 17:19:34

35 files changed:
Doxyfile.in
lib/cpio.h
lib/rpmlib.h
lib/signature.c
po/cs.po
po/da.po
po/de.po
po/es.po
po/fi.po
po/fr.po
po/gl.po
po/hu.po
po/id.po
po/is.po
po/it.po
po/ja.po
po/ko.po
po/no.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ro.po
po/rpm.pot
po/ru.po
po/sk.po
po/sl.po
po/sr.po
po/sv.po
po/tr.po
po/uk.po
po/wa.po
po/zh.po
po/zh_CN.GB2312.po
popt/findme.h
popt/popt.h

index 2e845a1..142cb9b 100644 (file)
@@ -315,7 +315,6 @@ INPUT                  = \
        ./lib/signature.h \
        ./lib/stringbuf.c \
        ./lib/stringbuf.h \
-       ./lib/stubs.c \
        ./lib/tagName.c \
        ./lib/tagtable.c \
        ./lib/transaction.c \
@@ -336,6 +335,7 @@ INPUT                  = \
        ./rpmio/rpmmessages.h \
        ./rpmio/rpmrpc.c \
        ./rpmio/rpmurl.h \
+       ./rpmio/stubs.c \
        ./rpmio/ugid.c \
        ./rpmio/ugid.h \
        ./rpmio/url.c \
index e7df1a1..5002416 100644 (file)
@@ -145,7 +145,7 @@ int cpioBuildArchive(FD_t cfd, const struct cpioFileMapping * mappings,
 int cpioFileMapCmp(const void * a, const void * b)     /*@*/;
 
 /** \ingroup payload
- * Return fornmatted error message on payload handling failure.
+ * Return formatted error message on payload handling failure.
  * @param              error code
  * @return             formatted error string
  */
index 7789755..b837c7f 100644 (file)
@@ -1032,7 +1032,7 @@ typedef enum rpmprobFilterFlags_e {
 } rpmprobFilterFlags;
 
 /** \ingroup rpmtrans
- * Process all packages in transactions set.
+ * Process all packages in transaction set.
  * @param ts           rpm transaction set
  * @param notify       progress callback
  * @param notifyData   progress callback private data
index b014fba..75f3dea 100644 (file)
@@ -641,7 +641,7 @@ verifyGPGSignature(const char *datafile, const void * sig, int count, char *resu
     result[0] = '\0';
     while (fgets(buf, 1024, file)) {
        strcat(result, buf);
-       if (!strncmp("gpg: Can't check signature: Public key not found", buf, 48)) {
+       if (!strncasecmp("gpg: Can't check signature: Public key not found", buf, 48)) {
            res = RPMSIG_NOKEY;
        }
     }
index 3e631d6..7503a4f 100644 (file)
--- a/po/cs.po
+++ b/po/cs.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-08-23 22:24+0100\n"
 "Last-Translator: Milan Kerslager <milan.kerslager@spsselib.hiedu.cz>\n"
 "Language-Team: Czech <cs@li.org>\n"
index badb6b1..bd871aa 100644 (file)
--- a/po/da.po
+++ b/po/da.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-03-07 05:17+01:00\n"
 "Last-Translator: K. Christiansen <kenneth@gnu.org>\n"
 "Language-Team: Danish/Dansk <dansk@klid.dk>\n"
index 6bfb310..6098d9c 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -37,7 +37,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 1998-08-03 18:02+02:00\n"
 "Last-Translator: Karl Eichwalder <ke@SuSE.DE>\n"
 "Language-Team: German <de@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/es.po
+++ b/po/es.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 3b56c59..1bbdfd8 100644 (file)
--- a/po/fi.po
+++ b/po/fi.po
@@ -1,6 +1,6 @@
 msgid ""
 msgstr ""
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "Last-Translator: Raimo Koski <rkoski@pp.weppi.fi>\n"
 "Language-Team: Finnish <linux@sot.com>\n"
 "Content-Type: text/plain; charset=\n"
index e8fa3cd..8c9a1c5 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -1,5 +1,5 @@
 msgid ""
-msgstr "POT-Creation-Date: 2001-01-01 19:11-0500\n"
+msgstr "POT-Creation-Date: 2001-01-01 19:44-0500\n"
 
 #: build.c:26
 #, fuzzy, c-format
index 6980bbc..8faba4c 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/id.po
+++ b/po/id.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index aeef665..ffbe891 100644 (file)
--- a/po/is.po
+++ b/po/is.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-08-02 13:00+0000\n"
 "Last-Translator: Richard Allen <ra@hp.is>\n"
 "Language-Team: is <kde-isl@mmedia.is>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 092b896..3dd90a2 100644 (file)
--- a/po/ja.po
+++ b/po/ja.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 1999-12-01 22:49 +JST\n"
 "Last-Translator: Kanda Mitsuru <kanda@nn.iij4u.or.jp>\n"
 "Language-Team: JRPM <jrpm@linux.or.jp>\n"
@@ -88,7 +88,7 @@ msgstr "
 # build root [BuildRoot]
 # net share [¥Í¥Ã¥È¶¦Í­]
 # reloate [ºÆÇÛÃÖ/°ÜÆ°¤¹¤ë]
-# $Id: ja.po,v 1.138 2001/01/02 00:12:03 jbj Exp $
+# $Id: ja.po,v 1.139 2001/01/02 17:19:36 jbj Exp $
 #: rpm.c:185 rpmqv.c:386
 #, c-format
 msgid "rpm: %s\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/ko.po
+++ b/po/ko.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 70f0c5c..3da4953 100644 (file)
--- a/po/no.po
+++ b/po/no.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-08-17 20:22+02:00\n"
 "Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n"
 "Language-Team: Norwegian <no@li.org>\n"
index 053d0d1..5d696df 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -8,7 +8,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 1999-05-25 17:00+0100\n"
 "Last-Translator: Pawe³ Dziekoñski <pdziekonski@mml.ch.pwr.wroc.pl>\n"
 "Language-Team: Polish <pl@li.org>\n"
index 33cc3ad..25ebae7 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-08-01 21:11+01:00\n"
 "Last-Translator: Pedro Morais <morais@poli.org>\n"
 "Language-Team: pt <morais@poli.org>\n"
index 593c3ab..caf51fe 100644 (file)
@@ -2,7 +2,7 @@
 # Revised by Arnaldo Carvalho de Melo <acme@conectiva.com.br>, 1998.
 #
 msgid ""
-msgstr "POT-Creation-Date: 2001-01-01 19:11-0500\n"
+msgstr "POT-Creation-Date: 2001-01-01 19:44-0500\n"
 
 # , c-format
 #: build.c:26
index 01ea063..ce536ac 100644 (file)
--- a/po/ro.po
+++ b/po/ro.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 1999-04-10 12:00+EST\n"
 "Last-Translator: Cristian Gafton <gafton@redhat.com>\n"
 "Language-Team: Romanian <ro@li.org>\n"
index 9e81868..33cc77d 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index ed96416..cabdea3 100644 (file)
--- a/po/ru.po
+++ b/po/ru.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-08-08 01:20+0300\n"
 "Last-Translator: Eugene Kanter <eugene@blackcatlinux.com>\n"
 "Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n"
index 08f38e2..967f58d 100644 (file)
--- a/po/sk.po
+++ b/po/sk.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 1999-04-08 21:37+02:00\n"
 "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n"
 "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n"
index 9b113c7..ad51e25 100644 (file)
--- a/po/sl.po
+++ b/po/sl.po
@@ -1,12 +1,12 @@
 # -*- mode:po; coding:iso-latin-2; -*- Slovenian messages for Redhat pkg. mngr.
 # Copyright (C) 2000 Free Software Foundation, Inc.
 # Primo¾ Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>, 2000.
-# $Id: sl.po,v 1.123 2001/01/02 00:12:04 jbj Exp $
+# $Id: sl.po,v 1.124 2001/01/02 17:19:39 jbj Exp $
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-10-08 19:05+0200\n"
 "Last-Translator: Grega Fajdiga <gregor.fajdiga@telemach.net>\n"
 "Language-Team: Slovenian <sl@li.org>\n"
index f45f999..27bcad3 100644 (file)
--- a/po/sr.po
+++ b/po/sr.po
@@ -1,6 +1,6 @@
 msgid ""
 msgstr ""
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "Content-Type: text/plain; charset=\n"
 "Date: 1998-05-02 21:41:47-0400\n"
 "From: Erik Troan <ewt@lacrosse.redhat.com>\n"
index e136b57..4c4fb3d 100644 (file)
--- a/po/sv.po
+++ b/po/sv.po
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: 2000-10-09 22:31+0200\n"
 "Last-Translator: Göran Uddeborg <göran@uddeborg.pp.se>\n"
 "Language-Team: Swedish <sv@li.org>\n"
index b9337d7..5c140b6 100644 (file)
--- a/po/tr.po
+++ b/po/tr.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/uk.po
+++ b/po/uk.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/wa.po
+++ b/po/wa.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
--- a/po/zh.po
+++ b/po/zh.po
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6980bbc..8faba4c 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rpm 4.0.1\n"
-"POT-Creation-Date: 2001-01-01 19:11-0500\n"
+"POT-Creation-Date: 2001-01-01 19:44-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 44ec801..2fe346d 100644 (file)
@@ -9,6 +9,11 @@
 #ifndef H_FINDME
 #define H_FINDME
 
-const char * findProgramPath(const char * argv0);
+/**
+ * Return absolute path to executable by searching PATH.
+ * @param argv0                name of executable
+ * @return             (malloc'd) absolute path to executable (or NULL)
+ */
+/*@null@*/ const char * findProgramPath(const char * argv0);
 
 #endif
index 2bb83ad..f66db84 100644 (file)
@@ -1,5 +1,5 @@
-/** \ingroup popt
- * \file popt/popt.h
+/** \file popt/popt.h
+ * \ingroup popt
  */
 
 /* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
@@ -17,85 +17,128 @@ extern "C" {
 
 #define POPT_OPTION_DEPTH      10
 
-#define POPT_ARG_NONE          0
-#define POPT_ARG_STRING                1
-#define POPT_ARG_INT           2
-#define POPT_ARG_LONG          3
-#define POPT_ARG_INCLUDE_TABLE 4       /* arg points to table */
-#define POPT_ARG_CALLBACK      5       /* table-wide callback... must be
+/** \ingroup popt
+ * \name Arg type identifiers
+ */
+/*@{*/
+#define POPT_ARG_NONE          0       /*!< no arg */
+#define POPT_ARG_STRING                1       /*!< arg will be saved as string */
+#define POPT_ARG_INT           2       /*!< arg will be converted to int */
+#define POPT_ARG_LONG          3       /*!< arg will be converted to long */
+#define POPT_ARG_INCLUDE_TABLE 4       /*!< arg points to table */
+#define POPT_ARG_CALLBACK      5       /*!< table-wide callback... must be
                                           set first in table; arg points 
                                           to callback, descrip points to 
                                           callback data to pass */
-#define POPT_ARG_INTL_DOMAIN    6       /* set the translation domain
+#define POPT_ARG_INTL_DOMAIN    6       /*!< set the translation domain
                                           for this table and any
                                           included tables; arg points
                                           to the domain string */
-#define POPT_ARG_VAL           7       /* arg should take value val */
-#define        POPT_ARG_FLOAT          8       /* arg should be converted to float */
-#define        POPT_ARG_DOUBLE         9       /* arg should be converted to double */
+#define POPT_ARG_VAL           7       /*!< arg should take value val */
+#define        POPT_ARG_FLOAT          8       /*!< arg will be converted to float */
+#define        POPT_ARG_DOUBLE         9       /*!< arg will be converted to double */
 
 #define POPT_ARG_MASK          0x0000FFFF
-#define POPT_ARGFLAG_ONEDASH   0x80000000  /* allow -longoption */
-#define POPT_ARGFLAG_DOC_HIDDEN 0x40000000  /* don't show in help/usage */
-#define POPT_ARGFLAG_STRIP     0x20000000  /* strip this arg from argv(only applies to long args) */
-#define        POPT_ARGFLAG_OPTIONAL   0x10000000  /* arg may be missing */
-
-#define        POPT_ARGFLAG_OR         0x08000000 /* arg will be or'ed */
-#define        POPT_ARGFLAG_NOR        0x09000000 /* arg will be nor'ed */
-#define        POPT_ARGFLAG_AND        0x04000000 /* arg will be and'ed */
-#define        POPT_ARGFLAG_NAND       0x05000000 /* arg will be nand'ed */
-#define        POPT_ARGFLAG_XOR        0x02000000 /* arg will be xor'ed */
-#define        POPT_ARGFLAG_NOT        0x01000000 /* arg will be negated */
+/*@}*/
+
+/** \ingroup popt
+ * \name Arg modifiers
+ */
+/*@{*/
+#define POPT_ARGFLAG_ONEDASH   0x80000000  /*!< allow -longoption */
+#define POPT_ARGFLAG_DOC_HIDDEN 0x40000000  /*!< don't show in help/usage */
+#define POPT_ARGFLAG_STRIP     0x20000000  /*!< strip this arg from argv(only applies to long args) */
+#define        POPT_ARGFLAG_OPTIONAL   0x10000000  /*!< arg may be missing */
+
+#define        POPT_ARGFLAG_OR         0x08000000  /*!< arg will be or'ed */
+#define        POPT_ARGFLAG_NOR        0x09000000  /*!< arg will be nor'ed */
+#define        POPT_ARGFLAG_AND        0x04000000  /*!< arg will be and'ed */
+#define        POPT_ARGFLAG_NAND       0x05000000  /*!< arg will be nand'ed */
+#define        POPT_ARGFLAG_XOR        0x02000000  /*!< arg will be xor'ed */
+#define        POPT_ARGFLAG_NOT        0x01000000  /*!< arg will be negated */
 #define POPT_ARGFLAG_LOGICALOPS \
         (POPT_ARGFLAG_OR|POPT_ARGFLAG_AND|POPT_ARGFLAG_XOR)
+/*@}*/
 
-#define POPT_CBFLAG_PRE                0x80000000  /* call the callback before parse */
-#define POPT_CBFLAG_POST       0x40000000  /* call the callback after parse */
-#define POPT_CBFLAG_INC_DATA   0x20000000  /* use data from the include line,
+/** \ingroup popt
+ * \name Callback modifiers
+ */
+/*@{*/
+#define POPT_CBFLAG_PRE                0x80000000  /*!< call the callback before parse */
+#define POPT_CBFLAG_POST       0x40000000  /*!< call the callback after parse */
+#define POPT_CBFLAG_INC_DATA   0x20000000  /*!< use data from the include line,
                                               not the subtable */
-#define POPT_CBFLAG_SKIPOPTION 0x10000000  /* don't callback with option */
-#define POPT_CBFLAG_CONTINUE   0x08000000  /* continue callbacks with option */
-
-#define POPT_ERROR_NOARG       -10
-#define POPT_ERROR_BADOPT      -11
-#define POPT_ERROR_OPTSTOODEEP -13
-#define POPT_ERROR_BADQUOTE    -15     /* only from poptParseArgString() */
-#define POPT_ERROR_ERRNO       -16     /* only from poptParseArgString() */
-#define POPT_ERROR_BADNUMBER   -17
-#define POPT_ERROR_OVERFLOW    -18
-#define        POPT_ERROR_BADOPERATION -19
-
-/* poptBadOption() flags */
-#define POPT_BADOPTION_NOALIAS  (1 << 0)  /* don't go into an alias */
-
-/* poptGetContext() flags */
-#define POPT_CONTEXT_NO_EXEC   (1 << 0)  /* ignore exec expansions */
-#define POPT_CONTEXT_KEEP_FIRST        (1 << 1)  /* pay attention to argv[0] */
-#define POPT_CONTEXT_POSIXMEHARDER (1 << 2) /* options can't follow args */
+#define POPT_CBFLAG_SKIPOPTION 0x10000000  /*!< don't callback with option */
+#define POPT_CBFLAG_CONTINUE   0x08000000  /*!< continue callbacks with option */
+/*@}*/
+
+/** \ingroup popt
+ * \name Error return values
+ */
+/*@{*/
+#define POPT_ERROR_NOARG       -10     /*!< missing argument */
+#define POPT_ERROR_BADOPT      -11     /*!< unknown option */
+#define POPT_ERROR_OPTSTOODEEP -13     /*!< aliases nested too deeply */
+#define POPT_ERROR_BADQUOTE    -15     /*!< error in paramter quoting */
+#define POPT_ERROR_ERRNO       -16     /*!< errno set, use strerror(errno) */
+#define POPT_ERROR_BADNUMBER   -17     /*!< invalid numeric value */
+#define POPT_ERROR_OVERFLOW    -18     /*!< number too large or too small */
+#define        POPT_ERROR_BADOPERATION -19     /*!< mutually exclusive logical operations requested */
+/*@}*/
 
+/** \ingroup popt
+ * \name poptBadOption() flags
+ */
+/*@{*/
+#define POPT_BADOPTION_NOALIAS  (1 << 0)  /*!< don't go into an alias */
+/*@}*/
+
+/** \ingroup popt
+ * \name poptGetContext() flags
+ */
+/*@{*/
+#define POPT_CONTEXT_NO_EXEC   (1 << 0)  /*!< ignore exec expansions */
+#define POPT_CONTEXT_KEEP_FIRST        (1 << 1)  /*!< pay attention to argv[0] */
+#define POPT_CONTEXT_POSIXMEHARDER (1 << 2) /*!< options can't follow args */
+/*@}*/
+
+/** \ingroup popt
+ */
 struct poptOption {
-/*@observer@*/ /*@null@*/ const char * longName;       /* may be NULL */
-    char shortName;            /* may be '\0' */
+/*@observer@*/ /*@null@*/ const char * longName; /*!< may be NULL */
+    char shortName;                    /*!< may be '\0' */
     int argInfo;
-/*@shared@*/ /*@null@*/ void * arg;            /* depends on argInfo */
-    int val;                   /* 0 means don't return, just update flag */
-/*@shared@*/ /*@null@*/ const char * descrip;  /* description for autohelp -- may be NULL */
-/*@shared@*/ /*@null@*/ const char * argDescrip;       /* argument description for autohelp */
+/*@shared@*/ /*@null@*/ void * arg;    /*!< depends on argInfo */
+    int val;                   /*!< 0 means don't return, just update flag */
+/*@shared@*/ /*@null@*/ const char * descrip;  /*!< description for autohelp -- may be NULL */
+/*@shared@*/ /*@null@*/ const char * argDescrip; /*!< argument description for autohelp */
 };
 
+/** \ingroup popt
+ */
 struct poptAlias {
-/*@owned@*/ /*@null@*/ const char * longName;  /* may be NULL */
-    char shortName;            /* may be '\0' */
+/*@owned@*/ /*@null@*/ const char * longName;  /*!< may be NULL */
+    char shortName;            /*!< may be '\0' */
     int argc;
-/*@owned@*/ const char ** argv;                /* must be free()able */
+/*@owned@*/ const char ** argv;        /*!< must be free()able */
 };
 
+/** \ingroup popt
+ * \name Auto-generated help/usage
+ */
+/*@{*/
 extern struct poptOption poptHelpOptions[];
 #define POPT_AUTOHELP { NULL, '\0', POPT_ARG_INCLUDE_TABLE, poptHelpOptions, \
                        0, "Help options:", NULL },
 #define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL }
+/*@}*/
 
+/** \ingroup popt
+ */
 typedef struct poptContext_s * poptContext;
+
+/** \ingroup popt
+ */
 #ifndef __cplusplus
 typedef struct poptOption * poptOption;
 #endif
@@ -103,46 +146,197 @@ typedef struct poptOption * poptOption;
 enum poptCallbackReason { POPT_CALLBACK_REASON_PRE, 
                          POPT_CALLBACK_REASON_POST,
                          POPT_CALLBACK_REASON_OPTION };
-typedef void (*poptCallbackType)(poptContext con, 
+
+/** \ingroup popt
+ * Table callback prototype.
+ * @param con          context
+ * @param reason       reason for callback
+ * @param opt          option that triggered callback
+ * @param arg          @todo Document.
+ * @param data         @todo Document.
+ */
+typedef void (*poptCallbackType) (poptContext con, 
                                 enum poptCallbackReason reason,
                                 const struct poptOption * opt,
                                 const char * arg, const void * data);
 
+/** \ingroup popt
+ * Initialize popt context.
+ * @param name
+ * @param argc         no. of arguments
+ * @param argv         argument array
+ * @param options      address of popt option table
+ * @param flags                or'd POPT_CONTEXT_* bits
+ * @return             initialized popt context
+ */
 /*@only@*/ poptContext poptGetContext(/*@keep@*/ const char * name,
                int argc, /*@keep@*/ const char ** argv,
                /*@keep@*/ const struct poptOption * options, int flags);
+
+/** \ingroup popt
+ * Reinitialize popt context.
+ * @param con          context
+ */
 void poptResetContext(poptContext con);
 
-/* returns 'val' element, -1 on last item, POPT_ERROR_* on error */
+/** \ingroup popt
+ * Return value of next option found.
+ * @param con          context
+ * @return             next option val, -1 on last item, POPT_ERROR_* on error
+ */
 int poptGetNextOpt(poptContext con);
 /* returns NULL if no argument is available */
+
+/** \ingroup popt
+ * @param con          context
+ */
 /*@observer@*/ /*@null@*/ const char * poptGetOptArg(poptContext con);
-/* returns NULL if no more options are available */
+
+/** \ingroup popt
+ * Return current option's argument.
+ * @param con          context
+ * @return             option argument, NULL if no more options are available
+ */
 /*@observer@*/ /*@null@*/ const char * poptGetArg(poptContext con);
+
+/** \ingroup popt
+ * Peek at  current option's argument.
+ * @param con          context
+ * @return             option argument
+ */
 /*@observer@*/ /*@null@*/ const char * poptPeekArg(poptContext con);
+
+/** \ingroup popt
+ * Return remaining arguments.
+ * @param con          context
+ * @return             argument array, terminated with NULL
+ */
 /*@observer@*/ /*@null@*/ const char ** poptGetArgs(poptContext con);
-/* returns the option which caused the most recent error */
+
+/** \ingroup popt
+ * Return the option which caused the most recent error.
+ * @param con          context
+ * @return             offending option
+ */
 /*@observer@*/ const char * poptBadOption(poptContext con, int flags);
+
+/** \ingroup popt
+ * Destroy context.
+ * @param con          context
+ */
 void poptFreeContext( /*@only@*/ poptContext con);
+
+/** \ingroup popt
+ * Add arguments to context.
+ * @param con          context
+ * @param argv         argument array, NULL terminated
+ * @return             0 on success, POPT_ERROR_OPTSTOODEEP on failure
+ */
 int poptStuffArgs(poptContext con, /*@keep@*/ const char ** argv);
+
+/** \ingroup popt
+ * Add alias to context.
+ * @todo Pass alias by reference, not value.
+ * @param con          context
+ * @param alias                alias to add
+ * @param flags                (unused)
+ * @return             0 always
+ */
 int poptAddAlias(poptContext con, struct poptAlias alias, int flags);
+
+/** \ingroup popt
+ * Read configuration file.
+ * @param con          context
+ * @param fn           file name to read
+ * @return             0 on success, POPT_ERROR_ERRNO on failure
+ */
 int poptReadConfigFile(poptContext con, const char * fn);
-/* like above, but reads /etc/popt and $HOME/.popt along with environment 
-   vars */
-int poptReadDefaultConfig(poptContext con, int useEnv);
-/* argv should be freed -- this allows ', ", and \ quoting, but ' is treated
-   the same as " and both may include \ quotes */
+
+/** \ingroup popt
+ * Read default configuration from /etc/popt and $HOME/.popt.
+ * @param con          context
+ * @param useEnv       (unused)
+ * @return             0 on success, POPT_ERROR_ERRNO on failure
+ */
+int poptReadDefaultConfig(poptContext con, /*@unused@*/ int useEnv);
+
+/** \ingroup popt
+ * Duplicate an argument array.
+ * @note: The argument array is malloc'd as a single area, so only argv must
+ * be free'd.
+ *
+ * @param argc         no. of arguments
+ * @param argv         argument array
+ * @retval argcPtr     address of returned no. of arguments
+ * @retval argvPtr     address of returned argument array
+ * @return             0 on success, POPT_ERROR_NOARG on failure
+ */
 int poptDupArgv(int argc, const char **argv,
                /*@out@*/ int * argcPtr, /*@out@*/ const char *** argvPtr);
+
+/** \ingroup popt
+ * Parse a string into an argument array.
+ * The parse allows ', ", and \ quoting, but ' is treated the same as " and
+ * both may include \ quotes.
+ * @note: The argument array is malloc'd as a single area, so only argv must
+ * be free'd.
+ *
+ * @param s            string to parse
+ * @retval argcPtr     address of returned no. of arguments
+ * @retval argvPtr     address of returned argument array
+ */
 int poptParseArgvString(const char * s,
                /*@out@*/ int * argcPtr, /*@out@*/ const char *** argvPtr);
+
+/** \ingroup popt
+ * Return formatted error string for popt failure.
+ * @param error                popt error
+ * @return             error string
+ */
 /*@observer@*/ const char *const poptStrerror(const int error);
+
+/** \ingroup popt
+ * Limit search for executables.
+ * @param con          context
+ * @param path         single path to search for executables
+ * @param allowAbsolute        absolute paths only?
+ */
 void poptSetExecPath(poptContext con, const char * path, int allowAbsolute);
-void poptPrintHelp(poptContext con, FILE * f, int flags);
-void poptPrintUsage(poptContext con, FILE * f, int flags);
+
+/** \ingroup popt
+ * Print detailed description of options.
+ * @param con          context
+ * @param f            ouput file handle
+ * @param flags                (unused)
+ */
+void poptPrintHelp(poptContext con, FILE * f, /*@unused@*/ int flags);
+
+/** \ingroup popt
+ * Print terse description of options.
+ * @param con          context
+ * @param f            ouput file handle
+ * @param flags                (unused)
+ */
+void poptPrintUsage(poptContext con, FILE * f, /*@unused@*/ int flags);
+
+/** \ingroup popt
+ * Provide text to replace default "[OPTION...]" in help/usage output.
+ * @param con          context
+ * @param text         replacement text
+ */
 void poptSetOtherOptionHelp(poptContext con, const char * text);
+
+/** \ingroup popt
+ * Return argv[0] from context.
+ * @param con          context
+ */
 /*@observer@*/ const char * poptGetInvocationName(poptContext con);
-/* shuffles argv pointers to remove stripped args, returns new argc */
+
+/** \ingroup popt
+ * Shuffle argv pointers to remove stripped args, returns new argc.
+ * @param con          context
+ * @return             new argc
+ */
 int poptStrippedArgv(poptContext con, int argc, char **argv);
 
 #ifdef  __cplusplus