summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-09 00:05:38 +0200
committerMichael Adam <obnox@samba.org>2008-08-09 01:15:58 +0200
commite0fa472a3b50dba7ab62541b8d6666f0ae29f397 (patch)
treead3771619fe1359217d951be2b13649d7a8b0586 /source3
parentf07cfe3b6889425d69f77571f90c5b541e526e01 (diff)
downloadsamba-e0fa472a3b50dba7ab62541b8d6666f0ae29f397.tar.gz
samba-e0fa472a3b50dba7ab62541b8d6666f0ae29f397.tar.bz2
samba-e0fa472a3b50dba7ab62541b8d6666f0ae29f397.zip
lib/access: make list_match() public.
Michael (This used to be commit 742bedce417c666b5e91d8d0a7dc7682dc62eba2)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/access.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 0cafdf630f..a19d51fe0f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -294,6 +294,8 @@ char *lang_tdb_current(void);
/* The following definitions come from lib/access.c */
bool client_match(const char *tok, const void *item);
+bool list_match(const char **list,const void *item,
+ bool (*match_fn)(const char *, const void *));
bool allow_access(const char **deny_list,
const char **allow_list,
const char *cname,
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 773823a609..6a445f8139 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -211,7 +211,7 @@ bool client_match(const char *tok, const void *item)
}
/* list_match - match an item against a list of tokens with exceptions */
-static bool list_match(const char **list,const void *item,
+bool list_match(const char **list,const void *item,
bool (*match_fn)(const char *, const void *))
{
bool match = false;