summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Troan <ewt@src.gnome.org>1998-10-21 20:34:06 +0000
committerErik Troan <ewt@src.gnome.org>1998-10-21 20:34:06 +0000
commitc01ab27ea73e74fe353df354b8e7e0bb9fde01e7 (patch)
treef762179cce912321d72a7485d3805d44f0481182
parentf868a66144258f0c113c8a64b37270f6ef9c8c5a (diff)
downloadgnome-common-c01ab27ea73e74fe353df354b8e7e0bb9fde01e7.tar.gz
added poptGetInvocationName()
svn path=/trunk/; revision=450
-rw-r--r--support/popt-gnome.h1
-rw-r--r--support/popt.c4
-rw-r--r--support/popt.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/support/popt-gnome.h b/support/popt-gnome.h
index 64c7b80..a759f21 100644
--- a/support/popt-gnome.h
+++ b/support/popt-gnome.h
@@ -95,5 +95,6 @@ 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);
void poptSetOtherOptionHelp(poptContext con, const char * text);
+const char * poptGetInvocationName(poptContext con);
#endif
diff --git a/support/popt.c b/support/popt.c
index be9a181..22d5e08 100644
--- a/support/popt.c
+++ b/support/popt.c
@@ -543,3 +543,7 @@ int poptStuffArgs(poptContext con, char ** argv) {
return 0;
}
+
+const char * poptGetInvocationName(poptContext con) {
+ return con->os->argv[0];
+}
diff --git a/support/popt.h b/support/popt.h
index 64c7b80..a759f21 100644
--- a/support/popt.h
+++ b/support/popt.h
@@ -95,5 +95,6 @@ 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);
void poptSetOtherOptionHelp(poptContext con, const char * text);
+const char * poptGetInvocationName(poptContext con);
#endif