lib/access: make list_match() public.
authorMichael Adam <obnox@samba.org>
Fri, 8 Aug 2008 22:05:38 +0000 (00:05 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 8 Aug 2008 23:15:58 +0000 (01:15 +0200)
Michael
(This used to be commit 742bedce417c666b5e91d8d0a7dc7682dc62eba2)

source3/include/proto.h
source3/lib/access.c

index 0cafdf630fd09356e8793159a2c13c1f8e9a0eb5..a19d51fe0f5805e62328c24aa51caf4e72905fbd 100644 (file)
@@ -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,
index 773823a609962c840e57a9c036fae144ef074881..6a445f8139c48ebdf79827712728c29a1b304152 100644 (file)
@@ -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;