Initialize glib threads since it's needed by WebKitGtk soup http-backend build.
[pywebkitgtk.git] / gjs / gjs.defs
blobe5f726f8b905c78c00476b1ab252709d44cf6c28
1 ;; -*- scheme -*-
2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
3 ;;
4 ;; Copyright (C) 2008 Luke Kenneth Carlson Leigh
5 ;; 
6 ;; This library is free software; you can redistribute it and/or
7 ;; modify it under the terms of the GNU Library General Public
8 ;; License as published by the Free Software Foundation; either
9 ;; version 2 of the License, or (at your option) any later version.
10 ;; 
11 ;; This library is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ;; Library General Public License for more details.
15 ;; 
16 ;; You should have received a copy of the GNU Library General Public
17 ;; License along with this library; if not, write to the Free Software
18 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
21 (define-object Value
22   (in-module "Gjs")
23   (parent "GObject")
24   (c-name "GjsValue")
25   (gtype-id "GJS_TYPE_VALUE")
28 ;(define-method gjs_get_global_context
29 ;  (of-object "WebKitWebFrame")
30 ;  (c-name "gjs_get_global_context")
31 ;  (return-type "GjsValue*")
34 ;; From "gjs.h"
36 (define-method has_attribute
37   (of-object "GjsValue")
38   (c-name "gjs_value_has_attribute")
39   (return-type "gboolean")
40   (parameters
41    '("const-gchar*" "name")
42    )
45 (define-method get_attribute
46   (of-object "GjsValue")
47   (c-name "gjs_value_get_attribute")
48   (caller-owns-return #t)
49   (return-type "GjsValue*")
50   (parameters
51    '("const-gchar*" "name")
52    )
55 (define-method get_string
56   (of-object "GjsValue")
57   (c-name "gjs_value_get_string")
58   (caller-owns-return #t)
59   (return-type "const-gchar*")
62 (define-method get_attribute_string
63   (of-object "GjsValue")
64   (c-name "gjs_value_get_attribute_string")
65   (caller-owns-return #t)
66   (return-type "GjsValue*")
67   (parameters
68    '("const-gchar*" "name")
69    )
72 (define-method get_nth_attribute
73   (of-object "GjsValue")
74   (c-name "gjs_value_get_nth_attribute")
75   (caller-owns-return #t)
76   (return-type "GjsValue*")
77   (parameters
78    '("gint" "n")
79    )
82 (define-method get_elements_by_tag_name
83   (of-object "GjsValue")
84   (c-name "gjs_value_get_elements_by_tag_name")
85   (caller-owns-return #t)
86   (return-type "GjsValue*")
87   (parameters
88    '("const-gchar*" "name")
89    )
92 ;(define-method eval
93 ;  (of-object "GjsValue")
94 ;  (c-name "gjs_value_eval")
95 ;  (caller-owns-return #t)
96 ;  (return-type "GjsValue*")
97 ;  (parameters
98 ;   '("const-gchar*" "script")
99 ;   )
102 (define-method execute
103   (of-object "GjsValue")
104   (c-name "gjs_value_execute")
105   (caller-owns-return #t)
106   (return-type "GjsValue*")
107   (parameters
108    '("const-gchar*" "script")
109    )
112 (define-method get_by_name
113   (of-object "GjsValue")
114   (c-name "gjs_value_get_by_name")
115   (caller-owns-return #t)
116   (return-type "GjsValue*")
117   (parameters
118    '("const-gchar*" "name")
119    )