]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
This is new function to quickly stat a control of the list. Example:
authormmj <none@none>
Fri, 30 Apr 2004 08:57:33 +0000 (18:57 +1000)
committermmj <none@none>
Fri, 30 Apr 2004 08:57:33 +0000 (18:57 +1000)
int moderatedlist = statctrl(listdir, "moderated);

Then it'll return true/false according to whether a file
listdir/control/moderated exists.

include/statctrl.h [new file with mode: 0644]

diff --git a/include/statctrl.h b/include/statctrl.h
new file mode 100644 (file)
index 0000000..21d2174
--- /dev/null
@@ -0,0 +1,14 @@
+/* Copyright (C) 2004 Mads Martin Joergensen <mmj at mmj.dk>
+ *
+ * $Id$
+ *
+ * This file is redistributable under version 2 of the GNU General
+ * Public License as described at http://www.gnu.org/licenses/gpl.txt
+ */
+
+#ifndef STATCTRL_H
+#define STATCTRL_H
+
+int statctrl(const char *listdir, const char *ctrlstr);
+
+#endif /* STATCTRL_H */