projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update compat
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
examples
/
sampledep.c
diff --git
a/ltt/branches/poly/lttv/modules/examples/sampledep.c
b/ltt/branches/poly/lttv/modules/examples/sampledep.c
index dd64c9f4106e4d12d0e2e4a061df08b326182254..9f0ca614d818eb6dfd1df01cb1369e160a9fc5ad 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/examples/sampledep.c
+++ b/
ltt/branches/poly/lttv/modules/examples/sampledep.c
@@
-2,19
+2,24
@@
/* Created by Mathieu Desnoyers, may 2003 */
/* Created by Mathieu Desnoyers, may 2003 */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <glib.h>
-#include <gmodule.h>
/* Include module.h from lttv headers for module loading */
#include <lttv/module.h>
/* Include module.h from lttv headers for module loading */
#include <lttv/module.h>
-
G_MODULE_EXPORT void init(int argc, char * argv[], LttvModule *self
) {
+
static void init(
) {
g_critical("Sample module dependant init()");
g_critical("Sample module dependant init()");
-
- lttv_module_require(self, "samplemodule",argc,argv);
}
}
-
G_MODULE_EXPORT
void destroy() {
+
static
void destroy() {
g_critical("Sample module dependant destroy()");
}
g_critical("Sample module dependant destroy()");
}
-
+
+
+LTTV_MODULE("sampledep", "Medium desc...", "Long desc...", init, destroy, \
+ { "samplemodule" })
+
This page took
0.022905 seconds
and
4
git commands to generate.