seed r173 - trunk/libseed



Author: racarr
Date: Sat Nov  8 00:19:11 2008
New Revision: 173
URL: http://svn.gnome.org/viewvc/seed?rev=173&view=rev

Log:
Add seed_create_function and SeedFunctionCallback to public API.


Modified:
   trunk/libseed/seed.h

Modified: trunk/libseed/seed.h
==============================================================================
--- trunk/libseed/seed.h	(original)
+++ trunk/libseed/seed.h	Sat Nov  8 00:19:11 2008
@@ -25,6 +25,7 @@
 typedef gpointer SeedClass;
 typedef gpointer SeedException;
 typedef gpointer SeedFunction;
+typedef gpointer SeedContextRef;
 
 typedef struct _SeedScript SeedScript;
 
@@ -83,4 +84,14 @@
 GObject *seed_value_to_object(SeedValue val, SeedException *exception);
 SeedValue seed_value_from_object(GObject * val, SeedException *exception);
 
+typedef void (*SeedFunctionCallback) (SeedContextRef ctx,
+									  SeedObject function,
+									  SeedObject this_object,
+									  size_t argument_count,
+									  const SeedValue arguments[],
+									  SeedException * exception);
+
+void seed_create_function(gchar * name, SeedFunctionCallback,
+						  SeedObject object);
+
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]