]> git.sur5r.net Git - openldap/blobdiff - include/rewrite.h
Fix multiple NAME example
[openldap] / include / rewrite.h
index db376f1c5c27ec0b1aa70c2c6d4890ea94578fdf..08398420c05c4c0e3bdbfd950c31000605373a75 100644 (file)
@@ -25,8 +25,6 @@
 #ifndef REWRITE_H
 #define REWRITE_H
 
-LDAP_BEGIN_DECL
-
 /*
  * Default rewrite context
  */
@@ -83,6 +81,8 @@ struct rewrite_info;
 
 struct berval; /* avoid include */
 
+LDAP_BEGIN_DECL
+
 /*
  * Inits the info
  */
@@ -120,6 +120,15 @@ rewrite_parse(
                 char **argv
 );
 
+/*
+ * process a config file that was already opened. Uses rewrite_parse.
+ */
+LDAP_REWRITE_F (int)
+rewrite_read(
+               FILE *fin,
+               struct rewrite_info *info
+);
+
 /*
  * Rewrites a string according to context.
  * If the engine is off, OK is returned, but the return string will be NULL.