projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test data sent from hook file, square insert implemented
[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 e6012f768223fd3121383b68df1a18f33a06d423..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
@@
-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.032878 seconds
and
4
git commands to generate.