summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <ewt>1997-02-17 20:20:59 +0000
committerewt <ewt>1997-02-17 20:20:59 +0000
commit272ecab3ef6521cc2f6523126656db4c01db2390 (patch)
treefc0324842e6826e8a321649d2857145de44b429a
parent833c127b450efac952c1490d4619dcdf66ad3534 (diff)
downloadlibpopt-272ecab3ef6521cc2f6523126656db4c01db2390.tar.gz
1) added poptStuffArgs()
2) added shortName to popt aliases
-rw-r--r--popt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/popt.h b/popt.h
index 1dc03b1..1b208d4 100644
--- a/popt.h
+++ b/popt.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