X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodule.c;h=e225992aeed5b861f7a8c36c6dbb7afbd07a2969;hb=3a941e84bd9157dd1d44c673dede417ac515d381;hp=f73e6e935c367e796edb293886ecbf3bc6b3426a;hpb=b445142a71748192520cfd645b4963e23070a486;p=lttv.git diff --git a/ltt/branches/poly/lttv/module.c b/ltt/branches/poly/lttv/module.c index f73e6e93..e225992a 100644 --- a/ltt/branches/poly/lttv/module.c +++ b/ltt/branches/poly/lttv/module.c @@ -169,7 +169,7 @@ lttv_module_require(LttvModule *m, const char *name, int argc, char **argv) g_info("Load module %s, as %s is a dependent requiring it", name, g_module_name(m->module)); module = module_load(name, argc, argv); - if(module != NULL) g_ptr_array_add(m->dependents, module); + if(module != NULL) g_ptr_array_add(module->dependents, m); return module; } @@ -266,6 +266,11 @@ lttv_module_info(LttvModule *m, const char **name, return array; } +char * +lttv_module_name(LttvModule *m) +{ + return g_module_name(m->module); +} static void list_independent(gpointer key, gpointer value, gpointer user_data)