summaryrefslogtreecommitdiffstats
path: root/source
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
commit742bedce417c666b5e91d8d0a7dc7682dc62eba2 (patch)
tree492b11f73891e7518c14057e7ff1dc94edee9cb0 /source
parent1b2dec93b635dfd23af78a370c223ea2dd486aa7 (diff)
downloadsamba-742bedce417c666b5e91d8d0a7dc7682dc62eba2.tar.gz
samba-742bedce417c666b5e91d8d0a7dc7682dc62eba2.tar.xz
samba-742bedce417c666b5e91d8d0a7dc7682dc62eba2.zip
lib/access: make list_match() public.
Michael
Diffstat (limited to 'source')
-rw-r--r--source/include/proto.h2
-rw-r--r--source/lib/access.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 0cafdf630fd..a19d51fe0f5 100644
--- a/source/include/proto.h
+++ b/source/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/source/lib/access.c b/source/lib/access.c
index 773823a6099..6a445f8139c 100644
--- a/source/lib/access.c
+++ b/source/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;