added basic ssl support to ircu
[ircu2.10.12-pk.git] / include / crule.h
index 38a7a89d0ffa0b95883a12dd44bf139ca688f11c..a89fd549a77aa0318d981e8324c3cd60fbc4ad29 100644 (file)
@@ -1,7 +1,6 @@
-/*
- * crule.h
- *
- * $Id$
+/** @file crule.h
+ * @brief Interfaces and declarations for connection rule checking.
+ * @version $Id$
  */
 #ifndef INCLUDED_crule_h
 #define INCLUDED_crule_h
@@ -10,8 +9,13 @@
  * Proto types
  */
 
-extern void crule_free(char **elem);
-extern int crule_eval(char *rule);
-extern char *crule_parse(char *rule);
+/*
+ * opaque node pointer
+ */
+struct CRuleNode;
+
+extern void crule_free(struct CRuleNode** elem);
+extern int crule_eval(struct CRuleNode* rule);
+extern struct CRuleNode* crule_parse(const char* rule);
 
 #endif /* INCLUDED_crule_h */