[seed: 1/7] Initial add of ffi module
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed: 1/7] Initial add of ffi module
- Date: Sun, 2 Aug 2009 01:28:38 +0000 (UTC)
commit b79b825990e62e5e6c87ec6b9815f09d58e7a56a
Author: Robert Carr <racarr gnome org>
Date: Sat Aug 1 17:19:54 2009 -0400
Initial add of ffi module
configure.ac | 20 ++++++++++++--------
libseed/seed.h | 10 ++++++++++
modules/Makefile.am | 2 +-
3 files changed, 23 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8de4626..8910489 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,6 +180,8 @@ if test x"$want_dbus_module" == x"yes" ; then
AC_SUBST(DBUSGLIB_LDFLAGS)
fi
+
+
dnl ==== os ====
AC_ARG_ENABLE(os-module,
AC_HELP_STRING([--enable-os-module],
@@ -190,15 +192,15 @@ AC_ARG_ENABLE(os-module,
AM_CONDITIONAL(BUILD_OS_MODULE, test "x$want_os_module" = "xyes")
AC_SUBST(BUILD_OS_MODULE)
-dnl ==== os ====
-AC_ARG_ENABLE(os-module,
- AC_HELP_STRING([--enable-os-module],
- [enable the os Seed module. [default=yes]]),
- [want_os_module=$enableval],[want_os_module="yes"])
+dnl ==== ffi ====
+AC_ARG_ENABLE(ffi-module,
+ AC_HELP_STRING([--enable-ffi-module],
+ [enable the ffi Seed module. [default=yes]]),
+ [want_ffi_module=$enableval],[want_ffi_module="yes"])
-AM_CONDITIONAL(BUILD_OS_MODULE, test "x$want_os_module" = "xyes")
-AC_SUBST(BUILD_OS_MODULE)
+AM_CONDITIONAL(BUILD_FFI_MODULE, test "x$want_ffi_module" = "xyes")
+AC_SUBST(BUILD_FFI_MODULE)
dnl ==== libxml ====
AC_ARG_ENABLE(libxml-module,
@@ -461,6 +463,7 @@ modules/cairo/Makefile
modules/gtkbuilder/Makefile
modules/gettext/Makefile
modules/mpfr/Makefile
+modules/ffi/Makefile
libseed/seed-path.h
])
@@ -489,8 +492,9 @@ Modules:
gtkbuilder.................$want_gtkbuilder_module
gettext....................$want_gettext_module
mpfr.......................$want_mpfr_module
+ ffi........................$want_ffi_module
-Examples:
+C Examples:
Turtle.....................$want_turtle_example
"
diff --git a/libseed/seed.h b/libseed/seed.h
index aa68741..ab5099d 100644
--- a/libseed/seed.h
+++ b/libseed/seed.h
@@ -202,6 +202,16 @@ gchar *seed_value_to_string (SeedContext ctx,
SeedValue seed_value_from_string (SeedContext ctx,
const gchar * val, SeedException * exception);
+gchar *seed_value_to_filename (SeedContext ctx,
+ SeedValue val, SeedValue *exception);
+SeedValue seed_value_from_filename (SeedContext ctx,
+ SeedValue val, SeedValue *exception);
+
+SeedValue seed_value_from_binary_string (SeedContext ctx,
+ const gchar *bytes,
+ gint n_bytes,
+ SeedException *exception);
+
SeedType seed_value_get_type (SeedContext ctx, SeedValue value);
gboolean
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 1871e3d..150e2e2 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -1 +1 @@
-SUBDIRS = example sqlite canvas multiprocessing readline os sandbox dbus libxml cairo gtkbuilder gettext mpfr
+SUBDIRS = example sqlite canvas multiprocessing readline os sandbox dbus libxml cairo gtkbuilder gettext mpfr ffi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]