]> git.sur5r.net Git - i3/i3/blobdiff - include/regex.h
Merge branch 'release-4.16.1'
[i3/i3] / include / regex.h
index 2a6608a80837652cadf9d99dbc6067b12b2f81a5..abda3cd7f4370758d9909c79ade589d5da253d21 100644 (file)
@@ -1,9 +1,15 @@
 /*
  * vim:ts=4:sw=4:expandtab
  *
+ * i3 - an improved dynamic tiling window manager
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
+ *
+ * regex.c: Interface to libPCRE (perl compatible regular expressions).
+ *
  */
-#ifndef _REGEX_H
-#define _REGEX_H
+#pragma once
+
+#include <config.h>
 
 /**
  * Creates a new 'regex' struct containing the given pattern and a PCRE
  */
 struct regex *regex_new(const char *pattern);
 
+/**
+ * Frees the given regular expression. It must not be used afterwards!
+ *
+ */
+void regex_free(struct regex *regex);
+
 /**
  * Checks if the given regular expression matches the given input and returns
  * true if it does. In either case, it logs the outcome using LOG(), so it will
- * be visible without any debug loglevel.
+ * be visible without debug logging.
  *
  */
 bool regex_matches(struct regex *regex, const char *input);
-
-#endif