summaryrefslogtreecommitdiffstats
path: root/lasso/lasso.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-12-04 13:37:53 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-12-04 13:37:53 +0000
commita922e139d7c5085eea4ea604b0f4efb3b1d17a8b (patch)
tree14af0f20229b68e1ecc7134ae7650d6e54c12933 /lasso/lasso.c
parent97016b1c90eccb068d2e21b05641bc9ad7bec2f9 (diff)
downloadlasso-a922e139d7c5085eea4ea604b0f4efb3b1d17a8b.tar.gz
lasso-a922e139d7c5085eea4ea604b0f4efb3b1d17a8b.tar.xz
lasso-a922e139d7c5085eea4ea604b0f4efb3b1d17a8b.zip
added types (classes) extraction on build and registration in lasso_init
Diffstat (limited to 'lasso/lasso.c')
-rw-r--r--lasso/lasso.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lasso/lasso.c b/lasso/lasso.c
index 5419c0eb..fa6ff4ee 100644
--- a/lasso/lasso.c
+++ b/lasso/lasso.c
@@ -55,6 +55,9 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
#endif
+
+#include "types.c"
+
/**
* lasso_init:
*
@@ -64,8 +67,14 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
*/
int lasso_init()
{
+ int i;
+
g_type_init();
+ /* Init Lasso classes */
+ for (i=0; functions[i]; i++)
+ functions[i]();
+
/* Init libxml and libxslt libraries */
xmlInitParser();
/*LIBXML_TEST_VERSION*/