1 /* D-Bus types: implementation internals
3 * Copyright (C) 2006-2007 Collabora Ltd. <http://www.collabora.co.uk/>
5 * Permission is hereby granted, free of charge, to any person
6 * obtaining a copy of this software and associated documentation
7 * files (the "Software"), to deal in the Software without
8 * restriction, including without limitation the rights to use, copy,
9 * modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be
14 * included in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
29 #include "dbus_bindings-internal.h"
31 #ifndef DBUS_BINDINGS_TYPES_INTERNAL_H
32 #define DBUS_BINDINGS_TYPES_INTERNAL_H
34 extern PyTypeObject DBusPyIntBase_Type
;
35 DEFINE_CHECK(DBusPyIntBase
)
42 extern PyTypeObject DBusPyLongBase_Type
;
43 DEFINE_CHECK(DBusPyLongBase
)
45 extern PyTypeObject DBusPyFloatBase_Type
;
46 DEFINE_CHECK(DBusPyFloatBase
)
54 PyUnicodeObject unicode
;
58 extern PyTypeObject DBusPyStrBase_Type
;
59 DEFINE_CHECK(DBusPyStrBase
)
61 dbus_int16_t
dbus_py_int16_range_check(PyObject
*);
62 dbus_uint16_t
dbus_py_uint16_range_check(PyObject
*);
63 dbus_int32_t
dbus_py_int32_range_check(PyObject
*);
64 dbus_uint32_t
dbus_py_uint32_range_check(PyObject
*);
66 #if defined(DBUS_HAVE_INT64) && defined(HAVE_LONG_LONG)
67 # define DBUS_PYTHON_64_BIT_WORKS 1
68 dbus_int64_t
dbus_py_int64_range_check(PyObject
*);
69 dbus_uint64_t
dbus_py_uint64_range_check(PyObject
*);
71 # undef DBUS_PYTHON_64_BIT_WORKS
72 #endif /* defined(DBUS_HAVE_INT64) && defined(HAVE_LONG_LONG) */
74 extern PyObject
*dbus_py_variant_level_const
;
75 extern PyObject
*dbus_py_signature_const
;
76 extern PyObject
*dbus_py__dbus_object_path__const
;
90 PyObject
*dbus_py_variant_level_getattro(PyObject
*obj
, PyObject
*name
);
91 dbus_bool_t
dbus_py_variant_level_set(PyObject
*obj
, long variant_level
);
92 void dbus_py_variant_level_clear(PyObject
*obj
);
93 long dbus_py_variant_level_get(PyObject
*obj
);