Author: adrian.chadd
Date: Sun Apr 19 19:03:59 2009
New Revision: 13945
Added:
playpen/LUSCA_HEAD_module/src/modules/null/
playpen/LUSCA_HEAD_module/src/modules/null/Makefile
playpen/LUSCA_HEAD_module/src/modules/null/null.c
Log:
Add in some very simple test module stuff so I can "pretend"
load in modules.
Added: playpen/LUSCA_HEAD_module/src/modules/null/Makefile
==============================================================================
--- (empty file)
+++ playpen/LUSCA_HEAD_module/src/modules/null/Makefile Sun Apr 19 19:03:59
2009
@@ -0,0 +1,15 @@
+
+# This is a very hacky, freebsd specific makefile to build
+# a "null" Lusca module.
+
+CFLAGS=-O2 -g -I../../.. -shared
+LDFLAGS=-shared
+RM=rm
+
+null.so: null.o
+ $(CC) $(LDFLAGS) -fPIC -Wl,-soname,null.so -o null.so null.o
+
+all: null.so
+
+clean:
+ $(RM) -f null.o null.so
Added: playpen/LUSCA_HEAD_module/src/modules/null/null.c
==============================================================================
--- (empty file)
+++ playpen/LUSCA_HEAD_module/src/modules/null/null.c Sun Apr 19 19:03:59
2009
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <assert.h>
+
+#include "libcore/dlink.h"
+
+#include "libsqmod/module.h"
+
+int
+moduleInitFunc(module_t *module)
+{
+ return 1;
+}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---