added a library table for module autoloading

updated VM plugin loader to read in this new section

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40149
This commit is contained in:
Borja Ferrer
2006-11-05 13:24:29 +00:00
parent 5c6f81cb25
commit 13775b11b6
5 changed files with 92 additions and 5 deletions
+6
View File
@@ -91,6 +91,12 @@ typedef struct sp_file_natives_s
uint32_t name; /* name of native at index */
} sp_file_natives_t;
/* section is .libraries */
typedef struct sp_file_libraries_s
{
uint32_t name; /* index into nametable */
} sp_file_libraries_t;
/* section is .pubvars */
typedef struct sp_file_pubvars_s
{
+2
View File
@@ -52,6 +52,8 @@ typedef struct sp_plugin_infotab_s
sp_file_natives_t *natives; /* native table */
uint32_t pubvars_num; /* number of pubvars */
sp_file_pubvars_t *pubvars; /* pubvars table */
uint32_t libraries_num; /* number of libraries */
sp_file_libraries_t *lib; /* library table */
} sp_plugin_infotab_t;
/**