~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to midori/gjs.h

  • Committer: Christian Dywan
  • Date: 2008-06-01 21:47:27 UTC
  • Revision ID: git-v1:b511f12b9b4b063610161f2229b94a24a86be0fc
Rename folder 'src' to 'midori'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
 
3
 
 
4
 This library is free software; you can redistribute it and/or
 
5
 modify it under the terms of the GNU Lesser General Public
 
6
 License as published by the Free Software Foundation; either
 
7
 version 2.1 of the License, or (at your option) any later version.
 
8
 
 
9
 See the file COPYING for the full license text.
 
10
*/
 
11
 
 
12
#ifndef __GJS_H__
 
13
#define __GJS_H__
 
14
 
 
15
#include <JavaScriptCore/JavaScript.h>
 
16
#include <glib-object.h>
 
17
 
 
18
G_BEGIN_DECLS
 
19
 
 
20
JSValueRef
 
21
gjs_script_eval (JSContextRef js_context,
 
22
                 const gchar* script,
 
23
                 gchar**      exception);
 
24
 
 
25
gboolean
 
26
gjs_script_check_syntax (JSContextRef js_context,
 
27
                         const gchar* script,
 
28
                         gchar**      exception);
 
29
 
 
30
gboolean
 
31
gjs_script_from_file (JSContextRef js_context,
 
32
                      const gchar* filename,
 
33
                      gchar**      exception);
 
34
 
 
35
gchar*
 
36
gjs_string_utf8 (JSStringRef js_string);
 
37
 
 
38
JSObjectRef
 
39
gjs_object_new (JSContextRef context,
 
40
                const gchar* name,
 
41
                gpointer     instance);
 
42
 
 
43
JSGlobalContextRef
 
44
gjs_global_context_new (void);
 
45
 
 
46
G_END_DECLS
 
47
 
 
48
#endif /* __GJS_H__ */