remove config.lt when issuing make clean target
[pywebkitgtk.git] / javascriptcore / javascriptcore_types.h
blobee53b6a9c39b5a9eed20d8fbb3a47155bfd8c258
1 /* PyWebKitGtk - Python bindings to WebKit/GTK+
3 * Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
20 #ifndef PYWEBKITGTK_WRAP_JSC_H
21 #define PYWEBKITGTK_WRAP_JSC_H
23 #undef _POSIX_C_SOURCE
24 #include <Python.h>
25 #include <JavaScriptCore/JSContextRef.h>
27 typedef struct {
28 PyObject_HEAD
29 JSContextRef obj;
30 } JSContextRef_object;
32 typedef struct {
33 PyObject_HEAD
34 JSGlobalContextRef obj;
35 } JSGlobalContextRef_object;
37 /* Functions to wrap JavaScriptCore Python objects -> JavaScriptCore C objects */
38 #define JSContextRef_get(v) (((v) == Py_None) ? NULL : (((JSContextRef_object *)(PyObject_GetAttr(v,PyString_FromString("_o"))))->obj));
40 #define JSGlobalContextRef_get(v) (((v) == Py_None) ? NULL : (((JSGlobalContextRef_object *)(PyObject_GetAttr(v,PyString_FromString("_o"))))->obj));
42 PyObject* wrap_JSContextRef(JSContextRef jscontextref);
43 PyObject* wrap_JSGlobalContextRef(JSGlobalContextRef jsglobalref);
45 #endif /* PYWEBKITGTK_WRAP_JSC_H */