0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02:00

modules: add description field

This commit is contained in:
Elizabeth Myers 2016-03-06 17:14:31 -06:00
parent 0e5bf029a6
commit 0eb7d9c02c
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ struct module
{
char *name;
const char *version;
const char *description;
lt_dlhandle address;
int core;
int mapi_version;

View file

@ -967,6 +967,7 @@ load_a_module(const char *path, int warn, int core)
modlist[num_mods] = rb_malloc(sizeof(struct module));
modlist[num_mods]->address = tmpptr;
modlist[num_mods]->version = ver;
modlist[num_mods]->description = description;
modlist[num_mods]->core = core;
modlist[num_mods]->name = rb_strdup(mod_basename);
modlist[num_mods]->mapi_header = mapi_version;