tevent: Add lib/tevent as include directory.
[Samba.git] / source3 / winbindd / idmap_proto.h
blobefe7ac60274a493de50887c11a2470cea496a94b
1 /* The following definitions come from winbindd/idmap.c */
3 bool idmap_is_offline(void);
4 bool idmap_is_online(void);
5 NTSTATUS smb_register_idmap(int version, const char *name,
6 struct idmap_methods *methods);
7 void idmap_close(void);
8 NTSTATUS idmap_init_cache(void);
9 NTSTATUS idmap_allocate_uid(struct unixid *id);
10 NTSTATUS idmap_allocate_gid(struct unixid *id);
11 NTSTATUS idmap_backends_unixid_to_sid(const char *domname,
12 struct id_map *id);
13 NTSTATUS idmap_backends_sid_to_unixid(const char *domname,
14 struct id_map *id);
16 /* The following definitions come from winbindd/idmap_nss.c */
18 NTSTATUS idmap_nss_init(void);
20 /* The following definitions come from winbindd/idmap_passdb.c */
22 NTSTATUS idmap_passdb_init(void);
24 /* The following definitions come from winbindd/idmap_tdb.c */
26 NTSTATUS idmap_tdb_init(void);
28 /* The following definitions come from winbindd/idmap_util.c */
30 NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid);
31 NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid);
32 NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid);
33 NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid);
34 bool idmap_unix_id_is_in_range(uint32_t id, struct idmap_domain *dom);