summaryrefslogtreecommitdiff
path: root/gi/boxed.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-10-21 09:18:41 -0400
committerColin Walters <walters@verbum.org>2010-10-21 10:38:19 -0400
commit25681375970de9a8ecbb4a6165df2e2cc4a7a39d (patch)
tree38556b91efdaf9d9bc1c7421a5151060a69e09b0 /gi/boxed.c
parentda877651d1af5da29576a2e5daca705effc7a1a4 (diff)
downloadgjs-25681375970de9a8ecbb4a6165df2e2cc4a7a39d.tar.gz
Separate "basic" API from "embedder/module" API
Previously <gjs/gjs.h> pulled in a lot of stuff, and in particular, <gjs/jsapi-util.h>, which in turn required <jsapi.h>. For a simple app that wants to embed GJS we should not be pulling that in. So <gjs/gjs.h> is now the "simple" API that actually just includes <gjs/context.h>, suitable for creating a context and calling eval(). <gjs/gjs-module.h> is now equivalent to the old <gjs/gjs.h>, it pulls in the world. Also, create a corresponding .pc file, gjs-internals-1.0.pc. This one includes mozjs as Requires, and adds the requisite Cflags. For gjs-1.0.pc, change the Requires to simply be gobject-2.0. Conceptually, a gjs-devel RPM should not Require gobject-introspection-devel or xulrunner-devel, and a simple embedder program just using gjs_context_new()/gjs_context_eval() should not have DT_NEEDED on gobject-introspection-1.0.so or mozjs.so. https://bugzilla.gnome.org/show_bug.cgi?id=632795
Diffstat (limited to 'gi/boxed.c')
-rw-r--r--gi/boxed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/boxed.c b/gi/boxed.c
index b85ec2a5..afc752a4 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -28,7 +28,7 @@
#include "boxed.h"
#include "arg.h"
#include "object.h"
-#include <gjs/gjs.h>
+#include <gjs/gjs-module.h>
#include <gjs/compat.h>
#include "repo.h"
#include "function.h"