Author: miguel
Date: 2005-04-08 18:57:17 -0400 (Fri, 08 Apr 2005)
New Revision: 42718

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/mono-config.c
   trunk/mono/mono/metadata/mono-config.h
Log:
2005-04-08  Miguel de Icaza  <[EMAIL PROTECTED]>

        * mono-config.c: Add new entry point for mkbundle
        mono_config_parse_memory. 

Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-04-08 22:56:36 UTC (rev 42717)
+++ trunk/mono/mono/metadata/ChangeLog  2005-04-08 22:57:17 UTC (rev 42718)
@@ -1,3 +1,8 @@
+2005-04-08  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * mono-config.c: Add new entry point for mkbundle
+       mono_config_parse_memory. 
+
 2005-04-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * threadpool.c: removed another unused function.

Modified: trunk/mono/mono/metadata/mono-config.c
===================================================================
--- trunk/mono/mono/metadata/mono-config.c      2005-04-08 22:56:36 UTC (rev 
42717)
+++ trunk/mono/mono/metadata/mono-config.c      2005-04-08 22:57:17 UTC (rev 
42718)
@@ -251,6 +251,20 @@
        return 1;
 }
 
+/**
+ * mono_config_parse_memory:
+ * @buffer: a pointer to an string XML representation of the configuration
+ *
+ * Parses the configuration from a buffer
+ */
+void
+mono_config_parse_memory (const char *buffer)
+{
+       ParseState state = {NULL};
+       
+       mono_config_parse_xml_with_context (&state, buffer, strlen (buffer));
+}
+
 static void
 mono_config_parse_file (const char *filename)
 {

Modified: trunk/mono/mono/metadata/mono-config.h
===================================================================
--- trunk/mono/mono/metadata/mono-config.h      2005-04-08 22:56:36 UTC (rev 
42717)
+++ trunk/mono/mono/metadata/mono-config.h      2005-04-08 22:57:17 UTC (rev 
42718)
@@ -10,8 +10,9 @@
 
 const char* mono_get_config_dir (void);
 
-void mono_config_parse (const char *filename);
+void mono_config_parse        (const char *filename);
 void mono_config_for_assembly (MonoImage *assembly);
+void mono_config_parse_memory (const char *buffer);
 
 #endif /* __MONO_METADATA_CONFIG_H__ */
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to