Merge branch 'master' into browser
[projects/chimara/chimara.git] / babel / register.c
diff --git a/babel/register.c b/babel/register.c
new file mode 100644 (file)
index 0000000..22bbed5
--- /dev/null
@@ -0,0 +1,36 @@
+/* register.c    Register modules for the babel handler api\r
+ *\r
+ * 2006 by L. Ross Raszewski\r
+ *\r
+ * This code is freely usable for all purposes.\r
+ *\r
+ * This work is licensed under the Creative Commons Attribution2.5 License.\r
+ * To view a copy of this license, visit\r
+ * http://creativecommons.org/licenses/by/2.5/ or send a letter to\r
+ * Creative Commons,\r
+ * 543 Howard Street, 5th Floor,\r
+ * San Francisco, California, 94105, USA.\r
+ *\r
+ * This file depends on modules.h\r
+ *\r
+ * The purpose of this file is to create the treaty_registry array.\r
+ * This array is a null-terminated list of the known treaty modules.\r
+ */\r
+\r
+#include <stdlib.h>\r
+#include "modules.h"\r
+\r
+\r
+TREATY treaty_registry[] = {\r
+        #define TREATY_REGISTER\r
+        #include "modules.h"\r
+        NULL\r
+        };\r
+\r
+TREATY container_registry[] = {\r
+        #define CONTAINER_REGISTER\r
+        #include "modules.h"\r
+        NULL\r
+\r
+};\r
+\r