projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, no modif to main window : the drawing request will come from the configure...
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
module.c
diff --git
a/ltt/branches/poly/lttv/module.c
b/ltt/branches/poly/lttv/module.c
index 0f6f5a0727a0d35e8fddb7cc23a24a2db8b25fcb..a77aa736f5f372bb1557c0622ba480b6abf6b90a 100644
(file)
--- a/
ltt/branches/poly/lttv/module.c
+++ b/
ltt/branches/poly/lttv/module.c
@@
-78,7
+78,9
@@
module_load(const char *name, int argc, char **argv)
for(i = 0 ; i < modulesPaths->len ; i++) {
pathname = g_module_build_path(modulesPaths->pdata[i],name);
for(i = 0 ; i < modulesPaths->len ; i++) {
pathname = g_module_build_path(modulesPaths->pdata[i],name);
- gm = g_module_open(pathname,0);
+ gm = g_module_open(pathname,G_MODULE_BIND_LAZY);
+ g_critical("loading module : %s", pathname);
+ g_critical("module error : %s", g_module_error());
g_free(pathname);
if(gm != NULL) break;
g_free(pathname);
if(gm != NULL) break;
@@
-88,12
+90,12
@@
module_load(const char *name, int argc, char **argv)
if(gm == NULL) {
pathname = g_module_build_path(NULL,name);
if(gm == NULL) {
pathname = g_module_build_path(NULL,name);
- gm = g_module_open(pathname,0);
+ gm = g_module_open(pathname,G_MODULE_BIND_LAZY);
+ g_critical("loading module : %s", pathname);
g_free(pathname);
}
/* Module cannot be found */
g_free(pathname);
}
/* Module cannot be found */
-
if(gm == NULL) return NULL;
/* Check if the module was already opened using the hopefully canonical name
if(gm == NULL) return NULL;
/* Check if the module was already opened using the hopefully canonical name
@@
-118,7
+120,7
@@
module_load(const char *name, int argc, char **argv)
if(!g_module_symbol(gm, "init", (gpointer)&init_function)) {
g_warning("module %s (%s) has no init function", name, pathname);
}
if(!g_module_symbol(gm, "init", (gpointer)&init_function)) {
g_warning("module %s (%s) has no init function", name, pathname);
}
- else init_
F
unction(m, argc, argv);
+ else init_
f
unction(m, argc, argv);
}
else {
}
else {
@@
-138,7
+140,6
@@
LttvModule *
lttv_module_load(const char *name, int argc, char **argv)
{
LttvModule *m = module_load(name, argc, argv);
lttv_module_load(const char *name, int argc, char **argv)
{
LttvModule *m = module_load(name, argc, argv);
-
if(m != NULL) m->load_count++;
return m;
}
if(m != NULL) m->load_count++;
return m;
}
This page took
0.02241 seconds
and
4
git commands to generate.