[seed] libseed: Add seed_object_get_prototype to the public API
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] libseed: Add seed_object_get_prototype to the public API
- Date: Tue, 12 May 2009 15:15:10 -0400 (EDT)
commit 14d0cb1adb24c6115d6e49224002bb6552ed56ea
Author: Robert Carr <racarr svn gnome org>
Date: Tue May 12 14:55:30 2009 -0400
libseed: Add seed_object_get_prototype to the public API
---
libseed/seed-api.c | 6 ++++++
libseed/seed.h | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/libseed/seed-api.c b/libseed/seed-api.c
index 543e090..4a2a04a 100644
--- a/libseed/seed-api.c
+++ b/libseed/seed-api.c
@@ -645,3 +645,9 @@ seed_object_copy_property_names(JSContextRef ctx,
return ret;
}
+
+JSObjectRef
+seed_object_get_prototype (JSContextRef ctx, JSObjectRef obj)
+{
+ return (JSObjectRef) JSObjectGetPrototype (ctx, obj);
+}
diff --git a/libseed/seed.h b/libseed/seed.h
index 2b20e7a..1f11720 100644
--- a/libseed/seed.h
+++ b/libseed/seed.h
@@ -408,5 +408,8 @@ seed_closure_invoke_with_context (SeedContext ctx, GClosure *closure, SeedValue
void
seed_closure_warn_exception (GClosure *c, SeedContext ctx, SeedException exception);
+SeedObject
+seed_object_get_prototype (SeedContext ctx, SeedObject obj);
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]