diff options
Diffstat (limited to 'libsubid/subid.h')
-rw-r--r-- | libsubid/subid.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libsubid/subid.h b/libsubid/subid.h index e8dbdecc..d13ee84a 100644 --- a/libsubid/subid.h +++ b/libsubid/subid.h @@ -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 |