diff options
author | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:16 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:16 +0200 |
commit | 675b462b64b213647d0f5c56b1e8440be5890c8a (patch) | |
tree | 1cd63eec7594d03a622575136c61d8c813f59503 /libsubid/subid.h | |
parent | 0c04b92a9afe5e09a20307d8a5ec98d97ed00f47 (diff) | |
download | shadow-675b462b64b213647d0f5c56b1e8440be5890c8a.tar.gz |
New upstream version 4.12.2+dfsg1
Diffstat (limited to 'libsubid/subid.h')
-rw-r--r-- | libsubid/subid.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/libsubid/subid.h b/libsubid/subid.h index 01476713..e8dbdecc 100644 --- a/libsubid/subid.h +++ b/libsubid/subid.h @@ -35,21 +35,9 @@ enum subid_status { SUBID_STATUS_ERROR = 3, }; -/* - * 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); +#ifdef __cplusplus +extern "C" { +#endif /* * subid_get_uid_ranges: return a list of UID ranges for a user @@ -151,5 +139,9 @@ bool subid_ungrant_uid_range(struct subordinate_range *range); */ bool subid_ungrant_gid_range(struct subordinate_range *range); +#ifdef __cplusplus +} +#endif + #define SUBID_NFIELDS 3 #endif |