aboutsummaryrefslogtreecommitdiffstats
path: root/idmap_plugin.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-12-08 21:28:08 -0500
committerJeff Layton <jlayton@samba.org>2012-12-19 15:33:16 -0500
commite5f0246b3085a5679253041aaabbbe6881e473ab (patch)
treeafb348522f2733396f7d7a08b7d8bd8b026c16aa /idmap_plugin.h
parent98ac6343836f1447852a1a3401dc68aebd9c49d1 (diff)
downloadcifs-utils-e5f0246b3085a5679253041aaabbbe6881e473ab.tar.gz
cifs-utils-e5f0246b3085a5679253041aaabbbe6881e473ab.tar.xz
cifs-utils-e5f0246b3085a5679253041aaabbbe6881e473ab.zip
cifs-utils: convert cifs.idmap to use plugin interface
Add routines for the various things that cifs.idmap needs and have it call them. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'idmap_plugin.h')
-rw-r--r--idmap_plugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/idmap_plugin.h b/idmap_plugin.h
index 51e3a76..16b015b 100644
--- a/idmap_plugin.h
+++ b/idmap_plugin.h
@@ -46,4 +46,12 @@ extern int sid_to_str(void *handle, const struct cifs_sid *sid, char **name);
/* Convert string to cifs_sid. */
extern int str_to_sid(void *handle, const char *name, struct cifs_sid *csid);
+/* convert array of cifs_sids to cifs_uxids */
+extern int sids_to_ids(void *handle, const struct cifs_sid *sids,
+ const size_t num, struct cifs_uxid *ids);
+
+/* convert array of cifs_uxids to cifs_sids */
+extern int ids_to_sids(void *handle, const struct cifs_uxid *id,
+ const size_t num, struct cifs_sid *sid);
+
#endif /* _IDMAP_PLUGIN_H */