summaryrefslogtreecommitdiff
path: root/libsubid/subid.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'libsubid/subid.h.in')
-rw-r--r--libsubid/subid.h.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/libsubid/subid.h.in b/libsubid/subid.h.in
index c8d9273f..79744eda 100644
--- a/libsubid/subid.h.in
+++ b/libsubid/subid.h.in
@@ -40,6 +40,22 @@ extern "C" {
#endif
/*
+ * subid_init: initialize libsubid
+ *
+ * @progname: Name to display as program. If NULL, then "(libsubid)" will be
+ * shown in error messages.
+ * @logfd: Open file pointer to pass error messages to. If NULL, then
+ * /dev/null will be opened and messages will be sent there. The
+ * default if libsubid_init() is not called is stderr (2).
+ *
+ * This function does not need to be called. If not called, then the defaults
+ * will be used.
+ *
+ * Returns false if an error occurred.
+ */
+bool subid_init(const char *progname, FILE *logfd);
+
+/*
* subid_get_uid_ranges: return a list of UID ranges for a user
*
* @owner: username being queried