diff options
author | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:29 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:29 +0200 |
commit | 69ca70f20204c63dca3ae4f85dd9a37188dcfc0b (patch) | |
tree | fd3a6ed4ed4551b63d0f9ed74690c8fbcaf2f7df /libsubid/subid.h.in | |
parent | 8d8547f65fc0474fa335d04201ee9c2ccb9aa773 (diff) | |
parent | 675b462b64b213647d0f5c56b1e8440be5890c8a (diff) | |
download | shadow-69ca70f20204c63dca3ae4f85dd9a37188dcfc0b.tar.gz |
Update upstream source from tag 'upstream/4.12.2+dfsg1'
Update to upstream version '4.12.2+dfsg1'
with Debian dir 52044f35b7f4073e1929e253a646847ef319cac4
Diffstat (limited to 'libsubid/subid.h.in')
-rw-r--r-- | libsubid/subid.h.in | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/libsubid/subid.h.in b/libsubid/subid.h.in index 21b22a26..c8d9273f 100644 --- a/libsubid/subid.h.in +++ b/libsubid/subid.h.in @@ -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 |