seed r333 - in trunk: . libseed modules modules/example modules/sqlite
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r333 - in trunk: . libseed modules modules/example modules/sqlite
- Date: Tue, 25 Nov 2008 00:29:24 +0000 (UTC)
Author: racarr
Date: Tue Nov 25 00:29:24 2008
New Revision: 333
URL: http://svn.gnome.org/viewvc/seed?rev=333&view=rev
Log:
Add skeleton SQLite C extension module...will serve as a test to flesh out the embedding API.
Added:
trunk/modules/sqlite/
trunk/modules/sqlite/Makefile.am
trunk/modules/sqlite/seed-sqlite.c
Modified:
trunk/configure.ac
trunk/libseed/seed.h
trunk/modules/Makefile.am
trunk/modules/example/example.c
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Nov 25 00:29:24 2008
@@ -107,4 +107,5 @@
gir/Makefile
modules/Makefile
modules/example/Makefile
+modules/sqlite/Makefile
])
Modified: trunk/libseed/seed.h
==============================================================================
--- trunk/libseed/seed.h (original)
+++ trunk/libseed/seed.h Tue Nov 25 00:29:24 2008
@@ -19,6 +19,10 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <glib.h>
+#include <glib-object.h>
+#include <girepository.h>
+
#ifndef _SEED_H
#define _SEED_H
Modified: trunk/modules/Makefile.am
==============================================================================
--- trunk/modules/Makefile.am (original)
+++ trunk/modules/Makefile.am Tue Nov 25 00:29:24 2008
@@ -1 +1 @@
-SUBDIRS = example
+SUBDIRS = example sqlite
Modified: trunk/modules/example/example.c
==============================================================================
--- trunk/modules/example/example.c (original)
+++ trunk/modules/example/example.c Tue Nov 25 00:29:24 2008
@@ -1,5 +1,3 @@
-#include <glib.h>
-#include <glib-object.h>
#include <seed.h>
void seed_module_init(SeedEngine * eng)
Added: trunk/modules/sqlite/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/modules/sqlite/Makefile.am Tue Nov 25 00:29:24 2008
@@ -0,0 +1,14 @@
+lib_LTLIBRARIES = \
+ libsqlite.la
+
+libsqlite_la_SOURCES = \
+ seed-sqlite.c
+
+libsqlite_la_LDFLAGS = \
+ `pkg-config --libs seed sqlite3`
+
+AM_CPPFLAGS = \
+ `pkg-config --cflags seed sqlite3` -g
+
+libdir = ${exec_prefix}/lib/seed
+
Added: trunk/modules/sqlite/seed-sqlite.c
==============================================================================
--- (empty file)
+++ trunk/modules/sqlite/seed-sqlite.c Tue Nov 25 00:29:24 2008
@@ -0,0 +1,7 @@
+#include <seed.h>
+#include <sqlite3.h>
+
+void seed_module_init(SeedEngine * eng)
+{
+ printf("Hello Seed SQLite world");
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]