summaryrefslogtreecommitdiff
path: root/smu.h
diff options
context:
space:
mode:
authorEnno Boland (Gottox) <gottox@s01.de>2008-06-18 08:00:18 +0200
committerEnno Boland (Gottox) <gottox@s01.de>2008-06-18 08:00:18 +0200
commitb2712c1480271f92a7c2667b6be398c33973edf7 (patch)
tree88122848c26310ae1c86633c0eaaf352fb65fcc9 /smu.h
parent66219165d078ff5c1f859548b5fa2b2cf0b49449 (diff)
turning smu into a library, thanks arg.
Diffstat (limited to 'smu.h')
-rw-r--r--smu.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/smu.h b/smu.h
new file mode 100644
index 0000000..6a54043
--- /dev/null
+++ b/smu.h
@@ -0,0 +1,19 @@
+/* libsmu - simple markup library
+ * Copyright (C) <2007, 2008> Enno Boland <g s01 de>
+ *
+ * See LICENSE for further informations
+ */
+#include <stdio.h>
+
+/**
+ * Converts contents of a simple markup stream (in) and prints them to out.
+ * If suppresshtml == 1, it will create plain text of the simple markup instead
+ * of HTML.
+ *
+ * Returns 0 on success.
+ */
+int smu_convert(FILE *out, FILE *in, int suppresshtml);
+
+/** utility */
+void eprint(const char *format, ...);
+