aboutsummaryrefslogtreecommitdiffstats
path: root/src/usermap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usermap.h')
-rw-r--r--src/usermap.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/usermap.h b/src/usermap.h
index 8a74bb1..9c1387e 100644
--- a/src/usermap.h
+++ b/src/usermap.h
@@ -45,16 +45,10 @@ UsermapStatus usermap_add_gid(UserMap *map, gid_t from, gid_t to);
const char* usermap_errorstr(UsermapStatus status);
-/* Returns the uid that u is mapped to, or u if none. */
-uid_t usermap_get_uid(UserMap *map, uid_t u);
+/* Returns the uid that u is mapped to, or deflt if none. */
+uid_t usermap_get_uid_or_default(UserMap *map, uid_t u, uid_t deflt);
-/* Returns the gid that g is mapped to, or g if none. */
-gid_t usermap_get_gid(UserMap *map, gid_t g);
-
-/* Returns the uid that u is mapped to, or -1 if none. */
-uid_t usermap_get_uid_or_none(UserMap *map, uid_t u);
-
-/* Returns the gid that g is mapped to, or -1 if none. */
-gid_t usermap_get_gid_or_none(UserMap *map, gid_t g);
+/* Returns the gid that g is mapped to, or deflt if none. */
+gid_t usermap_get_gid_or_default(UserMap *map, gid_t g, gid_t deflt);
#endif