summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-18 18:13:42 +0200
committerGünther Deschner <gd@samba.org>2010-08-26 00:20:29 +0200
commit2b41f421fd14cb2190b43dbf079c734e7024335c (patch)
tree7def17821ed402c12e059f96780e835a08c88f87 /source3/lib
parent3ef531ec34dc709479005b00f50d1daf8e65269a (diff)
downloadsamba-2b41f421fd14cb2190b43dbf079c734e7024335c.tar.gz
samba-2b41f421fd14cb2190b43dbf079c734e7024335c.tar.bz2
samba-2b41f421fd14cb2190b43dbf079c734e7024335c.zip
s3-idmap: only include idmap headers where needed.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/idmap_cache.c1
-rw-r--r--source3/lib/idmap_cache.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/idmap_cache.c b/source3/lib/idmap_cache.c
index 6377635a65..bf72d91efe 100644
--- a/source3/lib/idmap_cache.c
+++ b/source3/lib/idmap_cache.c
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.*/
#include "includes.h"
+#include "idmap_cache.h"
/**
* Find a sid2uid mapping
diff --git a/source3/lib/idmap_cache.h b/source3/lib/idmap_cache.h
new file mode 100644
index 0000000000..f511780672
--- /dev/null
+++ b/source3/lib/idmap_cache.h
@@ -0,0 +1,10 @@
+/* The following definitions come from lib/idmap_cache.c */
+
+bool idmap_cache_find_sid2uid(const struct dom_sid *sid, uid_t *puid,
+ bool *expired);
+bool idmap_cache_find_uid2sid(uid_t uid, struct dom_sid *sid, bool *expired);
+void idmap_cache_set_sid2uid(const struct dom_sid *sid, uid_t uid);
+bool idmap_cache_find_sid2gid(const struct dom_sid *sid, gid_t *pgid,
+ bool *expired);
+bool idmap_cache_find_gid2sid(gid_t gid, struct dom_sid *sid, bool *expired);
+void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid);