summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 15:01:06 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 15:01:06 +0200
commitb04c5e0f9536d19b26efe1d69807c1f42b4b95ca (patch)
treea987deaa7d7f15342476675bff14c4575f251fd0 /include/common.h
parent145dfce5f04a3a74a49cc016f15b0aa6d9996662 (diff)
Move print_version declaration from util.h to common.h
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 0e9da0c..369c21f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -156,4 +156,12 @@ int pushdn(const char *path, size_t len);
/* Returns 0 on success. On failure, prints error message to stderr. */
int popd(void);
+/*
+ A common implementation of the '--version' command line flag.
+
+ Prints out version information. The program name is extracted from the
+ BSD style __progname global variable.
+*/
+void print_version(void);
+
#endif /* COMMON_H */