[seed: 4/4] Add seed_context_get_global function to API



commit 423e3eaf5374abf681bfdc71a988c61c71551548
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Mar 15 15:48:21 2009 -0400

    Add seed_context_get_global function to API
---
 libseed/seed-api.c |    6 ++++++
 libseed/seed.h     |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libseed/seed-api.c b/libseed/seed-api.c
index 551e339..dc25f1a 100644
--- a/libseed/seed-api.c
+++ b/libseed/seed-api.c
@@ -562,4 +562,10 @@ seed_signal_connect (JSContextRef ctx,
 			   NULL);
 }
 
+JSObjectRef
+seed_context_get_global_object (JSGlobalContextRef ctx)
+{
+  return JSContextGetGlobalObject(ctx);
+}
+
 
diff --git a/libseed/seed.h b/libseed/seed.h
index ba5701b..ebe56f1 100644
--- a/libseed/seed.h
+++ b/libseed/seed.h
@@ -360,5 +360,6 @@ seed_signal_connect_value (SeedContext ctx,
 			   SeedValue user_data);			   
 
 
+SeedObject seed_context_get_global_object (SeedContext ctx);
 
 #endif



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