From 8636f5b0ac4a6a12a63a20b4e049942f1c58d0e6 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Mon, 17 Feb 1997 20:20:59 +0000 Subject: 1) added poptStuffArgs() 2) added shortName to popt aliases svn path=/trunk/; revision=9 --- support/popt-gnome.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'support/popt-gnome.h') diff --git a/support/popt-gnome.h b/support/popt-gnome.h index 1dc03b18..1b208d45 100644 --- a/support/popt-gnome.h +++ b/support/popt-gnome.h @@ -25,9 +25,10 @@ struct poptOption { }; struct poptAlias { - const char * longName; + char * longName; /* may be NULL */ + char shortName; /* may be '\0' */ int argc; - char ** argv; + char ** argv; /* must be free()able */ }; typedef struct poptContext_s * poptContext; @@ -47,6 +48,7 @@ char ** poptGetArgs(poptContext con); /* returns the option which caused the most recent error */ char * poptBadOption(poptContext con, int flags); void poptFreeContext(poptContext con); +int poptStuffArgs(poptContext con, char ** argv); int poptAddAlias(poptContext con, struct poptAlias alias, int flags); int poptReadConfigFile(poptContext con, char * fn); /* like above, but reads /etc/popt and $HOME/.popt along with environment -- cgit v1.2.1