~ubuntu-branches/ubuntu/wily/blueman/wily-proposed

« back to all changes in this revision

Viewing changes to module/_blueman.c

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-01-21 08:54:58 UTC
  • mfrom: (2.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140121085458-riy3j6wk9vfd599j
Tags: 1.23-git201312311147-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/patches/01_dont_autostart_lxde.patch:
    + Don't autostart the applet in LXDE
  - debian/patches/02_dont_crash_on_non-bluetooth_card.patch:
    + Avoid crashing when receiving event for cards blueman shouldn't handle
  - debian/control: Don't depend on python-appindicator
  - debian/patches/03_filemanager_fix.patch:
    + Add support for more filemanagers 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Pyrex 0.9.8.5 on Sat Oct  8 22:51:22 2011 */
2
 
 
3
 
#define PY_SSIZE_T_CLEAN
4
 
#include "Python.h"
5
 
#include "structmember.h"
6
 
#ifndef PY_LONG_LONG
7
 
  #define PY_LONG_LONG LONG_LONG
8
 
#endif
9
 
#if PY_VERSION_HEX < 0x02050000
10
 
  typedef int Py_ssize_t;
11
 
  #define PY_SSIZE_T_MAX INT_MAX
12
 
  #define PY_SSIZE_T_MIN INT_MIN
13
 
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
14
 
  #define PyInt_AsSsize_t(o)    PyInt_AsLong(o)
15
 
#endif
16
 
#if !defined(WIN32) && !defined(MS_WINDOWS)
17
 
  #ifndef __stdcall
18
 
    #define __stdcall
19
 
  #endif
20
 
  #ifndef __cdecl
21
 
    #define __cdecl
22
 
  #endif
23
 
#endif
24
 
#ifdef __cplusplus
25
 
#define __PYX_EXTERN_C extern "C"
26
 
#else
27
 
#define __PYX_EXTERN_C extern
28
 
#endif
29
 
#include <math.h>
30
 
#include "malloc.h"
31
 
#include "string.h"
32
 
#include "bluetooth/bluetooth.h"
33
 
#include "bluetooth/hci.h"
34
 
#include "bluetooth/hci_lib.h"
35
 
#include "bluetooth/rfcomm.h"
36
 
#include "libblueman.h"
37
 
#include "linux/sockios.h"
38
 
#include "X11/X.h"
39
 
#include "libsn/sn-common.h"
40
 
#include "libsn/sn-launcher.h"
41
 
#include "stdio.h"
42
 
#include "glib-object.h"
43
 
#include "pygobject.h"
44
 
#include "gdk/gdkx.h"
45
 
#include "modem-prober.h"
46
 
#include "glib.h"
47
 
 
48
 
 
49
 
typedef struct {PyObject **p; int i; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
50
 
 
51
 
static PyObject *__pyx_m;
52
 
static PyObject *__pyx_b;
53
 
static int __pyx_lineno;
54
 
static char *__pyx_filename;
55
 
static char **__pyx_f;
56
 
 
57
 
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
58
 
 
59
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
60
 
 
61
 
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
62
 
 
63
 
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
64
 
 
65
 
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/
66
 
 
67
 
static void __Pyx_AddTraceback(char *funcname); /*proto*/
68
 
 
69
 
/* Declarations from _blueman */
70
 
 
71
 
 
72
 
/* Declarations from implementation of _blueman */
73
 
 
74
 
struct __pyx_obj_8_blueman_conn_info {
75
 
  PyObject_HEAD
76
 
  struct conn_info_handles ci;
77
 
  int hci;
78
 
};
79
 
 
80
 
struct __pyx_obj_8_blueman_sn_launcher {
81
 
  PyObject_HEAD
82
 
  struct SnLauncherContext *ctx;
83
 
};
84
 
 
85
 
 
86
 
 
87
 
static PyTypeObject *__pyx_ptype_8_blueman_conn_info = 0;
88
 
static PyTypeObject *__pyx_ptype_8_blueman_sn_launcher = 0;
89
 
__PYX_EXTERN_C DL_EXPORT(struct SnLauncherContext) *GetSnLauncherContext(void); /*proto*/
90
 
static void __pyx_f_8_blueman_sn_error_trap_push(SnDisplay *,Display *); /*proto*/
91
 
static void __pyx_f_8_blueman_sn_error_trap_pop(SnDisplay *,Display *); /*proto*/
92
 
 
93
 
static char __pyx_k1[] = "append";
94
 
static char __pyx_k2[] = "ERR";
95
 
static char __pyx_k3[] = "id";
96
 
static char __pyx_k4[] = "channel";
97
 
static char __pyx_k5[] = "flags";
98
 
static char __pyx_k6[] = "state";
99
 
static char __pyx_k7[] = "RFCOMM_STATES";
100
 
static char __pyx_k8[] = "src";
101
 
static char __pyx_k9[] = "dst";
102
 
static char __pyx_k10[] = "errno";
103
 
static char __pyx_k11[] = "BridgeException";
104
 
static char __pyx_k12[] = "err_rx";
105
 
static char __pyx_k13[] = "err_tx";
106
 
static char __pyx_k14[] = "cmd_tx";
107
 
static char __pyx_k15[] = "evt_rx";
108
 
static char __pyx_k16[] = "acl_tx";
109
 
static char __pyx_k17[] = "acl_rx";
110
 
static char __pyx_k18[] = "sco_tx";
111
 
static char __pyx_k19[] = "sco_rx";
112
 
static char __pyx_k20[] = "byte_rx";
113
 
static char __pyx_k21[] = "byte_tx";
114
 
static char __pyx_k22[] = "dev_id";
115
 
static char __pyx_k23[] = "name";
116
 
static char __pyx_k24[] = "bdaddr";
117
 
static char __pyx_k25[] = "type";
118
 
static char __pyx_k26[] = "features";
119
 
static char __pyx_k27[] = "pkt_type";
120
 
static char __pyx_k28[] = "link_policy";
121
 
static char __pyx_k29[] = "link_mode";
122
 
static char __pyx_k30[] = "acl_mtu";
123
 
static char __pyx_k31[] = "acl_pkts";
124
 
static char __pyx_k32[] = "sco_mtu";
125
 
static char __pyx_k33[] = "stat";
126
 
static char __pyx_k34[] = "gtk";
127
 
static char __pyx_k35[] = "gdk";
128
 
static char __pyx_k36[] = "DisplayX11";
129
 
static char __pyx_k37[] = "Display must be a gtk.gdk.DisplayX11";
130
 
static char __pyx_k38[] = "GdkDisplay is NULL";
131
 
static char __pyx_k39[] = "SnLauncherContext is NULL";
132
 
static char __pyx_k40[] = "callable";
133
 
static char __pyx_k41[] = "callback must be callable";
134
 
static char __pyx_k42[] = "device node must not be None";
135
 
static char __pyx_k43[] = "Can't allocate memory";
136
 
static char __pyx_k44[] = "HCI device open failed";
137
 
static char __pyx_k45[] = "Not connected";
138
 
static char __pyx_k46[] = "Get connection info failed";
139
 
static char __pyx_k47[] = "Read RSSI failed";
140
 
static char __pyx_k48[] = "Read transmit power level request failed";
141
 
static char __pyx_k49[] = "Read Link quality failed";
142
 
static char __pyx_k50[] = "Getting rfcomm list failed";
143
 
static char __pyx_k51[] = "ERR_SOCKET_FAILED";
144
 
static char __pyx_k52[] = "ERR_CANT_READ_PAGE_TIMEOUT";
145
 
static char __pyx_k53[] = "ERR_READ_PAGE_TIMEOUT";
146
 
static char __pyx_k54[] = "unknown";
147
 
static char __pyx_k55[] = "connected";
148
 
static char __pyx_k56[] = "clean";
149
 
static char __pyx_k57[] = "bound";
150
 
static char __pyx_k58[] = "listening";
151
 
static char __pyx_k59[] = "connecting";
152
 
static char __pyx_k60[] = "config";
153
 
static char __pyx_k61[] = "disconnecting";
154
 
static char __pyx_k62[] = "closed";
155
 
static char __pyx_k63[] = "RFCOMM_REUSE_DLC";
156
 
static char __pyx_k64[] = "RFCOMM_RELEASE_ONHUP";
157
 
static char __pyx_k65[] = "RFCOMM_HANGUP_NOW";
158
 
static char __pyx_k66[] = "RFCOMM_TTY_ATTACHED";
159
 
static char __pyx_k67[] = "exceptions";
160
 
static char __pyx_k68[] = "Exception";
161
 
static char __pyx_k69[] = "__init__";
162
 
static char __pyx_k70[] = "__str__";
163
 
static char __pyx_k71[] = "pan1";
164
 
static char __pyx_k72[] = "hci0";
165
 
static char __pyx_k73[] = "SpecialDirType";
166
 
static char __pyx_k74[] = "DESKTOP";
167
 
static char __pyx_k75[] = "DOCUMENTS";
168
 
static char __pyx_k76[] = "DOWNLOAD";
169
 
static char __pyx_k77[] = "MUSIC";
170
 
static char __pyx_k78[] = "PICTURES";
171
 
static char __pyx_k79[] = "PUBLIC_SHARE";
172
 
static char __pyx_k80[] = "TEMPLATES";
173
 
static char __pyx_k81[] = "VIDEOS";
174
 
 
175
 
static PyObject *__pyx_n_BridgeException;
176
 
static PyObject *__pyx_n_DESKTOP;
177
 
static PyObject *__pyx_n_DOCUMENTS;
178
 
static PyObject *__pyx_n_DOWNLOAD;
179
 
static PyObject *__pyx_n_DisplayX11;
180
 
static PyObject *__pyx_n_ERR;
181
 
static PyObject *__pyx_n_ERR_CANT_READ_PAGE_TIMEOUT;
182
 
static PyObject *__pyx_n_ERR_READ_PAGE_TIMEOUT;
183
 
static PyObject *__pyx_n_ERR_SOCKET_FAILED;
184
 
static PyObject *__pyx_n_Exception;
185
 
static PyObject *__pyx_n_MUSIC;
186
 
static PyObject *__pyx_n_PICTURES;
187
 
static PyObject *__pyx_n_PUBLIC_SHARE;
188
 
static PyObject *__pyx_n_RFCOMM_HANGUP_NOW;
189
 
static PyObject *__pyx_n_RFCOMM_RELEASE_ONHUP;
190
 
static PyObject *__pyx_n_RFCOMM_REUSE_DLC;
191
 
static PyObject *__pyx_n_RFCOMM_STATES;
192
 
static PyObject *__pyx_n_RFCOMM_TTY_ATTACHED;
193
 
static PyObject *__pyx_n_SpecialDirType;
194
 
static PyObject *__pyx_n_TEMPLATES;
195
 
static PyObject *__pyx_n_VIDEOS;
196
 
static PyObject *__pyx_n___init__;
197
 
static PyObject *__pyx_n___str__;
198
 
static PyObject *__pyx_n_acl_mtu;
199
 
static PyObject *__pyx_n_acl_pkts;
200
 
static PyObject *__pyx_n_acl_rx;
201
 
static PyObject *__pyx_n_acl_tx;
202
 
static PyObject *__pyx_n_append;
203
 
static PyObject *__pyx_n_bdaddr;
204
 
static PyObject *__pyx_n_bound;
205
 
static PyObject *__pyx_n_byte_rx;
206
 
static PyObject *__pyx_n_byte_tx;
207
 
static PyObject *__pyx_n_callable;
208
 
static PyObject *__pyx_n_channel;
209
 
static PyObject *__pyx_n_clean;
210
 
static PyObject *__pyx_n_closed;
211
 
static PyObject *__pyx_n_cmd_tx;
212
 
static PyObject *__pyx_n_config;
213
 
static PyObject *__pyx_n_connected;
214
 
static PyObject *__pyx_n_connecting;
215
 
static PyObject *__pyx_n_dev_id;
216
 
static PyObject *__pyx_n_disconnecting;
217
 
static PyObject *__pyx_n_dst;
218
 
static PyObject *__pyx_n_err_rx;
219
 
static PyObject *__pyx_n_err_tx;
220
 
static PyObject *__pyx_n_errno;
221
 
static PyObject *__pyx_n_evt_rx;
222
 
static PyObject *__pyx_n_exceptions;
223
 
static PyObject *__pyx_n_features;
224
 
static PyObject *__pyx_n_flags;
225
 
static PyObject *__pyx_n_gdk;
226
 
static PyObject *__pyx_n_gtk;
227
 
static PyObject *__pyx_n_hci0;
228
 
static PyObject *__pyx_n_id;
229
 
static PyObject *__pyx_n_link_mode;
230
 
static PyObject *__pyx_n_link_policy;
231
 
static PyObject *__pyx_n_listening;
232
 
static PyObject *__pyx_n_name;
233
 
static PyObject *__pyx_n_pan1;
234
 
static PyObject *__pyx_n_pkt_type;
235
 
static PyObject *__pyx_n_sco_mtu;
236
 
static PyObject *__pyx_n_sco_rx;
237
 
static PyObject *__pyx_n_sco_tx;
238
 
static PyObject *__pyx_n_src;
239
 
static PyObject *__pyx_n_stat;
240
 
static PyObject *__pyx_n_state;
241
 
static PyObject *__pyx_n_type;
242
 
static PyObject *__pyx_n_unknown;
243
 
 
244
 
static PyObject *__pyx_k37p;
245
 
static PyObject *__pyx_k38p;
246
 
static PyObject *__pyx_k39p;
247
 
static PyObject *__pyx_k41p;
248
 
static PyObject *__pyx_k42p;
249
 
static PyObject *__pyx_k43p;
250
 
static PyObject *__pyx_k44p;
251
 
static PyObject *__pyx_k45p;
252
 
static PyObject *__pyx_k46p;
253
 
static PyObject *__pyx_k47p;
254
 
static PyObject *__pyx_k48p;
255
 
static PyObject *__pyx_k49p;
256
 
static PyObject *__pyx_k50p;
257
 
 
258
 
static __Pyx_StringTabEntry __pyx_string_tab[] = {
259
 
  {&__pyx_n_BridgeException, 1, __pyx_k11, sizeof(__pyx_k11)},
260
 
  {&__pyx_n_DESKTOP, 1, __pyx_k74, sizeof(__pyx_k74)},
261
 
  {&__pyx_n_DOCUMENTS, 1, __pyx_k75, sizeof(__pyx_k75)},
262
 
  {&__pyx_n_DOWNLOAD, 1, __pyx_k76, sizeof(__pyx_k76)},
263
 
  {&__pyx_n_DisplayX11, 1, __pyx_k36, sizeof(__pyx_k36)},
264
 
  {&__pyx_n_ERR, 1, __pyx_k2, sizeof(__pyx_k2)},
265
 
  {&__pyx_n_ERR_CANT_READ_PAGE_TIMEOUT, 1, __pyx_k52, sizeof(__pyx_k52)},
266
 
  {&__pyx_n_ERR_READ_PAGE_TIMEOUT, 1, __pyx_k53, sizeof(__pyx_k53)},
267
 
  {&__pyx_n_ERR_SOCKET_FAILED, 1, __pyx_k51, sizeof(__pyx_k51)},
268
 
  {&__pyx_n_Exception, 1, __pyx_k68, sizeof(__pyx_k68)},
269
 
  {&__pyx_n_MUSIC, 1, __pyx_k77, sizeof(__pyx_k77)},
270
 
  {&__pyx_n_PICTURES, 1, __pyx_k78, sizeof(__pyx_k78)},
271
 
  {&__pyx_n_PUBLIC_SHARE, 1, __pyx_k79, sizeof(__pyx_k79)},
272
 
  {&__pyx_n_RFCOMM_HANGUP_NOW, 1, __pyx_k65, sizeof(__pyx_k65)},
273
 
  {&__pyx_n_RFCOMM_RELEASE_ONHUP, 1, __pyx_k64, sizeof(__pyx_k64)},
274
 
  {&__pyx_n_RFCOMM_REUSE_DLC, 1, __pyx_k63, sizeof(__pyx_k63)},
275
 
  {&__pyx_n_RFCOMM_STATES, 1, __pyx_k7, sizeof(__pyx_k7)},
276
 
  {&__pyx_n_RFCOMM_TTY_ATTACHED, 1, __pyx_k66, sizeof(__pyx_k66)},
277
 
  {&__pyx_n_SpecialDirType, 1, __pyx_k73, sizeof(__pyx_k73)},
278
 
  {&__pyx_n_TEMPLATES, 1, __pyx_k80, sizeof(__pyx_k80)},
279
 
  {&__pyx_n_VIDEOS, 1, __pyx_k81, sizeof(__pyx_k81)},
280
 
  {&__pyx_n___init__, 1, __pyx_k69, sizeof(__pyx_k69)},
281
 
  {&__pyx_n___str__, 1, __pyx_k70, sizeof(__pyx_k70)},
282
 
  {&__pyx_n_acl_mtu, 1, __pyx_k30, sizeof(__pyx_k30)},
283
 
  {&__pyx_n_acl_pkts, 1, __pyx_k31, sizeof(__pyx_k31)},
284
 
  {&__pyx_n_acl_rx, 1, __pyx_k17, sizeof(__pyx_k17)},
285
 
  {&__pyx_n_acl_tx, 1, __pyx_k16, sizeof(__pyx_k16)},
286
 
  {&__pyx_n_append, 1, __pyx_k1, sizeof(__pyx_k1)},
287
 
  {&__pyx_n_bdaddr, 1, __pyx_k24, sizeof(__pyx_k24)},
288
 
  {&__pyx_n_bound, 1, __pyx_k57, sizeof(__pyx_k57)},
289
 
  {&__pyx_n_byte_rx, 1, __pyx_k20, sizeof(__pyx_k20)},
290
 
  {&__pyx_n_byte_tx, 1, __pyx_k21, sizeof(__pyx_k21)},
291
 
  {&__pyx_n_callable, 1, __pyx_k40, sizeof(__pyx_k40)},
292
 
  {&__pyx_n_channel, 1, __pyx_k4, sizeof(__pyx_k4)},
293
 
  {&__pyx_n_clean, 1, __pyx_k56, sizeof(__pyx_k56)},
294
 
  {&__pyx_n_closed, 1, __pyx_k62, sizeof(__pyx_k62)},
295
 
  {&__pyx_n_cmd_tx, 1, __pyx_k14, sizeof(__pyx_k14)},
296
 
  {&__pyx_n_config, 1, __pyx_k60, sizeof(__pyx_k60)},
297
 
  {&__pyx_n_connected, 1, __pyx_k55, sizeof(__pyx_k55)},
298
 
  {&__pyx_n_connecting, 1, __pyx_k59, sizeof(__pyx_k59)},
299
 
  {&__pyx_n_dev_id, 1, __pyx_k22, sizeof(__pyx_k22)},
300
 
  {&__pyx_n_disconnecting, 1, __pyx_k61, sizeof(__pyx_k61)},
301
 
  {&__pyx_n_dst, 1, __pyx_k9, sizeof(__pyx_k9)},
302
 
  {&__pyx_n_err_rx, 1, __pyx_k12, sizeof(__pyx_k12)},
303
 
  {&__pyx_n_err_tx, 1, __pyx_k13, sizeof(__pyx_k13)},
304
 
  {&__pyx_n_errno, 1, __pyx_k10, sizeof(__pyx_k10)},
305
 
  {&__pyx_n_evt_rx, 1, __pyx_k15, sizeof(__pyx_k15)},
306
 
  {&__pyx_n_exceptions, 1, __pyx_k67, sizeof(__pyx_k67)},
307
 
  {&__pyx_n_features, 1, __pyx_k26, sizeof(__pyx_k26)},
308
 
  {&__pyx_n_flags, 1, __pyx_k5, sizeof(__pyx_k5)},
309
 
  {&__pyx_n_gdk, 1, __pyx_k35, sizeof(__pyx_k35)},
310
 
  {&__pyx_n_gtk, 1, __pyx_k34, sizeof(__pyx_k34)},
311
 
  {&__pyx_n_hci0, 1, __pyx_k72, sizeof(__pyx_k72)},
312
 
  {&__pyx_n_id, 1, __pyx_k3, sizeof(__pyx_k3)},
313
 
  {&__pyx_n_link_mode, 1, __pyx_k29, sizeof(__pyx_k29)},
314
 
  {&__pyx_n_link_policy, 1, __pyx_k28, sizeof(__pyx_k28)},
315
 
  {&__pyx_n_listening, 1, __pyx_k58, sizeof(__pyx_k58)},
316
 
  {&__pyx_n_name, 1, __pyx_k23, sizeof(__pyx_k23)},
317
 
  {&__pyx_n_pan1, 1, __pyx_k71, sizeof(__pyx_k71)},
318
 
  {&__pyx_n_pkt_type, 1, __pyx_k27, sizeof(__pyx_k27)},
319
 
  {&__pyx_n_sco_mtu, 1, __pyx_k32, sizeof(__pyx_k32)},
320
 
  {&__pyx_n_sco_rx, 1, __pyx_k19, sizeof(__pyx_k19)},
321
 
  {&__pyx_n_sco_tx, 1, __pyx_k18, sizeof(__pyx_k18)},
322
 
  {&__pyx_n_src, 1, __pyx_k8, sizeof(__pyx_k8)},
323
 
  {&__pyx_n_stat, 1, __pyx_k33, sizeof(__pyx_k33)},
324
 
  {&__pyx_n_state, 1, __pyx_k6, sizeof(__pyx_k6)},
325
 
  {&__pyx_n_type, 1, __pyx_k25, sizeof(__pyx_k25)},
326
 
  {&__pyx_n_unknown, 1, __pyx_k54, sizeof(__pyx_k54)},
327
 
  {&__pyx_k37p, 0, __pyx_k37, sizeof(__pyx_k37)},
328
 
  {&__pyx_k38p, 0, __pyx_k38, sizeof(__pyx_k38)},
329
 
  {&__pyx_k39p, 0, __pyx_k39, sizeof(__pyx_k39)},
330
 
  {&__pyx_k41p, 0, __pyx_k41, sizeof(__pyx_k41)},
331
 
  {&__pyx_k42p, 0, __pyx_k42, sizeof(__pyx_k42)},
332
 
  {&__pyx_k43p, 0, __pyx_k43, sizeof(__pyx_k43)},
333
 
  {&__pyx_k44p, 0, __pyx_k44, sizeof(__pyx_k44)},
334
 
  {&__pyx_k45p, 0, __pyx_k45, sizeof(__pyx_k45)},
335
 
  {&__pyx_k46p, 0, __pyx_k46, sizeof(__pyx_k46)},
336
 
  {&__pyx_k47p, 0, __pyx_k47, sizeof(__pyx_k47)},
337
 
  {&__pyx_k48p, 0, __pyx_k48, sizeof(__pyx_k48)},
338
 
  {&__pyx_k49p, 0, __pyx_k49, sizeof(__pyx_k49)},
339
 
  {&__pyx_k50p, 0, __pyx_k50, sizeof(__pyx_k50)},
340
 
  {0, 0, 0, 0}
341
 
};
342
 
 
343
 
static PyObject *__pyx_d1;
344
 
static PyObject *__pyx_d2;
345
 
static PyObject *__pyx_d3;
346
 
static PyObject *__pyx_d4;
347
 
static PyObject *__pyx_d5;
348
 
static PyObject *__pyx_d6;
349
 
 
350
 
 
351
 
/* Implementation of _blueman */
352
 
 
353
 
static PyObject *__pyx_f_8_blueman_get_net_address(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
354
 
static PyObject *__pyx_f_8_blueman_get_net_address(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
355
 
  PyObject *__pyx_v_iface = 0;
356
 
  char *__pyx_v_addr;
357
 
  PyObject *__pyx_r;
358
 
  int __pyx_1;
359
 
  char *__pyx_2;
360
 
  PyObject *__pyx_3 = 0;
361
 
  static char *__pyx_argnames[] = {"iface",0};
362
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_iface)) return 0;
363
 
  Py_INCREF(__pyx_v_iface);
364
 
 
365
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":97 */
366
 
  if (PyObject_Cmp(__pyx_v_iface, Py_None, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L1;}
367
 
  __pyx_1 = __pyx_1 != 0;
368
 
  if (__pyx_1) {
369
 
 
370
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":98 */
371
 
    __pyx_2 = PyString_AsString(__pyx_v_iface); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L1;}
372
 
    __pyx_v_addr = get_net_address(__pyx_2,SIOCGIFADDR);
373
 
 
374
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":99 */
375
 
    __pyx_1 = (__pyx_v_addr == NULL);
376
 
    if (__pyx_1) {
377
 
      Py_INCREF(Py_None);
378
 
      __pyx_r = Py_None;
379
 
      goto __pyx_L0;
380
 
      goto __pyx_L3;
381
 
    }
382
 
    /*else*/ {
383
 
      __pyx_3 = PyString_FromString(__pyx_v_addr); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;}
384
 
      __pyx_r = __pyx_3;
385
 
      __pyx_3 = 0;
386
 
      goto __pyx_L0;
387
 
    }
388
 
    __pyx_L3:;
389
 
    goto __pyx_L2;
390
 
  }
391
 
  __pyx_L2:;
392
 
 
393
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
394
 
  goto __pyx_L0;
395
 
  __pyx_L1:;
396
 
  Py_XDECREF(__pyx_3);
397
 
  __Pyx_AddTraceback("_blueman.get_net_address");
398
 
  __pyx_r = 0;
399
 
  __pyx_L0:;
400
 
  Py_DECREF(__pyx_v_iface);
401
 
  return __pyx_r;
402
 
}
403
 
 
404
 
static PyObject *__pyx_f_8_blueman_get_net_netmask(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
405
 
static PyObject *__pyx_f_8_blueman_get_net_netmask(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
406
 
  PyObject *__pyx_v_iface = 0;
407
 
  char *__pyx_v_addr;
408
 
  PyObject *__pyx_r;
409
 
  int __pyx_1;
410
 
  char *__pyx_2;
411
 
  PyObject *__pyx_3 = 0;
412
 
  static char *__pyx_argnames[] = {"iface",0};
413
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_iface)) return 0;
414
 
  Py_INCREF(__pyx_v_iface);
415
 
 
416
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":106 */
417
 
  if (PyObject_Cmp(__pyx_v_iface, Py_None, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; goto __pyx_L1;}
418
 
  __pyx_1 = __pyx_1 != 0;
419
 
  if (__pyx_1) {
420
 
 
421
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":107 */
422
 
    __pyx_2 = PyString_AsString(__pyx_v_iface); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; goto __pyx_L1;}
423
 
    __pyx_v_addr = get_net_address(__pyx_2,SIOCGIFNETMASK);
424
 
 
425
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":108 */
426
 
    __pyx_1 = (__pyx_v_addr == NULL);
427
 
    if (__pyx_1) {
428
 
      Py_INCREF(Py_None);
429
 
      __pyx_r = Py_None;
430
 
      goto __pyx_L0;
431
 
      goto __pyx_L3;
432
 
    }
433
 
    /*else*/ {
434
 
      __pyx_3 = PyString_FromString(__pyx_v_addr); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; goto __pyx_L1;}
435
 
      __pyx_r = __pyx_3;
436
 
      __pyx_3 = 0;
437
 
      goto __pyx_L0;
438
 
    }
439
 
    __pyx_L3:;
440
 
    goto __pyx_L2;
441
 
  }
442
 
  __pyx_L2:;
443
 
 
444
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
445
 
  goto __pyx_L0;
446
 
  __pyx_L1:;
447
 
  Py_XDECREF(__pyx_3);
448
 
  __Pyx_AddTraceback("_blueman.get_net_netmask");
449
 
  __pyx_r = 0;
450
 
  __pyx_L0:;
451
 
  Py_DECREF(__pyx_v_iface);
452
 
  return __pyx_r;
453
 
}
454
 
 
455
 
static PyObject *__pyx_f_8_blueman_get_net_interfaces(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
456
 
static PyObject *__pyx_f_8_blueman_get_net_interfaces(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
457
 
  char **__pyx_v_ifaces;
458
 
  int __pyx_v_i;
459
 
  PyObject *__pyx_v_ret;
460
 
  PyObject *__pyx_r;
461
 
  int __pyx_1;
462
 
  PyObject *__pyx_2 = 0;
463
 
  long __pyx_3;
464
 
  PyObject *__pyx_4 = 0;
465
 
  PyObject *__pyx_5 = 0;
466
 
  static char *__pyx_argnames[] = {0};
467
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
468
 
  __pyx_v_ret = Py_None; Py_INCREF(Py_None);
469
 
 
470
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":116 */
471
 
  __pyx_v_i = 0;
472
 
 
473
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":118 */
474
 
  __pyx_v_ifaces = get_interface_list();
475
 
 
476
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":119 */
477
 
  __pyx_1 = (__pyx_v_ifaces == NULL);
478
 
  if (__pyx_1) {
479
 
    __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L1;}
480
 
    __pyx_r = __pyx_2;
481
 
    __pyx_2 = 0;
482
 
    goto __pyx_L0;
483
 
    goto __pyx_L2;
484
 
  }
485
 
  __pyx_L2:;
486
 
 
487
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":122 */
488
 
  __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L1;}
489
 
  Py_DECREF(__pyx_v_ret);
490
 
  __pyx_v_ret = __pyx_2;
491
 
  __pyx_2 = 0;
492
 
 
493
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":123 */
494
 
  while (1) {
495
 
    __pyx_3 = 1;
496
 
    if (!__pyx_3) break;
497
 
 
498
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":124 */
499
 
    __pyx_1 = ((__pyx_v_ifaces[__pyx_v_i]) == NULL);
500
 
    if (__pyx_1) {
501
 
      goto __pyx_L4;
502
 
      goto __pyx_L5;
503
 
    }
504
 
    /*else*/ {
505
 
 
506
 
      /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":127 */
507
 
      __pyx_2 = PyObject_GetAttr(__pyx_v_ret, __pyx_n_append); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
508
 
      __pyx_4 = PyString_FromString((__pyx_v_ifaces[__pyx_v_i])); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
509
 
      __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
510
 
      PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
511
 
      __pyx_4 = 0;
512
 
      __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
513
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
514
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
515
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
516
 
 
517
 
      /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":128 */
518
 
      free((__pyx_v_ifaces[__pyx_v_i]));
519
 
    }
520
 
    __pyx_L5:;
521
 
 
522
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":129 */
523
 
    __pyx_v_i = (__pyx_v_i + 1);
524
 
  }
525
 
  __pyx_L4:;
526
 
 
527
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":131 */
528
 
  free(__pyx_v_ifaces);
529
 
 
530
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":132 */
531
 
  Py_INCREF(__pyx_v_ret);
532
 
  __pyx_r = __pyx_v_ret;
533
 
  goto __pyx_L0;
534
 
 
535
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
536
 
  goto __pyx_L0;
537
 
  __pyx_L1:;
538
 
  Py_XDECREF(__pyx_2);
539
 
  Py_XDECREF(__pyx_4);
540
 
  Py_XDECREF(__pyx_5);
541
 
  __Pyx_AddTraceback("_blueman.get_net_interfaces");
542
 
  __pyx_r = 0;
543
 
  __pyx_L0:;
544
 
  Py_DECREF(__pyx_v_ret);
545
 
  return __pyx_r;
546
 
}
547
 
 
548
 
static PyObject *__pyx_f_8_blueman_rfcomm_list(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
549
 
static PyObject *__pyx_f_8_blueman_rfcomm_list(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
550
 
  struct rfcomm_dev_list_req *__pyx_v_dl;
551
 
  char __pyx_v_src[18];
552
 
  char __pyx_v_dst[18];
553
 
  PyObject *__pyx_v_res;
554
 
  PyObject *__pyx_v_devs;
555
 
  PyObject *__pyx_v_i;
556
 
  PyObject *__pyx_r;
557
 
  PyObject *__pyx_1 = 0;
558
 
  int __pyx_2;
559
 
  PyObject *__pyx_3 = 0;
560
 
  long __pyx_4;
561
 
  unsigned short __pyx_5;
562
 
  Py_ssize_t __pyx_6;
563
 
  PyObject *__pyx_7 = 0;
564
 
  PyObject *__pyx_8 = 0;
565
 
  PyObject *__pyx_9 = 0;
566
 
  static char *__pyx_argnames[] = {0};
567
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
568
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
569
 
  __pyx_v_devs = Py_None; Py_INCREF(Py_None);
570
 
  __pyx_v_i = Py_None; Py_INCREF(Py_None);
571
 
 
572
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":172 */
573
 
  __pyx_1 = PyInt_FromLong(get_rfcomm_list((&__pyx_v_dl))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; goto __pyx_L1;}
574
 
  Py_DECREF(__pyx_v_res);
575
 
  __pyx_v_res = __pyx_1;
576
 
  __pyx_1 = 0;
577
 
 
578
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":173 */
579
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; goto __pyx_L1;}
580
 
  if (PyObject_Cmp(__pyx_v_res, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; goto __pyx_L1;}
581
 
  __pyx_2 = __pyx_2 < 0;
582
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
583
 
  if (__pyx_2) {
584
 
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; goto __pyx_L1;}
585
 
    __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_v_res); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; goto __pyx_L1;}
586
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
587
 
    __Pyx_Raise(PyExc_Exception, __pyx_3, 0);
588
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
589
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; goto __pyx_L1;}
590
 
    goto __pyx_L2;
591
 
  }
592
 
  __pyx_L2:;
593
 
 
594
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":176 */
595
 
  __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; goto __pyx_L1;}
596
 
  Py_DECREF(__pyx_v_devs);
597
 
  __pyx_v_devs = __pyx_1;
598
 
  __pyx_1 = 0;
599
 
 
600
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":177 */
601
 
  __pyx_5 = __pyx_v_dl->dev_num;
602
 
  for (__pyx_4 = 0; __pyx_4 < __pyx_5; ++__pyx_4) {
603
 
    __pyx_3 = PyInt_FromLong(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; goto __pyx_L1;}
604
 
    Py_DECREF(__pyx_v_i);
605
 
    __pyx_v_i = __pyx_3;
606
 
    __pyx_3 = 0;
607
 
 
608
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":178 */
609
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; goto __pyx_L1;}
610
 
    ba2str((&(__pyx_v_dl->dev_info[__pyx_6]).src),__pyx_v_src);
611
 
 
612
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":179 */
613
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; goto __pyx_L1;}
614
 
    ba2str((&(__pyx_v_dl->dev_info[__pyx_6]).dst),__pyx_v_dst);
615
 
 
616
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":181 */
617
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_devs, __pyx_n_append); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; goto __pyx_L1;}
618
 
    __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
619
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
620
 
    __pyx_7 = PyInt_FromLong((__pyx_v_dl->dev_info[__pyx_6]).id); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
621
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_id, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
622
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
623
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
624
 
    __pyx_7 = PyInt_FromLong((__pyx_v_dl->dev_info[__pyx_6]).channel); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
625
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_channel, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
626
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
627
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; goto __pyx_L1;}
628
 
    __pyx_7 = PyLong_FromUnsignedLong((__pyx_v_dl->dev_info[__pyx_6]).flags); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; goto __pyx_L1;}
629
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_flags, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
630
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
631
 
    __pyx_7 = __Pyx_GetName(__pyx_m, __pyx_n_RFCOMM_STATES); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
632
 
    __pyx_6 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
633
 
    __pyx_8 = PyInt_FromLong((__pyx_v_dl->dev_info[__pyx_6]).state); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
634
 
    __pyx_9 = PyObject_GetItem(__pyx_7, __pyx_8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
635
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
636
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
637
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_state, __pyx_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
638
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
639
 
    __pyx_7 = PyString_FromString(__pyx_v_src); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; goto __pyx_L1;}
640
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_src, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
641
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
642
 
    __pyx_8 = PyString_FromString(__pyx_v_dst); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; goto __pyx_L1;}
643
 
    if (PyDict_SetItem(__pyx_3, __pyx_n_dst, __pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
644
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
645
 
    __pyx_9 = PyTuple_New(1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; goto __pyx_L1;}
646
 
    PyTuple_SET_ITEM(__pyx_9, 0, __pyx_3);
647
 
    __pyx_3 = 0;
648
 
    __pyx_7 = PyObject_CallObject(__pyx_1, __pyx_9); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; goto __pyx_L1;}
649
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
650
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
651
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
652
 
  }
653
 
 
654
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":190 */
655
 
  free(__pyx_v_dl);
656
 
 
657
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":192 */
658
 
  Py_INCREF(__pyx_v_devs);
659
 
  __pyx_r = __pyx_v_devs;
660
 
  goto __pyx_L0;
661
 
 
662
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
663
 
  goto __pyx_L0;
664
 
  __pyx_L1:;
665
 
  Py_XDECREF(__pyx_1);
666
 
  Py_XDECREF(__pyx_3);
667
 
  Py_XDECREF(__pyx_7);
668
 
  Py_XDECREF(__pyx_8);
669
 
  Py_XDECREF(__pyx_9);
670
 
  __Pyx_AddTraceback("_blueman.rfcomm_list");
671
 
  __pyx_r = 0;
672
 
  __pyx_L0:;
673
 
  Py_DECREF(__pyx_v_res);
674
 
  Py_DECREF(__pyx_v_devs);
675
 
  Py_DECREF(__pyx_v_i);
676
 
  return __pyx_r;
677
 
}
678
 
 
679
 
static PyObject *__pyx_f_8_blueman_15BridgeException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
680
 
static PyMethodDef __pyx_mdef_8_blueman_15BridgeException___init__ = {"__init__", (PyCFunction)__pyx_f_8_blueman_15BridgeException___init__, METH_VARARGS|METH_KEYWORDS, 0};
681
 
static PyObject *__pyx_f_8_blueman_15BridgeException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
682
 
  PyObject *__pyx_v_self = 0;
683
 
  PyObject *__pyx_v_errno = 0;
684
 
  PyObject *__pyx_r;
685
 
  static char *__pyx_argnames[] = {"self","errno",0};
686
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_self, &__pyx_v_errno)) return 0;
687
 
  Py_INCREF(__pyx_v_self);
688
 
  Py_INCREF(__pyx_v_errno);
689
 
  if (PyObject_SetAttr(__pyx_v_self, __pyx_n_errno, __pyx_v_errno) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; goto __pyx_L1;}
690
 
 
691
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
692
 
  goto __pyx_L0;
693
 
  __pyx_L1:;
694
 
  __Pyx_AddTraceback("_blueman.BridgeException.__init__");
695
 
  __pyx_r = 0;
696
 
  __pyx_L0:;
697
 
  Py_DECREF(__pyx_v_self);
698
 
  Py_DECREF(__pyx_v_errno);
699
 
  return __pyx_r;
700
 
}
701
 
 
702
 
static PyObject *__pyx_f_8_blueman_15BridgeException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
703
 
static PyMethodDef __pyx_mdef_8_blueman_15BridgeException___str__ = {"__str__", (PyCFunction)__pyx_f_8_blueman_15BridgeException___str__, METH_VARARGS|METH_KEYWORDS, 0};
704
 
static PyObject *__pyx_f_8_blueman_15BridgeException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
705
 
  PyObject *__pyx_v_self = 0;
706
 
  PyObject *__pyx_r;
707
 
  PyObject *__pyx_1 = 0;
708
 
  int __pyx_2;
709
 
  static char *__pyx_argnames[] = {"self",0};
710
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_self)) return 0;
711
 
  Py_INCREF(__pyx_v_self);
712
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_errno); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; goto __pyx_L1;}
713
 
  __pyx_2 = PyInt_AsLong(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; goto __pyx_L1;}
714
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
715
 
  __pyx_1 = PyString_FromString(strerror(__pyx_2)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; goto __pyx_L1;}
716
 
  __pyx_r = __pyx_1;
717
 
  __pyx_1 = 0;
718
 
  goto __pyx_L0;
719
 
 
720
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
721
 
  goto __pyx_L0;
722
 
  __pyx_L1:;
723
 
  Py_XDECREF(__pyx_1);
724
 
  __Pyx_AddTraceback("_blueman.BridgeException.__str__");
725
 
  __pyx_r = 0;
726
 
  __pyx_L0:;
727
 
  Py_DECREF(__pyx_v_self);
728
 
  return __pyx_r;
729
 
}
730
 
 
731
 
static PyObject *__pyx_f_8_blueman_create_bridge(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
732
 
static PyObject *__pyx_f_8_blueman_create_bridge(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
733
 
  PyObject *__pyx_v_name = 0;
734
 
  PyObject *__pyx_v_err;
735
 
  PyObject *__pyx_r;
736
 
  char *__pyx_1;
737
 
  PyObject *__pyx_2 = 0;
738
 
  int __pyx_3;
739
 
  PyObject *__pyx_4 = 0;
740
 
  PyObject *__pyx_5 = 0;
741
 
  static char *__pyx_argnames[] = {"name",0};
742
 
  __pyx_v_name = __pyx_d1;
743
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_name)) return 0;
744
 
  Py_INCREF(__pyx_v_name);
745
 
  __pyx_v_err = Py_None; Py_INCREF(Py_None);
746
 
 
747
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":205 */
748
 
  __pyx_1 = PyString_AsString(__pyx_v_name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; goto __pyx_L1;}
749
 
  __pyx_2 = PyInt_FromLong(_create_bridge(__pyx_1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; goto __pyx_L1;}
750
 
  Py_DECREF(__pyx_v_err);
751
 
  __pyx_v_err = __pyx_2;
752
 
  __pyx_2 = 0;
753
 
 
754
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":206 */
755
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; goto __pyx_L1;}
756
 
  if (PyObject_Cmp(__pyx_v_err, __pyx_2, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; goto __pyx_L1;}
757
 
  __pyx_3 = __pyx_3 < 0;
758
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
759
 
  if (__pyx_3) {
760
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_BridgeException); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
761
 
    __pyx_4 = PyNumber_Negative(__pyx_v_err); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
762
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
763
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
764
 
    __pyx_4 = 0;
765
 
    __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
766
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
767
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
768
 
    __Pyx_Raise(__pyx_4, 0, 0);
769
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
770
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
771
 
    goto __pyx_L2;
772
 
  }
773
 
  __pyx_L2:;
774
 
 
775
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
776
 
  goto __pyx_L0;
777
 
  __pyx_L1:;
778
 
  Py_XDECREF(__pyx_2);
779
 
  Py_XDECREF(__pyx_4);
780
 
  Py_XDECREF(__pyx_5);
781
 
  __Pyx_AddTraceback("_blueman.create_bridge");
782
 
  __pyx_r = 0;
783
 
  __pyx_L0:;
784
 
  Py_DECREF(__pyx_v_err);
785
 
  Py_DECREF(__pyx_v_name);
786
 
  return __pyx_r;
787
 
}
788
 
 
789
 
static PyObject *__pyx_f_8_blueman_destroy_bridge(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
790
 
static PyObject *__pyx_f_8_blueman_destroy_bridge(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
791
 
  PyObject *__pyx_v_name = 0;
792
 
  PyObject *__pyx_v_err;
793
 
  PyObject *__pyx_r;
794
 
  char *__pyx_1;
795
 
  PyObject *__pyx_2 = 0;
796
 
  int __pyx_3;
797
 
  PyObject *__pyx_4 = 0;
798
 
  PyObject *__pyx_5 = 0;
799
 
  static char *__pyx_argnames[] = {"name",0};
800
 
  __pyx_v_name = __pyx_d2;
801
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_name)) return 0;
802
 
  Py_INCREF(__pyx_v_name);
803
 
  __pyx_v_err = Py_None; Py_INCREF(Py_None);
804
 
 
805
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":210 */
806
 
  __pyx_1 = PyString_AsString(__pyx_v_name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; goto __pyx_L1;}
807
 
  __pyx_2 = PyInt_FromLong(_destroy_bridge(__pyx_1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; goto __pyx_L1;}
808
 
  Py_DECREF(__pyx_v_err);
809
 
  __pyx_v_err = __pyx_2;
810
 
  __pyx_2 = 0;
811
 
 
812
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":211 */
813
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; goto __pyx_L1;}
814
 
  if (PyObject_Cmp(__pyx_v_err, __pyx_2, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; goto __pyx_L1;}
815
 
  __pyx_3 = __pyx_3 < 0;
816
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
817
 
  if (__pyx_3) {
818
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_BridgeException); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
819
 
    __pyx_4 = PyNumber_Negative(__pyx_v_err); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
820
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
821
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
822
 
    __pyx_4 = 0;
823
 
    __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
824
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
825
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
826
 
    __Pyx_Raise(__pyx_4, 0, 0);
827
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
828
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
829
 
    goto __pyx_L2;
830
 
  }
831
 
  __pyx_L2:;
832
 
 
833
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
834
 
  goto __pyx_L0;
835
 
  __pyx_L1:;
836
 
  Py_XDECREF(__pyx_2);
837
 
  Py_XDECREF(__pyx_4);
838
 
  Py_XDECREF(__pyx_5);
839
 
  __Pyx_AddTraceback("_blueman.destroy_bridge");
840
 
  __pyx_r = 0;
841
 
  __pyx_L0:;
842
 
  Py_DECREF(__pyx_v_err);
843
 
  Py_DECREF(__pyx_v_name);
844
 
  return __pyx_r;
845
 
}
846
 
 
847
 
static int __pyx_f_8_blueman_9conn_info___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
848
 
static int __pyx_f_8_blueman_9conn_info___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
849
 
  PyObject *__pyx_v_addr = 0;
850
 
  PyObject *__pyx_v_hci_name = 0;
851
 
  PyObject *__pyx_v_res;
852
 
  int __pyx_r;
853
 
  PyObject *__pyx_1 = 0;
854
 
  PyObject *__pyx_2 = 0;
855
 
  int __pyx_3;
856
 
  char *__pyx_4;
857
 
  static char *__pyx_argnames[] = {"addr","hci_name",0};
858
 
  __pyx_v_hci_name = __pyx_d3;
859
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|O", __pyx_argnames, &__pyx_v_addr, &__pyx_v_hci_name)) return -1;
860
 
  Py_INCREF(__pyx_v_self);
861
 
  Py_INCREF(__pyx_v_addr);
862
 
  Py_INCREF(__pyx_v_hci_name);
863
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
864
 
 
865
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":222 */
866
 
  __pyx_1 = PySequence_GetSlice(__pyx_v_hci_name, 3, PY_SSIZE_T_MAX); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;}
867
 
  __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;}
868
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
869
 
  __pyx_1 = 0;
870
 
  __pyx_1 = PyObject_CallObject(((PyObject *)(&PyInt_Type)), __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;}
871
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
872
 
  __pyx_3 = PyInt_AsLong(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;}
873
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
874
 
  ((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->hci = __pyx_3;
875
 
 
876
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":223 */
877
 
  __pyx_4 = PyString_AsString(__pyx_v_addr); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; goto __pyx_L1;}
878
 
  __pyx_2 = PyInt_FromLong(connection_init(((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->hci,__pyx_4,(&((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->ci))); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; goto __pyx_L1;}
879
 
  Py_DECREF(__pyx_v_res);
880
 
  __pyx_v_res = __pyx_2;
881
 
  __pyx_2 = 0;
882
 
 
883
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":224 */
884
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; goto __pyx_L1;}
885
 
  if (PyObject_Cmp(__pyx_v_res, __pyx_1, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; goto __pyx_L1;}
886
 
  __pyx_3 = __pyx_3 < 0;
887
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
888
 
  if (__pyx_3) {
889
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; goto __pyx_L1;}
890
 
    __pyx_1 = PyObject_GetItem(__pyx_2, __pyx_v_res); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; goto __pyx_L1;}
891
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
892
 
    __Pyx_Raise(PyExc_Exception, __pyx_1, 0);
893
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
894
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; goto __pyx_L1;}
895
 
    goto __pyx_L2;
896
 
  }
897
 
  __pyx_L2:;
898
 
 
899
 
  __pyx_r = 0;
900
 
  goto __pyx_L0;
901
 
  __pyx_L1:;
902
 
  Py_XDECREF(__pyx_1);
903
 
  Py_XDECREF(__pyx_2);
904
 
  __Pyx_AddTraceback("_blueman.conn_info.__init__");
905
 
  __pyx_r = -1;
906
 
  __pyx_L0:;
907
 
  Py_DECREF(__pyx_v_res);
908
 
  Py_DECREF(__pyx_v_self);
909
 
  Py_DECREF(__pyx_v_addr);
910
 
  Py_DECREF(__pyx_v_hci_name);
911
 
  return __pyx_r;
912
 
}
913
 
 
914
 
static PyObject *__pyx_f_8_blueman_9conn_info_deinit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
915
 
static PyObject *__pyx_f_8_blueman_9conn_info_deinit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
916
 
  PyObject *__pyx_r;
917
 
  static char *__pyx_argnames[] = {0};
918
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
919
 
  Py_INCREF(__pyx_v_self);
920
 
  connection_close((&((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->ci));
921
 
 
922
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
923
 
  Py_DECREF(__pyx_v_self);
924
 
  return __pyx_r;
925
 
}
926
 
 
927
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_rssi(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
928
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_rssi(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
929
 
  char __pyx_v_rssi;
930
 
  PyObject *__pyx_v_res;
931
 
  PyObject *__pyx_r;
932
 
  PyObject *__pyx_1 = 0;
933
 
  int __pyx_2;
934
 
  PyObject *__pyx_3 = 0;
935
 
  static char *__pyx_argnames[] = {0};
936
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
937
 
  Py_INCREF(__pyx_v_self);
938
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
939
 
 
940
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":232 */
941
 
  __pyx_1 = PyInt_FromLong(connection_get_rssi((&((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->ci),(&__pyx_v_rssi))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; goto __pyx_L1;}
942
 
  Py_DECREF(__pyx_v_res);
943
 
  __pyx_v_res = __pyx_1;
944
 
  __pyx_1 = 0;
945
 
 
946
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":233 */
947
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; goto __pyx_L1;}
948
 
  if (PyObject_Cmp(__pyx_v_res, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; goto __pyx_L1;}
949
 
  __pyx_2 = __pyx_2 < 0;
950
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
951
 
  if (__pyx_2) {
952
 
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; goto __pyx_L1;}
953
 
    __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_v_res); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; goto __pyx_L1;}
954
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
955
 
    __Pyx_Raise(PyExc_Exception, __pyx_3, 0);
956
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
957
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; goto __pyx_L1;}
958
 
    goto __pyx_L2;
959
 
  }
960
 
  __pyx_L2:;
961
 
 
962
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":236 */
963
 
  __pyx_1 = PyInt_FromLong(__pyx_v_rssi); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; goto __pyx_L1;}
964
 
  __pyx_r = __pyx_1;
965
 
  __pyx_1 = 0;
966
 
  goto __pyx_L0;
967
 
 
968
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
969
 
  goto __pyx_L0;
970
 
  __pyx_L1:;
971
 
  Py_XDECREF(__pyx_1);
972
 
  Py_XDECREF(__pyx_3);
973
 
  __Pyx_AddTraceback("_blueman.conn_info.get_rssi");
974
 
  __pyx_r = 0;
975
 
  __pyx_L0:;
976
 
  Py_DECREF(__pyx_v_res);
977
 
  Py_DECREF(__pyx_v_self);
978
 
  return __pyx_r;
979
 
}
980
 
 
981
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_lq(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
982
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_lq(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
983
 
  unsigned char __pyx_v_lq;
984
 
  PyObject *__pyx_v_res;
985
 
  PyObject *__pyx_r;
986
 
  PyObject *__pyx_1 = 0;
987
 
  int __pyx_2;
988
 
  PyObject *__pyx_3 = 0;
989
 
  static char *__pyx_argnames[] = {0};
990
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
991
 
  Py_INCREF(__pyx_v_self);
992
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
993
 
 
994
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":240 */
995
 
  __pyx_1 = PyInt_FromLong(connection_get_lq((&((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->ci),(&__pyx_v_lq))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; goto __pyx_L1;}
996
 
  Py_DECREF(__pyx_v_res);
997
 
  __pyx_v_res = __pyx_1;
998
 
  __pyx_1 = 0;
999
 
 
1000
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":241 */
1001
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; goto __pyx_L1;}
1002
 
  if (PyObject_Cmp(__pyx_v_res, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; goto __pyx_L1;}
1003
 
  __pyx_2 = __pyx_2 < 0;
1004
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1005
 
  if (__pyx_2) {
1006
 
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;}
1007
 
    __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_v_res); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;}
1008
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
1009
 
    __Pyx_Raise(PyExc_Exception, __pyx_3, 0);
1010
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1011
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;}
1012
 
    goto __pyx_L2;
1013
 
  }
1014
 
  __pyx_L2:;
1015
 
 
1016
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":244 */
1017
 
  __pyx_1 = PyInt_FromLong(__pyx_v_lq); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; goto __pyx_L1;}
1018
 
  __pyx_r = __pyx_1;
1019
 
  __pyx_1 = 0;
1020
 
  goto __pyx_L0;
1021
 
 
1022
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1023
 
  goto __pyx_L0;
1024
 
  __pyx_L1:;
1025
 
  Py_XDECREF(__pyx_1);
1026
 
  Py_XDECREF(__pyx_3);
1027
 
  __Pyx_AddTraceback("_blueman.conn_info.get_lq");
1028
 
  __pyx_r = 0;
1029
 
  __pyx_L0:;
1030
 
  Py_DECREF(__pyx_v_res);
1031
 
  Py_DECREF(__pyx_v_self);
1032
 
  return __pyx_r;
1033
 
}
1034
 
 
1035
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_tpl(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1036
 
static PyObject *__pyx_f_8_blueman_9conn_info_get_tpl(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1037
 
  PyObject *__pyx_v_tp = 0;
1038
 
  char __pyx_v_tpl;
1039
 
  PyObject *__pyx_v_res;
1040
 
  PyObject *__pyx_r;
1041
 
  unsigned char __pyx_1;
1042
 
  PyObject *__pyx_2 = 0;
1043
 
  int __pyx_3;
1044
 
  PyObject *__pyx_4 = 0;
1045
 
  static char *__pyx_argnames[] = {"tp",0};
1046
 
  __pyx_v_tp = __pyx_d4;
1047
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_tp)) return 0;
1048
 
  Py_INCREF(__pyx_v_self);
1049
 
  Py_INCREF(__pyx_v_tp);
1050
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
1051
 
 
1052
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":248 */
1053
 
  __pyx_1 = PyInt_AsLong(__pyx_v_tp); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; goto __pyx_L1;}
1054
 
  __pyx_2 = PyInt_FromLong(connection_get_tpl((&((struct __pyx_obj_8_blueman_conn_info *)__pyx_v_self)->ci),(&__pyx_v_tpl),__pyx_1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; goto __pyx_L1;}
1055
 
  Py_DECREF(__pyx_v_res);
1056
 
  __pyx_v_res = __pyx_2;
1057
 
  __pyx_2 = 0;
1058
 
 
1059
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":249 */
1060
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; goto __pyx_L1;}
1061
 
  if (PyObject_Cmp(__pyx_v_res, __pyx_2, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; goto __pyx_L1;}
1062
 
  __pyx_3 = __pyx_3 < 0;
1063
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1064
 
  if (__pyx_3) {
1065
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; goto __pyx_L1;}
1066
 
    __pyx_4 = PyObject_GetItem(__pyx_2, __pyx_v_res); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; goto __pyx_L1;}
1067
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1068
 
    __Pyx_Raise(PyExc_Exception, __pyx_4, 0);
1069
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1070
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; goto __pyx_L1;}
1071
 
    goto __pyx_L2;
1072
 
  }
1073
 
  __pyx_L2:;
1074
 
 
1075
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":252 */
1076
 
  __pyx_2 = PyInt_FromLong(__pyx_v_tpl); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; goto __pyx_L1;}
1077
 
  __pyx_r = __pyx_2;
1078
 
  __pyx_2 = 0;
1079
 
  goto __pyx_L0;
1080
 
 
1081
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1082
 
  goto __pyx_L0;
1083
 
  __pyx_L1:;
1084
 
  Py_XDECREF(__pyx_2);
1085
 
  Py_XDECREF(__pyx_4);
1086
 
  __Pyx_AddTraceback("_blueman.conn_info.get_tpl");
1087
 
  __pyx_r = 0;
1088
 
  __pyx_L0:;
1089
 
  Py_DECREF(__pyx_v_res);
1090
 
  Py_DECREF(__pyx_v_self);
1091
 
  Py_DECREF(__pyx_v_tp);
1092
 
  return __pyx_r;
1093
 
}
1094
 
 
1095
 
static PyObject *__pyx_f_8_blueman_page_timeout(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1096
 
static PyObject *__pyx_f_8_blueman_page_timeout(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1097
 
  PyObject *__pyx_v_hci_name = 0;
1098
 
  PyObject *__pyx_v_dev_id;
1099
 
  PyObject *__pyx_v_ret;
1100
 
  PyObject *__pyx_r;
1101
 
  PyObject *__pyx_1 = 0;
1102
 
  PyObject *__pyx_2 = 0;
1103
 
  int __pyx_3;
1104
 
  static char *__pyx_argnames[] = {"hci_name",0};
1105
 
  __pyx_v_hci_name = __pyx_d5;
1106
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_hci_name)) return 0;
1107
 
  Py_INCREF(__pyx_v_hci_name);
1108
 
  __pyx_v_dev_id = Py_None; Py_INCREF(Py_None);
1109
 
  __pyx_v_ret = Py_None; Py_INCREF(Py_None);
1110
 
 
1111
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":255 */
1112
 
  __pyx_1 = PySequence_GetSlice(__pyx_v_hci_name, 3, PY_SSIZE_T_MAX); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; goto __pyx_L1;}
1113
 
  __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; goto __pyx_L1;}
1114
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
1115
 
  __pyx_1 = 0;
1116
 
  __pyx_1 = PyObject_CallObject(((PyObject *)(&PyInt_Type)), __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; goto __pyx_L1;}
1117
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1118
 
  Py_DECREF(__pyx_v_dev_id);
1119
 
  __pyx_v_dev_id = __pyx_1;
1120
 
  __pyx_1 = 0;
1121
 
 
1122
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":256 */
1123
 
  __pyx_3 = PyInt_AsLong(__pyx_v_dev_id); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; goto __pyx_L1;}
1124
 
  __pyx_2 = PyFloat_FromDouble(get_page_timeout(__pyx_3)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; goto __pyx_L1;}
1125
 
  Py_DECREF(__pyx_v_ret);
1126
 
  __pyx_v_ret = __pyx_2;
1127
 
  __pyx_2 = 0;
1128
 
 
1129
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":257 */
1130
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;}
1131
 
  if (PyObject_Cmp(__pyx_v_ret, __pyx_1, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;}
1132
 
  __pyx_3 = __pyx_3 < 0;
1133
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1134
 
  if (__pyx_3) {
1135
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ERR); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
1136
 
    __pyx_1 = PyObject_GetItem(__pyx_2, __pyx_v_ret); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
1137
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1138
 
    __Pyx_Raise(PyExc_Exception, __pyx_1, 0);
1139
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
1140
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
1141
 
    goto __pyx_L2;
1142
 
  }
1143
 
  /*else*/ {
1144
 
    Py_INCREF(__pyx_v_ret);
1145
 
    __pyx_r = __pyx_v_ret;
1146
 
    goto __pyx_L0;
1147
 
  }
1148
 
  __pyx_L2:;
1149
 
 
1150
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1151
 
  goto __pyx_L0;
1152
 
  __pyx_L1:;
1153
 
  Py_XDECREF(__pyx_1);
1154
 
  Py_XDECREF(__pyx_2);
1155
 
  __Pyx_AddTraceback("_blueman.page_timeout");
1156
 
  __pyx_r = 0;
1157
 
  __pyx_L0:;
1158
 
  Py_DECREF(__pyx_v_dev_id);
1159
 
  Py_DECREF(__pyx_v_ret);
1160
 
  Py_DECREF(__pyx_v_hci_name);
1161
 
  return __pyx_r;
1162
 
}
1163
 
 
1164
 
static PyObject *__pyx_f_8_blueman_device_info(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1165
 
static PyObject *__pyx_f_8_blueman_device_info(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1166
 
  PyObject *__pyx_v_hci_name = 0;
1167
 
  struct hci_dev_info __pyx_v_di;
1168
 
  PyObject *__pyx_v_dev_id;
1169
 
  PyObject *__pyx_v_res;
1170
 
  char __pyx_v_addr[32];
1171
 
  PyObject *__pyx_v_feats;
1172
 
  PyObject *__pyx_v_i;
1173
 
  PyObject *__pyx_v_x;
1174
 
  PyObject *__pyx_v_z;
1175
 
  PyObject *__pyx_r;
1176
 
  PyObject *__pyx_1 = 0;
1177
 
  PyObject *__pyx_2 = 0;
1178
 
  int __pyx_3;
1179
 
  long __pyx_4;
1180
 
  Py_ssize_t __pyx_5;
1181
 
  PyObject *__pyx_6 = 0;
1182
 
  PyObject *__pyx_7 = 0;
1183
 
  PyObject *__pyx_8 = 0;
1184
 
  PyObject *__pyx_9 = 0;
1185
 
  PyObject *__pyx_10 = 0;
1186
 
  PyObject *__pyx_11 = 0;
1187
 
  PyObject *__pyx_12 = 0;
1188
 
  PyObject *__pyx_13 = 0;
1189
 
  PyObject *__pyx_14 = 0;
1190
 
  PyObject *__pyx_15 = 0;
1191
 
  PyObject *__pyx_16 = 0;
1192
 
  PyObject *__pyx_17 = 0;
1193
 
  static char *__pyx_argnames[] = {"hci_name",0};
1194
 
  __pyx_v_hci_name = __pyx_d6;
1195
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_hci_name)) return 0;
1196
 
  Py_INCREF(__pyx_v_hci_name);
1197
 
  __pyx_v_dev_id = Py_None; Py_INCREF(Py_None);
1198
 
  __pyx_v_res = Py_None; Py_INCREF(Py_None);
1199
 
  __pyx_v_feats = Py_None; Py_INCREF(Py_None);
1200
 
  __pyx_v_i = Py_None; Py_INCREF(Py_None);
1201
 
  __pyx_v_x = Py_None; Py_INCREF(Py_None);
1202
 
  __pyx_v_z = Py_None; Py_INCREF(Py_None);
1203
 
 
1204
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":266 */
1205
 
  __pyx_1 = PySequence_GetSlice(__pyx_v_hci_name, 3, PY_SSIZE_T_MAX); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;}
1206
 
  __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;}
1207
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
1208
 
  __pyx_1 = 0;
1209
 
  __pyx_1 = PyObject_CallObject(((PyObject *)(&PyInt_Type)), __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;}
1210
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1211
 
  Py_DECREF(__pyx_v_dev_id);
1212
 
  __pyx_v_dev_id = __pyx_1;
1213
 
  __pyx_1 = 0;
1214
 
 
1215
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":268 */
1216
 
  __pyx_3 = PyInt_AsLong(__pyx_v_dev_id); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; goto __pyx_L1;}
1217
 
  __pyx_2 = PyInt_FromLong(hci_devinfo(__pyx_3,(&__pyx_v_di))); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; goto __pyx_L1;}
1218
 
  Py_DECREF(__pyx_v_res);
1219
 
  __pyx_v_res = __pyx_2;
1220
 
  __pyx_2 = 0;
1221
 
 
1222
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":271 */
1223
 
  ba2str((&__pyx_v_di.bdaddr),__pyx_v_addr);
1224
 
 
1225
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":273 */
1226
 
  __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; goto __pyx_L1;}
1227
 
  Py_DECREF(__pyx_v_feats);
1228
 
  __pyx_v_feats = __pyx_1;
1229
 
  __pyx_1 = 0;
1230
 
 
1231
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":274 */
1232
 
  for (__pyx_4 = 0; __pyx_4 < 8; ++__pyx_4) {
1233
 
    __pyx_2 = PyInt_FromLong(__pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; goto __pyx_L1;}
1234
 
    Py_DECREF(__pyx_v_i);
1235
 
    __pyx_v_i = __pyx_2;
1236
 
    __pyx_2 = 0;
1237
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_feats, __pyx_n_append); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; goto __pyx_L1;}
1238
 
    __pyx_5 = PyInt_AsSsize_t(__pyx_v_i); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; goto __pyx_L1;}
1239
 
    __pyx_2 = PyInt_FromLong((__pyx_v_di.features[__pyx_5])); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; goto __pyx_L1;}
1240
 
    __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; goto __pyx_L1;}
1241
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_2);
1242
 
    __pyx_2 = 0;
1243
 
    __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_6); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; goto __pyx_L1;}
1244
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
1245
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
1246
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1247
 
  }
1248
 
 
1249
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":277 */
1250
 
  __pyx_1 = PyLong_FromUnsignedLong(__pyx_v_di.stat.err_rx); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; goto __pyx_L1;}
1251
 
  __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; goto __pyx_L1;}
1252
 
  Py_INCREF(__pyx_n_err_rx);
1253
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_n_err_rx);
1254
 
  PyTuple_SET_ITEM(__pyx_6, 1, __pyx_1);
1255
 
  __pyx_1 = 0;
1256
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.err_tx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; goto __pyx_L1;}
1257
 
  __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; goto __pyx_L1;}
1258
 
  Py_INCREF(__pyx_n_err_tx);
1259
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_err_tx);
1260
 
  PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2);
1261
 
  __pyx_2 = 0;
1262
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.cmd_tx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; goto __pyx_L1;}
1263
 
  __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; goto __pyx_L1;}
1264
 
  Py_INCREF(__pyx_n_cmd_tx);
1265
 
  PyTuple_SET_ITEM(__pyx_7, 0, __pyx_n_cmd_tx);
1266
 
  PyTuple_SET_ITEM(__pyx_7, 1, __pyx_2);
1267
 
  __pyx_2 = 0;
1268
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.evt_rx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; goto __pyx_L1;}
1269
 
  __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; goto __pyx_L1;}
1270
 
  Py_INCREF(__pyx_n_evt_rx);
1271
 
  PyTuple_SET_ITEM(__pyx_8, 0, __pyx_n_evt_rx);
1272
 
  PyTuple_SET_ITEM(__pyx_8, 1, __pyx_2);
1273
 
  __pyx_2 = 0;
1274
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.acl_tx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; goto __pyx_L1;}
1275
 
  __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; goto __pyx_L1;}
1276
 
  Py_INCREF(__pyx_n_acl_tx);
1277
 
  PyTuple_SET_ITEM(__pyx_9, 0, __pyx_n_acl_tx);
1278
 
  PyTuple_SET_ITEM(__pyx_9, 1, __pyx_2);
1279
 
  __pyx_2 = 0;
1280
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.acl_rx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; goto __pyx_L1;}
1281
 
  __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; goto __pyx_L1;}
1282
 
  Py_INCREF(__pyx_n_acl_rx);
1283
 
  PyTuple_SET_ITEM(__pyx_10, 0, __pyx_n_acl_rx);
1284
 
  PyTuple_SET_ITEM(__pyx_10, 1, __pyx_2);
1285
 
  __pyx_2 = 0;
1286
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.sco_tx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; goto __pyx_L1;}
1287
 
  __pyx_11 = PyTuple_New(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; goto __pyx_L1;}
1288
 
  Py_INCREF(__pyx_n_sco_tx);
1289
 
  PyTuple_SET_ITEM(__pyx_11, 0, __pyx_n_sco_tx);
1290
 
  PyTuple_SET_ITEM(__pyx_11, 1, __pyx_2);
1291
 
  __pyx_2 = 0;
1292
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.sco_rx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
1293
 
  __pyx_12 = PyTuple_New(2); if (!__pyx_12) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
1294
 
  Py_INCREF(__pyx_n_sco_rx);
1295
 
  PyTuple_SET_ITEM(__pyx_12, 0, __pyx_n_sco_rx);
1296
 
  PyTuple_SET_ITEM(__pyx_12, 1, __pyx_2);
1297
 
  __pyx_2 = 0;
1298
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.byte_rx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; goto __pyx_L1;}
1299
 
  __pyx_13 = PyTuple_New(2); if (!__pyx_13) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; goto __pyx_L1;}
1300
 
  Py_INCREF(__pyx_n_byte_rx);
1301
 
  PyTuple_SET_ITEM(__pyx_13, 0, __pyx_n_byte_rx);
1302
 
  PyTuple_SET_ITEM(__pyx_13, 1, __pyx_2);
1303
 
  __pyx_2 = 0;
1304
 
  __pyx_2 = PyLong_FromUnsignedLong(__pyx_v_di.stat.byte_tx); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
1305
 
  __pyx_14 = PyTuple_New(2); if (!__pyx_14) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
1306
 
  Py_INCREF(__pyx_n_byte_tx);
1307
 
  PyTuple_SET_ITEM(__pyx_14, 0, __pyx_n_byte_tx);
1308
 
  PyTuple_SET_ITEM(__pyx_14, 1, __pyx_2);
1309
 
  __pyx_2 = 0;
1310
 
  __pyx_2 = PyList_New(10); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; goto __pyx_L1;}
1311
 
  PyList_SET_ITEM(__pyx_2, 0, __pyx_6);
1312
 
  PyList_SET_ITEM(__pyx_2, 1, __pyx_1);
1313
 
  PyList_SET_ITEM(__pyx_2, 2, __pyx_7);
1314
 
  PyList_SET_ITEM(__pyx_2, 3, __pyx_8);
1315
 
  PyList_SET_ITEM(__pyx_2, 4, __pyx_9);
1316
 
  PyList_SET_ITEM(__pyx_2, 5, __pyx_10);
1317
 
  PyList_SET_ITEM(__pyx_2, 6, __pyx_11);
1318
 
  PyList_SET_ITEM(__pyx_2, 7, __pyx_12);
1319
 
  PyList_SET_ITEM(__pyx_2, 8, __pyx_13);
1320
 
  PyList_SET_ITEM(__pyx_2, 9, __pyx_14);
1321
 
  __pyx_6 = 0;
1322
 
  __pyx_1 = 0;
1323
 
  __pyx_7 = 0;
1324
 
  __pyx_8 = 0;
1325
 
  __pyx_9 = 0;
1326
 
  __pyx_10 = 0;
1327
 
  __pyx_11 = 0;
1328
 
  __pyx_12 = 0;
1329
 
  __pyx_13 = 0;
1330
 
  __pyx_14 = 0;
1331
 
  Py_DECREF(__pyx_v_x);
1332
 
  __pyx_v_x = __pyx_2;
1333
 
  __pyx_2 = 0;
1334
 
 
1335
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":288 */
1336
 
  __pyx_6 = PyLong_FromUnsignedLong(__pyx_v_di.dev_id); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; goto __pyx_L1;}
1337
 
  __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; goto __pyx_L1;}
1338
 
  Py_INCREF(__pyx_n_dev_id);
1339
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_dev_id);
1340
 
  PyTuple_SET_ITEM(__pyx_1, 1, __pyx_6);
1341
 
  __pyx_6 = 0;
1342
 
  __pyx_7 = PyString_FromString(__pyx_v_di.name); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
1343
 
  __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
1344
 
  Py_INCREF(__pyx_n_name);
1345
 
  PyTuple_SET_ITEM(__pyx_8, 0, __pyx_n_name);
1346
 
  PyTuple_SET_ITEM(__pyx_8, 1, __pyx_7);
1347
 
  __pyx_7 = 0;
1348
 
  __pyx_9 = PyString_FromString(__pyx_v_addr); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
1349
 
  __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
1350
 
  Py_INCREF(__pyx_n_bdaddr);
1351
 
  PyTuple_SET_ITEM(__pyx_10, 0, __pyx_n_bdaddr);
1352
 
  PyTuple_SET_ITEM(__pyx_10, 1, __pyx_9);
1353
 
  __pyx_9 = 0;
1354
 
  __pyx_11 = PyLong_FromUnsignedLong(__pyx_v_di.flags); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; goto __pyx_L1;}
1355
 
  __pyx_12 = PyTuple_New(2); if (!__pyx_12) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; goto __pyx_L1;}
1356
 
  Py_INCREF(__pyx_n_flags);
1357
 
  PyTuple_SET_ITEM(__pyx_12, 0, __pyx_n_flags);
1358
 
  PyTuple_SET_ITEM(__pyx_12, 1, __pyx_11);
1359
 
  __pyx_11 = 0;
1360
 
  __pyx_13 = PyInt_FromLong(__pyx_v_di.type); if (!__pyx_13) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; goto __pyx_L1;}
1361
 
  __pyx_14 = PyTuple_New(2); if (!__pyx_14) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; goto __pyx_L1;}
1362
 
  Py_INCREF(__pyx_n_type);
1363
 
  PyTuple_SET_ITEM(__pyx_14, 0, __pyx_n_type);
1364
 
  PyTuple_SET_ITEM(__pyx_14, 1, __pyx_13);
1365
 
  __pyx_13 = 0;
1366
 
  __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; goto __pyx_L1;}
1367
 
  Py_INCREF(__pyx_n_features);
1368
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_features);
1369
 
  Py_INCREF(__pyx_v_feats);
1370
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_feats);
1371
 
  __pyx_6 = PyLong_FromUnsignedLong(__pyx_v_di.pkt_type); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; goto __pyx_L1;}
1372
 
  __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; goto __pyx_L1;}
1373
 
  Py_INCREF(__pyx_n_pkt_type);
1374
 
  PyTuple_SET_ITEM(__pyx_7, 0, __pyx_n_pkt_type);
1375
 
  PyTuple_SET_ITEM(__pyx_7, 1, __pyx_6);
1376
 
  __pyx_6 = 0;
1377
 
  __pyx_9 = PyLong_FromUnsignedLong(__pyx_v_di.link_policy); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; goto __pyx_L1;}
1378
 
  __pyx_11 = PyTuple_New(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; goto __pyx_L1;}
1379
 
  Py_INCREF(__pyx_n_link_policy);
1380
 
  PyTuple_SET_ITEM(__pyx_11, 0, __pyx_n_link_policy);
1381
 
  PyTuple_SET_ITEM(__pyx_11, 1, __pyx_9);
1382
 
  __pyx_9 = 0;
1383
 
  __pyx_13 = PyLong_FromUnsignedLong(__pyx_v_di.link_mode); if (!__pyx_13) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; goto __pyx_L1;}
1384
 
  __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; goto __pyx_L1;}
1385
 
  Py_INCREF(__pyx_n_link_mode);
1386
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_n_link_mode);
1387
 
  PyTuple_SET_ITEM(__pyx_6, 1, __pyx_13);
1388
 
  __pyx_13 = 0;
1389
 
  __pyx_9 = PyLong_FromUnsignedLong(__pyx_v_di.acl_mtu); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; goto __pyx_L1;}
1390
 
  __pyx_13 = PyTuple_New(2); if (!__pyx_13) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; goto __pyx_L1;}
1391
 
  Py_INCREF(__pyx_n_acl_mtu);
1392
 
  PyTuple_SET_ITEM(__pyx_13, 0, __pyx_n_acl_mtu);
1393
 
  PyTuple_SET_ITEM(__pyx_13, 1, __pyx_9);
1394
 
  __pyx_9 = 0;
1395
 
  __pyx_9 = PyLong_FromUnsignedLong(__pyx_v_di.acl_pkts); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L1;}
1396
 
  __pyx_15 = PyTuple_New(2); if (!__pyx_15) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L1;}
1397
 
  Py_INCREF(__pyx_n_acl_pkts);
1398
 
  PyTuple_SET_ITEM(__pyx_15, 0, __pyx_n_acl_pkts);
1399
 
  PyTuple_SET_ITEM(__pyx_15, 1, __pyx_9);
1400
 
  __pyx_9 = 0;
1401
 
  __pyx_9 = PyLong_FromUnsignedLong(__pyx_v_di.sco_pkts); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; goto __pyx_L1;}
1402
 
  __pyx_16 = PyTuple_New(2); if (!__pyx_16) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; goto __pyx_L1;}
1403
 
  Py_INCREF(__pyx_n_sco_mtu);
1404
 
  PyTuple_SET_ITEM(__pyx_16, 0, __pyx_n_sco_mtu);
1405
 
  PyTuple_SET_ITEM(__pyx_16, 1, __pyx_9);
1406
 
  __pyx_9 = 0;
1407
 
  __pyx_9 = PyTuple_New(1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; goto __pyx_L1;}
1408
 
  Py_INCREF(__pyx_v_x);
1409
 
  PyTuple_SET_ITEM(__pyx_9, 0, __pyx_v_x);
1410
 
  __pyx_17 = PyObject_CallObject(((PyObject *)(&PyDict_Type)), __pyx_9); if (!__pyx_17) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; goto __pyx_L1;}
1411
 
  Py_DECREF(__pyx_9); __pyx_9 = 0;
1412
 
  __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; goto __pyx_L1;}
1413
 
  Py_INCREF(__pyx_n_stat);
1414
 
  PyTuple_SET_ITEM(__pyx_9, 0, __pyx_n_stat);
1415
 
  PyTuple_SET_ITEM(__pyx_9, 1, __pyx_17);
1416
 
  __pyx_17 = 0;
1417
 
  __pyx_17 = PyList_New(13); if (!__pyx_17) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; goto __pyx_L1;}
1418
 
  PyList_SET_ITEM(__pyx_17, 0, __pyx_1);
1419
 
  PyList_SET_ITEM(__pyx_17, 1, __pyx_8);
1420
 
  PyList_SET_ITEM(__pyx_17, 2, __pyx_10);
1421
 
  PyList_SET_ITEM(__pyx_17, 3, __pyx_12);
1422
 
  PyList_SET_ITEM(__pyx_17, 4, __pyx_14);
1423
 
  PyList_SET_ITEM(__pyx_17, 5, __pyx_2);
1424
 
  PyList_SET_ITEM(__pyx_17, 6, __pyx_7);
1425
 
  PyList_SET_ITEM(__pyx_17, 7, __pyx_11);
1426
 
  PyList_SET_ITEM(__pyx_17, 8, __pyx_6);
1427
 
  PyList_SET_ITEM(__pyx_17, 9, __pyx_13);
1428
 
  PyList_SET_ITEM(__pyx_17, 10, __pyx_15);
1429
 
  PyList_SET_ITEM(__pyx_17, 11, __pyx_16);
1430
 
  PyList_SET_ITEM(__pyx_17, 12, __pyx_9);
1431
 
  __pyx_1 = 0;
1432
 
  __pyx_8 = 0;
1433
 
  __pyx_10 = 0;
1434
 
  __pyx_12 = 0;
1435
 
  __pyx_14 = 0;
1436
 
  __pyx_2 = 0;
1437
 
  __pyx_7 = 0;
1438
 
  __pyx_11 = 0;
1439
 
  __pyx_6 = 0;
1440
 
  __pyx_13 = 0;
1441
 
  __pyx_15 = 0;
1442
 
  __pyx_16 = 0;
1443
 
  __pyx_9 = 0;
1444
 
  Py_DECREF(__pyx_v_z);
1445
 
  __pyx_v_z = __pyx_17;
1446
 
  __pyx_17 = 0;
1447
 
 
1448
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":302 */
1449
 
  __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; goto __pyx_L1;}
1450
 
  Py_INCREF(__pyx_v_z);
1451
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_z);
1452
 
  __pyx_8 = PyObject_CallObject(((PyObject *)(&PyDict_Type)), __pyx_1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; goto __pyx_L1;}
1453
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1454
 
  __pyx_r = __pyx_8;
1455
 
  __pyx_8 = 0;
1456
 
  goto __pyx_L0;
1457
 
 
1458
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1459
 
  goto __pyx_L0;
1460
 
  __pyx_L1:;
1461
 
  Py_XDECREF(__pyx_1);
1462
 
  Py_XDECREF(__pyx_2);
1463
 
  Py_XDECREF(__pyx_6);
1464
 
  Py_XDECREF(__pyx_7);
1465
 
  Py_XDECREF(__pyx_8);
1466
 
  Py_XDECREF(__pyx_9);
1467
 
  Py_XDECREF(__pyx_10);
1468
 
  Py_XDECREF(__pyx_11);
1469
 
  Py_XDECREF(__pyx_12);
1470
 
  Py_XDECREF(__pyx_13);
1471
 
  Py_XDECREF(__pyx_14);
1472
 
  Py_XDECREF(__pyx_15);
1473
 
  Py_XDECREF(__pyx_16);
1474
 
  Py_XDECREF(__pyx_17);
1475
 
  __Pyx_AddTraceback("_blueman.device_info");
1476
 
  __pyx_r = 0;
1477
 
  __pyx_L0:;
1478
 
  Py_DECREF(__pyx_v_dev_id);
1479
 
  Py_DECREF(__pyx_v_res);
1480
 
  Py_DECREF(__pyx_v_feats);
1481
 
  Py_DECREF(__pyx_v_i);
1482
 
  Py_DECREF(__pyx_v_x);
1483
 
  Py_DECREF(__pyx_v_z);
1484
 
  Py_DECREF(__pyx_v_hci_name);
1485
 
  return __pyx_r;
1486
 
}
1487
 
 
1488
 
static void __pyx_f_8_blueman_sn_error_trap_push(SnDisplay *__pyx_v_display,Display *__pyx_v_xdisplay) {
1489
 
  gdk_error_trap_push();
1490
 
 
1491
 
}
1492
 
 
1493
 
static void __pyx_f_8_blueman_sn_error_trap_pop(SnDisplay *__pyx_v_display,Display *__pyx_v_xdisplay) {
1494
 
  gdk_error_trap_pop();
1495
 
 
1496
 
}
1497
 
 
1498
 
static int __pyx_f_8_blueman_11sn_launcher___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1499
 
static int __pyx_f_8_blueman_11sn_launcher___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1500
 
  PyObject *__pyx_v_display = 0;
1501
 
  int __pyx_v_screen;
1502
 
  PyObject *__pyx_v_gtk;
1503
 
  GObject *__pyx_v_dpy;
1504
 
  SnDisplay *__pyx_v_sn_dpy;
1505
 
  int __pyx_r;
1506
 
  PyObject *__pyx_1 = 0;
1507
 
  PyObject *__pyx_2 = 0;
1508
 
  PyObject *__pyx_3 = 0;
1509
 
  int __pyx_4;
1510
 
  static char *__pyx_argnames[] = {"display","screen",0};
1511
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "Oi", __pyx_argnames, &__pyx_v_display, &__pyx_v_screen)) return -1;
1512
 
  Py_INCREF(__pyx_v_self);
1513
 
  Py_INCREF(__pyx_v_display);
1514
 
  __pyx_v_gtk = Py_None; Py_INCREF(Py_None);
1515
 
 
1516
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":391 */
1517
 
  __pyx_1 = __Pyx_Import(__pyx_n_gtk, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; goto __pyx_L1;}
1518
 
  Py_DECREF(__pyx_v_gtk);
1519
 
  __pyx_v_gtk = __pyx_1;
1520
 
  __pyx_1 = 0;
1521
 
 
1522
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":392 */
1523
 
  __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
1524
 
  Py_INCREF(__pyx_v_display);
1525
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_display);
1526
 
  __pyx_2 = PyObject_CallObject(((PyObject *)(&PyType_Type)), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
1527
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1528
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_gtk, __pyx_n_gdk); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
1529
 
  __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_DisplayX11); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
1530
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1531
 
  if (PyObject_Cmp(__pyx_2, __pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
1532
 
  __pyx_4 = __pyx_4 != 0;
1533
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1534
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
1535
 
  if (__pyx_4) {
1536
 
    __Pyx_Raise(PyExc_TypeError, __pyx_k37p, 0);
1537
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;}
1538
 
    goto __pyx_L2;
1539
 
  }
1540
 
  __pyx_L2:;
1541
 
 
1542
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":398 */
1543
 
  __pyx_v_dpy = pygobject_get(__pyx_v_display);
1544
 
 
1545
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":400 */
1546
 
  __pyx_4 = (__pyx_v_dpy != NULL);
1547
 
  if (__pyx_4) {
1548
 
 
1549
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":401 */
1550
 
    __pyx_v_sn_dpy = sn_display_new(gdk_x11_display_get_xdisplay(((GdkDisplay *)__pyx_v_dpy)),__pyx_f_8_blueman_sn_error_trap_push,__pyx_f_8_blueman_sn_error_trap_pop);
1551
 
 
1552
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":402 */
1553
 
    ((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx = sn_launcher_context_new(__pyx_v_sn_dpy,__pyx_v_screen);
1554
 
 
1555
 
    /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":403 */
1556
 
    sn_display_unref(__pyx_v_sn_dpy);
1557
 
    goto __pyx_L3;
1558
 
  }
1559
 
  /*else*/ {
1560
 
    __Pyx_Raise(PyExc_RuntimeError, __pyx_k38p, 0);
1561
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; goto __pyx_L1;}
1562
 
  }
1563
 
  __pyx_L3:;
1564
 
 
1565
 
  __pyx_r = 0;
1566
 
  goto __pyx_L0;
1567
 
  __pyx_L1:;
1568
 
  Py_XDECREF(__pyx_1);
1569
 
  Py_XDECREF(__pyx_2);
1570
 
  Py_XDECREF(__pyx_3);
1571
 
  __Pyx_AddTraceback("_blueman.sn_launcher.__cinit__");
1572
 
  __pyx_r = -1;
1573
 
  __pyx_L0:;
1574
 
  Py_DECREF(__pyx_v_gtk);
1575
 
  Py_DECREF(__pyx_v_self);
1576
 
  Py_DECREF(__pyx_v_display);
1577
 
  return __pyx_r;
1578
 
}
1579
 
 
1580
 
static void __pyx_f_8_blueman_11sn_launcher___dealloc__(PyObject *__pyx_v_self); /*proto*/
1581
 
static void __pyx_f_8_blueman_11sn_launcher___dealloc__(PyObject *__pyx_v_self) {
1582
 
  int __pyx_1;
1583
 
  Py_INCREF(__pyx_v_self);
1584
 
 
1585
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":409 */
1586
 
  __pyx_1 = (((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx == NULL);
1587
 
  if (__pyx_1) {
1588
 
    __Pyx_Raise(PyExc_RuntimeError, __pyx_k39p, 0);
1589
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; goto __pyx_L1;}
1590
 
    goto __pyx_L2;
1591
 
  }
1592
 
  __pyx_L2:;
1593
 
 
1594
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":411 */
1595
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1596
 
 
1597
 
  goto __pyx_L0;
1598
 
  __pyx_L1:;
1599
 
  __Pyx_AddTraceback("_blueman.sn_launcher.__dealloc__");
1600
 
  __pyx_L0:;
1601
 
  Py_DECREF(__pyx_v_self);
1602
 
}
1603
 
 
1604
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_initiate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1605
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_initiate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1606
 
  char *__pyx_v_launcher_name;
1607
 
  char *__pyx_v_launchee_name;
1608
 
  Time __pyx_v_timestamp;
1609
 
  PyObject *__pyx_r;
1610
 
  static char *__pyx_argnames[] = {"launcher_name","launchee_name","timestamp",0};
1611
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ssk", __pyx_argnames, &__pyx_v_launcher_name, &__pyx_v_launchee_name, &__pyx_v_timestamp)) return 0;
1612
 
  Py_INCREF(__pyx_v_self);
1613
 
 
1614
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":415 */
1615
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1616
 
 
1617
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":416 */
1618
 
  sn_launcher_context_initiate(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_launcher_name,__pyx_v_launchee_name,__pyx_v_timestamp);
1619
 
 
1620
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":417 */
1621
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1622
 
 
1623
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1624
 
  Py_DECREF(__pyx_v_self);
1625
 
  return __pyx_r;
1626
 
}
1627
 
 
1628
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_complete(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1629
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_complete(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1630
 
  PyObject *__pyx_r;
1631
 
  static char *__pyx_argnames[] = {0};
1632
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1633
 
  Py_INCREF(__pyx_v_self);
1634
 
 
1635
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":420 */
1636
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1637
 
 
1638
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":421 */
1639
 
  sn_launcher_context_complete(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1640
 
 
1641
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":422 */
1642
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1643
 
 
1644
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1645
 
  Py_DECREF(__pyx_v_self);
1646
 
  return __pyx_r;
1647
 
}
1648
 
 
1649
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_startup_id(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1650
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_startup_id(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1651
 
  char *__pyx_v_ret;
1652
 
  PyObject *__pyx_r;
1653
 
  int __pyx_1;
1654
 
  PyObject *__pyx_2 = 0;
1655
 
  static char *__pyx_argnames[] = {0};
1656
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1657
 
  Py_INCREF(__pyx_v_self);
1658
 
 
1659
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":427 */
1660
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1661
 
 
1662
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":428 */
1663
 
  __pyx_v_ret = sn_launcher_context_get_startup_id(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1664
 
 
1665
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":429 */
1666
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1667
 
 
1668
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":430 */
1669
 
  __pyx_1 = (__pyx_v_ret != NULL);
1670
 
  if (__pyx_1) {
1671
 
    __pyx_2 = PyString_FromString(__pyx_v_ret); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;}
1672
 
    __pyx_r = __pyx_2;
1673
 
    __pyx_2 = 0;
1674
 
    goto __pyx_L0;
1675
 
    goto __pyx_L2;
1676
 
  }
1677
 
  /*else*/ {
1678
 
    Py_INCREF(Py_None);
1679
 
    __pyx_r = Py_None;
1680
 
    goto __pyx_L0;
1681
 
  }
1682
 
  __pyx_L2:;
1683
 
 
1684
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1685
 
  goto __pyx_L0;
1686
 
  __pyx_L1:;
1687
 
  Py_XDECREF(__pyx_2);
1688
 
  __Pyx_AddTraceback("_blueman.sn_launcher.get_startup_id");
1689
 
  __pyx_r = 0;
1690
 
  __pyx_L0:;
1691
 
  Py_DECREF(__pyx_v_self);
1692
 
  return __pyx_r;
1693
 
}
1694
 
 
1695
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_initiated(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1696
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_initiated(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1697
 
  PyObject *__pyx_v_ret;
1698
 
  PyObject *__pyx_r;
1699
 
  PyObject *__pyx_1 = 0;
1700
 
  int __pyx_2;
1701
 
  static char *__pyx_argnames[] = {0};
1702
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1703
 
  Py_INCREF(__pyx_v_self);
1704
 
  __pyx_v_ret = Py_None; Py_INCREF(Py_None);
1705
 
 
1706
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":436 */
1707
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1708
 
 
1709
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":437 */
1710
 
  __pyx_1 = PyInt_FromLong(sn_launcher_context_get_initiated(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; goto __pyx_L1;}
1711
 
  __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; goto __pyx_L1;}
1712
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1713
 
  __pyx_1 = PyInt_FromLong(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; goto __pyx_L1;}
1714
 
  Py_DECREF(__pyx_v_ret);
1715
 
  __pyx_v_ret = __pyx_1;
1716
 
  __pyx_1 = 0;
1717
 
 
1718
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":438 */
1719
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1720
 
 
1721
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":439 */
1722
 
  Py_INCREF(__pyx_v_ret);
1723
 
  __pyx_r = __pyx_v_ret;
1724
 
  goto __pyx_L0;
1725
 
 
1726
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1727
 
  goto __pyx_L0;
1728
 
  __pyx_L1:;
1729
 
  Py_XDECREF(__pyx_1);
1730
 
  __Pyx_AddTraceback("_blueman.sn_launcher.get_initiated");
1731
 
  __pyx_r = 0;
1732
 
  __pyx_L0:;
1733
 
  Py_DECREF(__pyx_v_ret);
1734
 
  Py_DECREF(__pyx_v_self);
1735
 
  return __pyx_r;
1736
 
}
1737
 
 
1738
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_setup_child_process(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1739
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_setup_child_process(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1740
 
  PyObject *__pyx_r;
1741
 
  static char *__pyx_argnames[] = {0};
1742
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1743
 
  Py_INCREF(__pyx_v_self);
1744
 
 
1745
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":442 */
1746
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1747
 
 
1748
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":443 */
1749
 
  sn_launcher_context_setup_child_process(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1750
 
 
1751
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":444 */
1752
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1753
 
 
1754
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1755
 
  Py_DECREF(__pyx_v_self);
1756
 
  return __pyx_r;
1757
 
}
1758
 
 
1759
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1760
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1761
 
  char *__pyx_v_name;
1762
 
  PyObject *__pyx_r;
1763
 
  static char *__pyx_argnames[] = {"name",0};
1764
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_name)) return 0;
1765
 
  Py_INCREF(__pyx_v_self);
1766
 
 
1767
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":447 */
1768
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1769
 
 
1770
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":448 */
1771
 
  sn_launcher_context_set_name(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_name);
1772
 
 
1773
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":449 */
1774
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1775
 
 
1776
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1777
 
  Py_DECREF(__pyx_v_self);
1778
 
  return __pyx_r;
1779
 
}
1780
 
 
1781
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_description(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1782
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_description(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1783
 
  char *__pyx_v_descr;
1784
 
  PyObject *__pyx_r;
1785
 
  static char *__pyx_argnames[] = {"descr",0};
1786
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_descr)) return 0;
1787
 
  Py_INCREF(__pyx_v_self);
1788
 
 
1789
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":452 */
1790
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1791
 
 
1792
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":453 */
1793
 
  sn_launcher_context_set_description(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_descr);
1794
 
 
1795
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":454 */
1796
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1797
 
 
1798
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1799
 
  Py_DECREF(__pyx_v_self);
1800
 
  return __pyx_r;
1801
 
}
1802
 
 
1803
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_workspace(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1804
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_workspace(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1805
 
  int __pyx_v_workspace;
1806
 
  PyObject *__pyx_r;
1807
 
  static char *__pyx_argnames[] = {"workspace",0};
1808
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "i", __pyx_argnames, &__pyx_v_workspace)) return 0;
1809
 
  Py_INCREF(__pyx_v_self);
1810
 
 
1811
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":457 */
1812
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1813
 
 
1814
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":458 */
1815
 
  sn_launcher_context_set_workspace(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_workspace);
1816
 
 
1817
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":459 */
1818
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1819
 
 
1820
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1821
 
  Py_DECREF(__pyx_v_self);
1822
 
  return __pyx_r;
1823
 
}
1824
 
 
1825
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_wmclass(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1826
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_wmclass(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1827
 
  char *__pyx_v_klass;
1828
 
  PyObject *__pyx_r;
1829
 
  static char *__pyx_argnames[] = {"klass",0};
1830
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_klass)) return 0;
1831
 
  Py_INCREF(__pyx_v_self);
1832
 
 
1833
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":462 */
1834
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1835
 
 
1836
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":463 */
1837
 
  sn_launcher_context_set_wmclass(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_klass);
1838
 
 
1839
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":464 */
1840
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1841
 
 
1842
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1843
 
  Py_DECREF(__pyx_v_self);
1844
 
  return __pyx_r;
1845
 
}
1846
 
 
1847
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_binary_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1848
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_binary_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1849
 
  char *__pyx_v_name;
1850
 
  PyObject *__pyx_r;
1851
 
  static char *__pyx_argnames[] = {"name",0};
1852
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_name)) return 0;
1853
 
  Py_INCREF(__pyx_v_self);
1854
 
 
1855
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":467 */
1856
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1857
 
 
1858
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":469 */
1859
 
  sn_launcher_context_set_binary_name(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_name);
1860
 
 
1861
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":470 */
1862
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1863
 
 
1864
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1865
 
  Py_DECREF(__pyx_v_self);
1866
 
  return __pyx_r;
1867
 
}
1868
 
 
1869
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_icon_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1870
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_icon_name(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1871
 
  char *__pyx_v_name;
1872
 
  PyObject *__pyx_r;
1873
 
  static char *__pyx_argnames[] = {"name",0};
1874
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_name)) return 0;
1875
 
  Py_INCREF(__pyx_v_self);
1876
 
 
1877
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":473 */
1878
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1879
 
 
1880
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":474 */
1881
 
  sn_launcher_context_set_icon_name(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_name);
1882
 
 
1883
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":475 */
1884
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1885
 
 
1886
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1887
 
  Py_DECREF(__pyx_v_self);
1888
 
  return __pyx_r;
1889
 
}
1890
 
 
1891
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_extra_property(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1892
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_set_extra_property(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1893
 
  char *__pyx_v_key;
1894
 
  char *__pyx_v_value;
1895
 
  PyObject *__pyx_r;
1896
 
  static char *__pyx_argnames[] = {"key","value",0};
1897
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ss", __pyx_argnames, &__pyx_v_key, &__pyx_v_value)) return 0;
1898
 
  Py_INCREF(__pyx_v_self);
1899
 
 
1900
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":478 */
1901
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1902
 
 
1903
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":479 */
1904
 
  sn_launcher_context_set_extra_property(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,__pyx_v_key,__pyx_v_value);
1905
 
 
1906
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":480 */
1907
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1908
 
 
1909
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1910
 
  Py_DECREF(__pyx_v_self);
1911
 
  return __pyx_r;
1912
 
}
1913
 
 
1914
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_initiated_time(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1915
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_initiated_time(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1916
 
  long __pyx_v_tv_sec;
1917
 
  long __pyx_v_tv_usec;
1918
 
  PyObject *__pyx_r;
1919
 
  PyObject *__pyx_1 = 0;
1920
 
  PyObject *__pyx_2 = 0;
1921
 
  PyObject *__pyx_3 = 0;
1922
 
  static char *__pyx_argnames[] = {0};
1923
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1924
 
  Py_INCREF(__pyx_v_self);
1925
 
 
1926
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":483 */
1927
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1928
 
 
1929
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":486 */
1930
 
  sn_launcher_context_get_initiated_time(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,(&__pyx_v_tv_sec),(&__pyx_v_tv_usec));
1931
 
 
1932
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":487 */
1933
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1934
 
 
1935
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":488 */
1936
 
  __pyx_1 = PyInt_FromLong(__pyx_v_tv_sec); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
1937
 
  __pyx_2 = PyInt_FromLong(__pyx_v_tv_usec); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
1938
 
  __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
1939
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
1940
 
  PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2);
1941
 
  __pyx_1 = 0;
1942
 
  __pyx_2 = 0;
1943
 
  __pyx_r = __pyx_3;
1944
 
  __pyx_3 = 0;
1945
 
  goto __pyx_L0;
1946
 
 
1947
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1948
 
  goto __pyx_L0;
1949
 
  __pyx_L1:;
1950
 
  Py_XDECREF(__pyx_1);
1951
 
  Py_XDECREF(__pyx_2);
1952
 
  Py_XDECREF(__pyx_3);
1953
 
  __Pyx_AddTraceback("_blueman.sn_launcher.get_initiated_time");
1954
 
  __pyx_r = 0;
1955
 
  __pyx_L0:;
1956
 
  Py_DECREF(__pyx_v_self);
1957
 
  return __pyx_r;
1958
 
}
1959
 
 
1960
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_last_active_time(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1961
 
static PyObject *__pyx_f_8_blueman_11sn_launcher_get_last_active_time(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1962
 
  long __pyx_v_tv_sec;
1963
 
  long __pyx_v_tv_usec;
1964
 
  PyObject *__pyx_r;
1965
 
  PyObject *__pyx_1 = 0;
1966
 
  PyObject *__pyx_2 = 0;
1967
 
  PyObject *__pyx_3 = 0;
1968
 
  static char *__pyx_argnames[] = {0};
1969
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1970
 
  Py_INCREF(__pyx_v_self);
1971
 
 
1972
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":491 */
1973
 
  sn_launcher_context_ref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1974
 
 
1975
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":494 */
1976
 
  sn_launcher_context_get_last_active_time(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx,(&__pyx_v_tv_sec),(&__pyx_v_tv_usec));
1977
 
 
1978
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":495 */
1979
 
  sn_launcher_context_unref(((struct __pyx_obj_8_blueman_sn_launcher *)__pyx_v_self)->ctx);
1980
 
 
1981
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":496 */
1982
 
  __pyx_1 = PyInt_FromLong(__pyx_v_tv_sec); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1983
 
  __pyx_2 = PyInt_FromLong(__pyx_v_tv_usec); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1984
 
  __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1985
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
1986
 
  PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2);
1987
 
  __pyx_1 = 0;
1988
 
  __pyx_2 = 0;
1989
 
  __pyx_r = __pyx_3;
1990
 
  __pyx_3 = 0;
1991
 
  goto __pyx_L0;
1992
 
 
1993
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1994
 
  goto __pyx_L0;
1995
 
  __pyx_L1:;
1996
 
  Py_XDECREF(__pyx_1);
1997
 
  Py_XDECREF(__pyx_2);
1998
 
  Py_XDECREF(__pyx_3);
1999
 
  __Pyx_AddTraceback("_blueman.sn_launcher.get_last_active_time");
2000
 
  __pyx_r = 0;
2001
 
  __pyx_L0:;
2002
 
  Py_DECREF(__pyx_v_self);
2003
 
  return __pyx_r;
2004
 
}
2005
 
 
2006
 
static PyObject *__pyx_f_8_blueman_probe_modem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2007
 
static PyObject *__pyx_f_8_blueman_probe_modem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2008
 
  PyObject *__pyx_v_node = 0;
2009
 
  PyObject *__pyx_v_callback = 0;
2010
 
  PyObject *__pyx_r;
2011
 
  PyObject *__pyx_1 = 0;
2012
 
  PyObject *__pyx_2 = 0;
2013
 
  PyObject *__pyx_3 = 0;
2014
 
  int __pyx_4;
2015
 
  int __pyx_5;
2016
 
  char *__pyx_6;
2017
 
  static char *__pyx_argnames[] = {"node","callback",0};
2018
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_node, &__pyx_v_callback)) return 0;
2019
 
  Py_INCREF(__pyx_v_node);
2020
 
  Py_INCREF(__pyx_v_callback);
2021
 
 
2022
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":505 */
2023
 
  __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_callable); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
2024
 
  __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
2025
 
  Py_INCREF(__pyx_v_callback);
2026
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_callback);
2027
 
  __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
2028
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2029
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2030
 
  __pyx_4 = PyObject_IsTrue(__pyx_3); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
2031
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2032
 
  __pyx_5 = (!__pyx_4);
2033
 
  if (__pyx_5) {
2034
 
    __Pyx_Raise(PyExc_TypeError, __pyx_k41p, 0);
2035
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; goto __pyx_L1;}
2036
 
    goto __pyx_L2;
2037
 
  }
2038
 
  __pyx_L2:;
2039
 
 
2040
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":508 */
2041
 
  if (PyObject_Cmp(__pyx_v_node, Py_None, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;}
2042
 
  __pyx_4 = __pyx_4 != 0;
2043
 
  if (__pyx_4) {
2044
 
    __pyx_6 = PyString_AsString(__pyx_v_node); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; goto __pyx_L1;}
2045
 
    probe_modem(__pyx_6,__pyx_v_callback);
2046
 
    goto __pyx_L3;
2047
 
  }
2048
 
  /*else*/ {
2049
 
    __Pyx_Raise(PyExc_TypeError, __pyx_k42p, 0);
2050
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; goto __pyx_L1;}
2051
 
  }
2052
 
  __pyx_L3:;
2053
 
 
2054
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2055
 
  goto __pyx_L0;
2056
 
  __pyx_L1:;
2057
 
  Py_XDECREF(__pyx_1);
2058
 
  Py_XDECREF(__pyx_2);
2059
 
  Py_XDECREF(__pyx_3);
2060
 
  __Pyx_AddTraceback("_blueman.probe_modem");
2061
 
  __pyx_r = 0;
2062
 
  __pyx_L0:;
2063
 
  Py_DECREF(__pyx_v_node);
2064
 
  Py_DECREF(__pyx_v_callback);
2065
 
  return __pyx_r;
2066
 
}
2067
 
 
2068
 
static PyObject *__pyx_f_8_blueman_set_probe_debug(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2069
 
static PyObject *__pyx_f_8_blueman_set_probe_debug(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2070
 
  PyObject *__pyx_v_enable = 0;
2071
 
  PyObject *__pyx_r;
2072
 
  PyObject *__pyx_1 = 0;
2073
 
  PyObject *__pyx_2 = 0;
2074
 
  int __pyx_3;
2075
 
  static char *__pyx_argnames[] = {"enable",0};
2076
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_enable)) return 0;
2077
 
  Py_INCREF(__pyx_v_enable);
2078
 
  __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L1;}
2079
 
  Py_INCREF(__pyx_v_enable);
2080
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_enable);
2081
 
  __pyx_2 = PyObject_CallObject(((PyObject *)(&PyInt_Type)), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L1;}
2082
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2083
 
  __pyx_3 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L1;}
2084
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2085
 
  set_probe_debug(__pyx_3);
2086
 
 
2087
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2088
 
  goto __pyx_L0;
2089
 
  __pyx_L1:;
2090
 
  Py_XDECREF(__pyx_1);
2091
 
  Py_XDECREF(__pyx_2);
2092
 
  __Pyx_AddTraceback("_blueman.set_probe_debug");
2093
 
  __pyx_r = 0;
2094
 
  __pyx_L0:;
2095
 
  Py_DECREF(__pyx_v_enable);
2096
 
  return __pyx_r;
2097
 
}
2098
 
 
2099
 
static PyObject *__pyx_f_8_blueman_get_special_dir(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2100
 
static PyObject *__pyx_f_8_blueman_get_special_dir(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2101
 
  PyObject *__pyx_v_t = 0;
2102
 
  char *__pyx_v_d;
2103
 
  PyObject *__pyx_r;
2104
 
  int __pyx_1;
2105
 
  PyObject *__pyx_2 = 0;
2106
 
  static char *__pyx_argnames[] = {"t",0};
2107
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_t)) return 0;
2108
 
  Py_INCREF(__pyx_v_t);
2109
 
 
2110
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":532 */
2111
 
  __pyx_1 = PyInt_AsLong(__pyx_v_t); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
2112
 
  __pyx_v_d = g_get_user_special_dir(__pyx_1);
2113
 
 
2114
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":533 */
2115
 
  __pyx_1 = (__pyx_v_d == NULL);
2116
 
  if (__pyx_1) {
2117
 
    Py_INCREF(Py_None);
2118
 
    __pyx_r = Py_None;
2119
 
    goto __pyx_L0;
2120
 
    goto __pyx_L2;
2121
 
  }
2122
 
  /*else*/ {
2123
 
    __pyx_2 = PyString_FromString(__pyx_v_d); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; goto __pyx_L1;}
2124
 
    __pyx_r = __pyx_2;
2125
 
    __pyx_2 = 0;
2126
 
    goto __pyx_L0;
2127
 
  }
2128
 
  __pyx_L2:;
2129
 
 
2130
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2131
 
  goto __pyx_L0;
2132
 
  __pyx_L1:;
2133
 
  Py_XDECREF(__pyx_2);
2134
 
  __Pyx_AddTraceback("_blueman.get_special_dir");
2135
 
  __pyx_r = 0;
2136
 
  __pyx_L0:;
2137
 
  Py_DECREF(__pyx_v_t);
2138
 
  return __pyx_r;
2139
 
}
2140
 
 
2141
 
static PyObject *__pyx_tp_new_8_blueman_conn_info(PyTypeObject *t, PyObject *a, PyObject *k) {
2142
 
  PyObject *o = (*t->tp_alloc)(t, 0);
2143
 
  if (!o) return 0;
2144
 
  return o;
2145
 
}
2146
 
 
2147
 
static void __pyx_tp_dealloc_8_blueman_conn_info(PyObject *o) {
2148
 
  (*o->ob_type->tp_free)(o);
2149
 
}
2150
 
 
2151
 
static struct PyMethodDef __pyx_methods_8_blueman_conn_info[] = {
2152
 
  {"deinit", (PyCFunction)__pyx_f_8_blueman_9conn_info_deinit, METH_VARARGS|METH_KEYWORDS, 0},
2153
 
  {"get_rssi", (PyCFunction)__pyx_f_8_blueman_9conn_info_get_rssi, METH_VARARGS|METH_KEYWORDS, 0},
2154
 
  {"get_lq", (PyCFunction)__pyx_f_8_blueman_9conn_info_get_lq, METH_VARARGS|METH_KEYWORDS, 0},
2155
 
  {"get_tpl", (PyCFunction)__pyx_f_8_blueman_9conn_info_get_tpl, METH_VARARGS|METH_KEYWORDS, 0},
2156
 
  {0, 0, 0, 0}
2157
 
};
2158
 
 
2159
 
static PyNumberMethods __pyx_tp_as_number_conn_info = {
2160
 
  0, /*nb_add*/
2161
 
  0, /*nb_subtract*/
2162
 
  0, /*nb_multiply*/
2163
 
  0, /*nb_divide*/
2164
 
  0, /*nb_remainder*/
2165
 
  0, /*nb_divmod*/
2166
 
  0, /*nb_power*/
2167
 
  0, /*nb_negative*/
2168
 
  0, /*nb_positive*/
2169
 
  0, /*nb_absolute*/
2170
 
  0, /*nb_nonzero*/
2171
 
  0, /*nb_invert*/
2172
 
  0, /*nb_lshift*/
2173
 
  0, /*nb_rshift*/
2174
 
  0, /*nb_and*/
2175
 
  0, /*nb_xor*/
2176
 
  0, /*nb_or*/
2177
 
  0, /*nb_coerce*/
2178
 
  0, /*nb_int*/
2179
 
  0, /*nb_long*/
2180
 
  0, /*nb_float*/
2181
 
  0, /*nb_oct*/
2182
 
  0, /*nb_hex*/
2183
 
  0, /*nb_inplace_add*/
2184
 
  0, /*nb_inplace_subtract*/
2185
 
  0, /*nb_inplace_multiply*/
2186
 
  0, /*nb_inplace_divide*/
2187
 
  0, /*nb_inplace_remainder*/
2188
 
  0, /*nb_inplace_power*/
2189
 
  0, /*nb_inplace_lshift*/
2190
 
  0, /*nb_inplace_rshift*/
2191
 
  0, /*nb_inplace_and*/
2192
 
  0, /*nb_inplace_xor*/
2193
 
  0, /*nb_inplace_or*/
2194
 
  0, /*nb_floor_divide*/
2195
 
  0, /*nb_true_divide*/
2196
 
  0, /*nb_inplace_floor_divide*/
2197
 
  0, /*nb_inplace_true_divide*/
2198
 
  #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
2199
 
  0, /*nb_index*/
2200
 
  #endif
2201
 
};
2202
 
 
2203
 
static PySequenceMethods __pyx_tp_as_sequence_conn_info = {
2204
 
  0, /*sq_length*/
2205
 
  0, /*sq_concat*/
2206
 
  0, /*sq_repeat*/
2207
 
  0, /*sq_item*/
2208
 
  0, /*sq_slice*/
2209
 
  0, /*sq_ass_item*/
2210
 
  0, /*sq_ass_slice*/
2211
 
  0, /*sq_contains*/
2212
 
  0, /*sq_inplace_concat*/
2213
 
  0, /*sq_inplace_repeat*/
2214
 
};
2215
 
 
2216
 
static PyMappingMethods __pyx_tp_as_mapping_conn_info = {
2217
 
  0, /*mp_length*/
2218
 
  0, /*mp_subscript*/
2219
 
  0, /*mp_ass_subscript*/
2220
 
};
2221
 
 
2222
 
static PyBufferProcs __pyx_tp_as_buffer_conn_info = {
2223
 
  0, /*bf_getreadbuffer*/
2224
 
  0, /*bf_getwritebuffer*/
2225
 
  0, /*bf_getsegcount*/
2226
 
  0, /*bf_getcharbuffer*/
2227
 
};
2228
 
 
2229
 
PyTypeObject __pyx_type_8_blueman_conn_info = {
2230
 
  PyObject_HEAD_INIT(0)
2231
 
  0, /*ob_size*/
2232
 
  "_blueman.conn_info", /*tp_name*/
2233
 
  sizeof(struct __pyx_obj_8_blueman_conn_info), /*tp_basicsize*/
2234
 
  0, /*tp_itemsize*/
2235
 
  __pyx_tp_dealloc_8_blueman_conn_info, /*tp_dealloc*/
2236
 
  0, /*tp_print*/
2237
 
  0, /*tp_getattr*/
2238
 
  0, /*tp_setattr*/
2239
 
  0, /*tp_compare*/
2240
 
  0, /*tp_repr*/
2241
 
  &__pyx_tp_as_number_conn_info, /*tp_as_number*/
2242
 
  &__pyx_tp_as_sequence_conn_info, /*tp_as_sequence*/
2243
 
  &__pyx_tp_as_mapping_conn_info, /*tp_as_mapping*/
2244
 
  0, /*tp_hash*/
2245
 
  0, /*tp_call*/
2246
 
  0, /*tp_str*/
2247
 
  0, /*tp_getattro*/
2248
 
  0, /*tp_setattro*/
2249
 
  &__pyx_tp_as_buffer_conn_info, /*tp_as_buffer*/
2250
 
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/
2251
 
  0, /*tp_doc*/
2252
 
  0, /*tp_traverse*/
2253
 
  0, /*tp_clear*/
2254
 
  0, /*tp_richcompare*/
2255
 
  0, /*tp_weaklistoffset*/
2256
 
  0, /*tp_iter*/
2257
 
  0, /*tp_iternext*/
2258
 
  __pyx_methods_8_blueman_conn_info, /*tp_methods*/
2259
 
  0, /*tp_members*/
2260
 
  0, /*tp_getset*/
2261
 
  0, /*tp_base*/
2262
 
  0, /*tp_dict*/
2263
 
  0, /*tp_descr_get*/
2264
 
  0, /*tp_descr_set*/
2265
 
  0, /*tp_dictoffset*/
2266
 
  __pyx_f_8_blueman_9conn_info___init__, /*tp_init*/
2267
 
  0, /*tp_alloc*/
2268
 
  __pyx_tp_new_8_blueman_conn_info, /*tp_new*/
2269
 
  0, /*tp_free*/
2270
 
  0, /*tp_is_gc*/
2271
 
  0, /*tp_bases*/
2272
 
  0, /*tp_mro*/
2273
 
  0, /*tp_cache*/
2274
 
  0, /*tp_subclasses*/
2275
 
  0, /*tp_weaklist*/
2276
 
};
2277
 
 
2278
 
static PyObject *__pyx_tp_new_8_blueman_sn_launcher(PyTypeObject *t, PyObject *a, PyObject *k) {
2279
 
  PyObject *o = (*t->tp_alloc)(t, 0);
2280
 
  if (!o) return 0;
2281
 
  if (__pyx_f_8_blueman_11sn_launcher___cinit__(o, a, k) < 0) {
2282
 
    Py_DECREF(o); o = 0;
2283
 
  }
2284
 
  return o;
2285
 
}
2286
 
 
2287
 
static void __pyx_tp_dealloc_8_blueman_sn_launcher(PyObject *o) {
2288
 
  {
2289
 
    PyObject *etype, *eval, *etb;
2290
 
    PyErr_Fetch(&etype, &eval, &etb);
2291
 
    ++o->ob_refcnt;
2292
 
    __pyx_f_8_blueman_11sn_launcher___dealloc__(o);
2293
 
    if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
2294
 
    --o->ob_refcnt;
2295
 
    PyErr_Restore(etype, eval, etb);
2296
 
  }
2297
 
  (*o->ob_type->tp_free)(o);
2298
 
}
2299
 
 
2300
 
static struct PyMethodDef __pyx_methods_8_blueman_sn_launcher[] = {
2301
 
  {"initiate", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_initiate, METH_VARARGS|METH_KEYWORDS, 0},
2302
 
  {"complete", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_complete, METH_VARARGS|METH_KEYWORDS, 0},
2303
 
  {"get_startup_id", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_get_startup_id, METH_VARARGS|METH_KEYWORDS, 0},
2304
 
  {"get_initiated", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_get_initiated, METH_VARARGS|METH_KEYWORDS, 0},
2305
 
  {"setup_child_process", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_setup_child_process, METH_VARARGS|METH_KEYWORDS, 0},
2306
 
  {"set_name", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_name, METH_VARARGS|METH_KEYWORDS, 0},
2307
 
  {"set_description", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_description, METH_VARARGS|METH_KEYWORDS, 0},
2308
 
  {"set_workspace", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_workspace, METH_VARARGS|METH_KEYWORDS, 0},
2309
 
  {"set_wmclass", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_wmclass, METH_VARARGS|METH_KEYWORDS, 0},
2310
 
  {"set_binary_name", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_binary_name, METH_VARARGS|METH_KEYWORDS, 0},
2311
 
  {"set_icon_name", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_icon_name, METH_VARARGS|METH_KEYWORDS, 0},
2312
 
  {"set_extra_property", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_set_extra_property, METH_VARARGS|METH_KEYWORDS, 0},
2313
 
  {"get_initiated_time", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_get_initiated_time, METH_VARARGS|METH_KEYWORDS, 0},
2314
 
  {"get_last_active_time", (PyCFunction)__pyx_f_8_blueman_11sn_launcher_get_last_active_time, METH_VARARGS|METH_KEYWORDS, 0},
2315
 
  {0, 0, 0, 0}
2316
 
};
2317
 
 
2318
 
static PyNumberMethods __pyx_tp_as_number_sn_launcher = {
2319
 
  0, /*nb_add*/
2320
 
  0, /*nb_subtract*/
2321
 
  0, /*nb_multiply*/
2322
 
  0, /*nb_divide*/
2323
 
  0, /*nb_remainder*/
2324
 
  0, /*nb_divmod*/
2325
 
  0, /*nb_power*/
2326
 
  0, /*nb_negative*/
2327
 
  0, /*nb_positive*/
2328
 
  0, /*nb_absolute*/
2329
 
  0, /*nb_nonzero*/
2330
 
  0, /*nb_invert*/
2331
 
  0, /*nb_lshift*/
2332
 
  0, /*nb_rshift*/
2333
 
  0, /*nb_and*/
2334
 
  0, /*nb_xor*/
2335
 
  0, /*nb_or*/
2336
 
  0, /*nb_coerce*/
2337
 
  0, /*nb_int*/
2338
 
  0, /*nb_long*/
2339
 
  0, /*nb_float*/
2340
 
  0, /*nb_oct*/
2341
 
  0, /*nb_hex*/
2342
 
  0, /*nb_inplace_add*/
2343
 
  0, /*nb_inplace_subtract*/
2344
 
  0, /*nb_inplace_multiply*/
2345
 
  0, /*nb_inplace_divide*/
2346
 
  0, /*nb_inplace_remainder*/
2347
 
  0, /*nb_inplace_power*/
2348
 
  0, /*nb_inplace_lshift*/
2349
 
  0, /*nb_inplace_rshift*/
2350
 
  0, /*nb_inplace_and*/
2351
 
  0, /*nb_inplace_xor*/
2352
 
  0, /*nb_inplace_or*/
2353
 
  0, /*nb_floor_divide*/
2354
 
  0, /*nb_true_divide*/
2355
 
  0, /*nb_inplace_floor_divide*/
2356
 
  0, /*nb_inplace_true_divide*/
2357
 
  #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
2358
 
  0, /*nb_index*/
2359
 
  #endif
2360
 
};
2361
 
 
2362
 
static PySequenceMethods __pyx_tp_as_sequence_sn_launcher = {
2363
 
  0, /*sq_length*/
2364
 
  0, /*sq_concat*/
2365
 
  0, /*sq_repeat*/
2366
 
  0, /*sq_item*/
2367
 
  0, /*sq_slice*/
2368
 
  0, /*sq_ass_item*/
2369
 
  0, /*sq_ass_slice*/
2370
 
  0, /*sq_contains*/
2371
 
  0, /*sq_inplace_concat*/
2372
 
  0, /*sq_inplace_repeat*/
2373
 
};
2374
 
 
2375
 
static PyMappingMethods __pyx_tp_as_mapping_sn_launcher = {
2376
 
  0, /*mp_length*/
2377
 
  0, /*mp_subscript*/
2378
 
  0, /*mp_ass_subscript*/
2379
 
};
2380
 
 
2381
 
static PyBufferProcs __pyx_tp_as_buffer_sn_launcher = {
2382
 
  0, /*bf_getreadbuffer*/
2383
 
  0, /*bf_getwritebuffer*/
2384
 
  0, /*bf_getsegcount*/
2385
 
  0, /*bf_getcharbuffer*/
2386
 
};
2387
 
 
2388
 
PyTypeObject __pyx_type_8_blueman_sn_launcher = {
2389
 
  PyObject_HEAD_INIT(0)
2390
 
  0, /*ob_size*/
2391
 
  "_blueman.sn_launcher", /*tp_name*/
2392
 
  sizeof(struct __pyx_obj_8_blueman_sn_launcher), /*tp_basicsize*/
2393
 
  0, /*tp_itemsize*/
2394
 
  __pyx_tp_dealloc_8_blueman_sn_launcher, /*tp_dealloc*/
2395
 
  0, /*tp_print*/
2396
 
  0, /*tp_getattr*/
2397
 
  0, /*tp_setattr*/
2398
 
  0, /*tp_compare*/
2399
 
  0, /*tp_repr*/
2400
 
  &__pyx_tp_as_number_sn_launcher, /*tp_as_number*/
2401
 
  &__pyx_tp_as_sequence_sn_launcher, /*tp_as_sequence*/
2402
 
  &__pyx_tp_as_mapping_sn_launcher, /*tp_as_mapping*/
2403
 
  0, /*tp_hash*/
2404
 
  0, /*tp_call*/
2405
 
  0, /*tp_str*/
2406
 
  0, /*tp_getattro*/
2407
 
  0, /*tp_setattro*/
2408
 
  &__pyx_tp_as_buffer_sn_launcher, /*tp_as_buffer*/
2409
 
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/
2410
 
  0, /*tp_doc*/
2411
 
  0, /*tp_traverse*/
2412
 
  0, /*tp_clear*/
2413
 
  0, /*tp_richcompare*/
2414
 
  0, /*tp_weaklistoffset*/
2415
 
  0, /*tp_iter*/
2416
 
  0, /*tp_iternext*/
2417
 
  __pyx_methods_8_blueman_sn_launcher, /*tp_methods*/
2418
 
  0, /*tp_members*/
2419
 
  0, /*tp_getset*/
2420
 
  0, /*tp_base*/
2421
 
  0, /*tp_dict*/
2422
 
  0, /*tp_descr_get*/
2423
 
  0, /*tp_descr_set*/
2424
 
  0, /*tp_dictoffset*/
2425
 
  0, /*tp_init*/
2426
 
  0, /*tp_alloc*/
2427
 
  __pyx_tp_new_8_blueman_sn_launcher, /*tp_new*/
2428
 
  0, /*tp_free*/
2429
 
  0, /*tp_is_gc*/
2430
 
  0, /*tp_bases*/
2431
 
  0, /*tp_mro*/
2432
 
  0, /*tp_cache*/
2433
 
  0, /*tp_subclasses*/
2434
 
  0, /*tp_weaklist*/
2435
 
};
2436
 
 
2437
 
static struct PyMethodDef __pyx_methods[] = {
2438
 
  {"get_net_address", (PyCFunction)__pyx_f_8_blueman_get_net_address, METH_VARARGS|METH_KEYWORDS, 0},
2439
 
  {"get_net_netmask", (PyCFunction)__pyx_f_8_blueman_get_net_netmask, METH_VARARGS|METH_KEYWORDS, 0},
2440
 
  {"get_net_interfaces", (PyCFunction)__pyx_f_8_blueman_get_net_interfaces, METH_VARARGS|METH_KEYWORDS, 0},
2441
 
  {"rfcomm_list", (PyCFunction)__pyx_f_8_blueman_rfcomm_list, METH_VARARGS|METH_KEYWORDS, 0},
2442
 
  {"create_bridge", (PyCFunction)__pyx_f_8_blueman_create_bridge, METH_VARARGS|METH_KEYWORDS, 0},
2443
 
  {"destroy_bridge", (PyCFunction)__pyx_f_8_blueman_destroy_bridge, METH_VARARGS|METH_KEYWORDS, 0},
2444
 
  {"page_timeout", (PyCFunction)__pyx_f_8_blueman_page_timeout, METH_VARARGS|METH_KEYWORDS, 0},
2445
 
  {"device_info", (PyCFunction)__pyx_f_8_blueman_device_info, METH_VARARGS|METH_KEYWORDS, 0},
2446
 
  {"probe_modem", (PyCFunction)__pyx_f_8_blueman_probe_modem, METH_VARARGS|METH_KEYWORDS, 0},
2447
 
  {"set_probe_debug", (PyCFunction)__pyx_f_8_blueman_set_probe_debug, METH_VARARGS|METH_KEYWORDS, 0},
2448
 
  {"get_special_dir", (PyCFunction)__pyx_f_8_blueman_get_special_dir, METH_VARARGS|METH_KEYWORDS, 0},
2449
 
  {0, 0, 0, 0}
2450
 
};
2451
 
 
2452
 
static void __pyx_init_filenames(void); /*proto*/
2453
 
 
2454
 
PyMODINIT_FUNC init_blueman(void); /*proto*/
2455
 
PyMODINIT_FUNC init_blueman(void) {
2456
 
  PyObject *__pyx_1 = 0;
2457
 
  PyObject *__pyx_2 = 0;
2458
 
  PyObject *__pyx_3 = 0;
2459
 
  PyObject *__pyx_4 = 0;
2460
 
  __pyx_init_filenames();
2461
 
  __pyx_m = Py_InitModule4("_blueman", __pyx_methods, 0, 0, PYTHON_API_VERSION);
2462
 
  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
2463
 
  Py_INCREF(__pyx_m);
2464
 
  __pyx_b = PyImport_AddModule("__builtin__");
2465
 
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
2466
 
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
2467
 
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
2468
 
  if (PyType_Ready(&__pyx_type_8_blueman_conn_info) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; goto __pyx_L1;}
2469
 
  if (PyObject_SetAttrString(__pyx_m, "conn_info", (PyObject *)&__pyx_type_8_blueman_conn_info) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; goto __pyx_L1;}
2470
 
  __pyx_ptype_8_blueman_conn_info = &__pyx_type_8_blueman_conn_info;
2471
 
  if (PyType_Ready(&__pyx_type_8_blueman_sn_launcher) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;}
2472
 
  if (PyObject_SetAttrString(__pyx_m, "sn_launcher", (PyObject *)&__pyx_type_8_blueman_sn_launcher) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;}
2473
 
  __pyx_ptype_8_blueman_sn_launcher = &__pyx_type_8_blueman_sn_launcher;
2474
 
 
2475
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":134 */
2476
 
  __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2477
 
  __pyx_2 = PyInt_FromLong((-1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; goto __pyx_L1;}
2478
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k43p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2479
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2480
 
  __pyx_2 = PyInt_FromLong((-2)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; goto __pyx_L1;}
2481
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k44p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2482
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2483
 
  __pyx_2 = PyInt_FromLong((-3)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; goto __pyx_L1;}
2484
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k45p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2485
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2486
 
  __pyx_2 = PyInt_FromLong((-4)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; goto __pyx_L1;}
2487
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k46p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2488
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2489
 
  __pyx_2 = PyInt_FromLong((-5)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; goto __pyx_L1;}
2490
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k47p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2491
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2492
 
  __pyx_2 = PyInt_FromLong((-6)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; goto __pyx_L1;}
2493
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k48p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2494
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2495
 
  __pyx_2 = PyInt_FromLong((-7)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; goto __pyx_L1;}
2496
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k49p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2497
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2498
 
  __pyx_2 = PyInt_FromLong((-8)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; goto __pyx_L1;}
2499
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_k50p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2500
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2501
 
  __pyx_2 = PyInt_FromLong((-9)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; goto __pyx_L1;}
2502
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_n_ERR_SOCKET_FAILED) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2503
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2504
 
  __pyx_2 = PyInt_FromLong((-10)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; goto __pyx_L1;}
2505
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_n_ERR_CANT_READ_PAGE_TIMEOUT) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2506
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2507
 
  __pyx_2 = PyInt_FromLong((-11)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; goto __pyx_L1;}
2508
 
  if (PyDict_SetItem(__pyx_1, __pyx_2, __pyx_n_ERR_READ_PAGE_TIMEOUT) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2509
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2510
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_ERR, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; goto __pyx_L1;}
2511
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2512
 
 
2513
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":148 */
2514
 
  __pyx_2 = PyList_New(10); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; goto __pyx_L1;}
2515
 
  Py_INCREF(__pyx_n_unknown);
2516
 
  PyList_SET_ITEM(__pyx_2, 0, __pyx_n_unknown);
2517
 
  Py_INCREF(__pyx_n_connected);
2518
 
  PyList_SET_ITEM(__pyx_2, 1, __pyx_n_connected);
2519
 
  Py_INCREF(__pyx_n_clean);
2520
 
  PyList_SET_ITEM(__pyx_2, 2, __pyx_n_clean);
2521
 
  Py_INCREF(__pyx_n_bound);
2522
 
  PyList_SET_ITEM(__pyx_2, 3, __pyx_n_bound);
2523
 
  Py_INCREF(__pyx_n_listening);
2524
 
  PyList_SET_ITEM(__pyx_2, 4, __pyx_n_listening);
2525
 
  Py_INCREF(__pyx_n_connecting);
2526
 
  PyList_SET_ITEM(__pyx_2, 5, __pyx_n_connecting);
2527
 
  Py_INCREF(__pyx_n_connecting);
2528
 
  PyList_SET_ITEM(__pyx_2, 6, __pyx_n_connecting);
2529
 
  Py_INCREF(__pyx_n_config);
2530
 
  PyList_SET_ITEM(__pyx_2, 7, __pyx_n_config);
2531
 
  Py_INCREF(__pyx_n_disconnecting);
2532
 
  PyList_SET_ITEM(__pyx_2, 8, __pyx_n_disconnecting);
2533
 
  Py_INCREF(__pyx_n_closed);
2534
 
  PyList_SET_ITEM(__pyx_2, 9, __pyx_n_closed);
2535
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_RFCOMM_STATES, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; goto __pyx_L1;}
2536
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2537
 
 
2538
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":160 */
2539
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; goto __pyx_L1;}
2540
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_RFCOMM_REUSE_DLC, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; goto __pyx_L1;}
2541
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2542
 
 
2543
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":161 */
2544
 
  __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; goto __pyx_L1;}
2545
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_RFCOMM_RELEASE_ONHUP, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; goto __pyx_L1;}
2546
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2547
 
 
2548
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":162 */
2549
 
  __pyx_1 = PyInt_FromLong(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
2550
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_RFCOMM_HANGUP_NOW, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
2551
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2552
 
 
2553
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":163 */
2554
 
  __pyx_2 = PyInt_FromLong(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; goto __pyx_L1;}
2555
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_RFCOMM_TTY_ATTACHED, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; goto __pyx_L1;}
2556
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2557
 
 
2558
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":194 */
2559
 
  __pyx_1 = __Pyx_Import(__pyx_n_exceptions, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; goto __pyx_L1;}
2560
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_exceptions, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; goto __pyx_L1;}
2561
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2562
 
 
2563
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":195 */
2564
 
  __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2565
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_exceptions); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2566
 
  __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_Exception); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2567
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2568
 
  __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2569
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
2570
 
  __pyx_3 = 0;
2571
 
  __pyx_3 = __Pyx_CreateClass(__pyx_1, __pyx_2, __pyx_n_BridgeException, "_blueman"); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2572
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2573
 
 
2574
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":196 */
2575
 
  __pyx_1 = PyCFunction_New(&__pyx_mdef_8_blueman_15BridgeException___init__, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; goto __pyx_L1;}
2576
 
  __pyx_4 = PyMethod_New(__pyx_1, 0, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; goto __pyx_L1;}
2577
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2578
 
  if (PyObject_SetAttr(__pyx_3, __pyx_n___init__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; goto __pyx_L1;}
2579
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2580
 
 
2581
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":199 */
2582
 
  __pyx_1 = PyCFunction_New(&__pyx_mdef_8_blueman_15BridgeException___str__, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L1;}
2583
 
  __pyx_4 = PyMethod_New(__pyx_1, 0, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L1;}
2584
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2585
 
  if (PyObject_SetAttr(__pyx_3, __pyx_n___str__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L1;}
2586
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2587
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_BridgeException, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; goto __pyx_L1;}
2588
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2589
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2590
 
 
2591
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":204 */
2592
 
  Py_INCREF(__pyx_n_pan1);
2593
 
  __pyx_d1 = __pyx_n_pan1;
2594
 
 
2595
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":209 */
2596
 
  Py_INCREF(__pyx_n_pan1);
2597
 
  __pyx_d2 = __pyx_n_pan1;
2598
 
 
2599
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":219 */
2600
 
  Py_INCREF(__pyx_n_hci0);
2601
 
  __pyx_d3 = __pyx_n_hci0;
2602
 
 
2603
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":246 */
2604
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; goto __pyx_L1;}
2605
 
  __pyx_d4 = __pyx_1;
2606
 
  __pyx_1 = 0;
2607
 
 
2608
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":254 */
2609
 
  Py_INCREF(__pyx_n_hci0);
2610
 
  __pyx_d5 = __pyx_n_hci0;
2611
 
 
2612
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":262 */
2613
 
  Py_INCREF(__pyx_n_hci0);
2614
 
  __pyx_d6 = __pyx_n_hci0;
2615
 
 
2616
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":519 */
2617
 
  __pyx_4 = PyDict_New(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
2618
 
  __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
2619
 
  __pyx_2 = __Pyx_CreateClass(__pyx_3, __pyx_4, __pyx_n_SpecialDirType, "_blueman"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
2620
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2621
 
 
2622
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":520 */
2623
 
  __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; goto __pyx_L1;}
2624
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_DESKTOP, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; goto __pyx_L1;}
2625
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2626
 
 
2627
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":521 */
2628
 
  __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; goto __pyx_L1;}
2629
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_DOCUMENTS, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; goto __pyx_L1;}
2630
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2631
 
 
2632
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":522 */
2633
 
  __pyx_3 = PyInt_FromLong(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;}
2634
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_DOWNLOAD, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;}
2635
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2636
 
 
2637
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":523 */
2638
 
  __pyx_3 = PyInt_FromLong(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; goto __pyx_L1;}
2639
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_MUSIC, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; goto __pyx_L1;}
2640
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2641
 
 
2642
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":524 */
2643
 
  __pyx_3 = PyInt_FromLong(4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; goto __pyx_L1;}
2644
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_PICTURES, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; goto __pyx_L1;}
2645
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2646
 
 
2647
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":525 */
2648
 
  __pyx_3 = PyInt_FromLong(5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;}
2649
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_PUBLIC_SHARE, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;}
2650
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2651
 
 
2652
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":526 */
2653
 
  __pyx_3 = PyInt_FromLong(6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; goto __pyx_L1;}
2654
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_TEMPLATES, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; goto __pyx_L1;}
2655
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2656
 
 
2657
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":527 */
2658
 
  __pyx_3 = PyInt_FromLong(7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; goto __pyx_L1;}
2659
 
  if (PyObject_SetAttr(__pyx_2, __pyx_n_VIDEOS, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; goto __pyx_L1;}
2660
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2661
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_SpecialDirType, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
2662
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2663
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2664
 
 
2665
 
  /* "/home/walmis/Desktop/blueman/module/_blueman.pyx":530 */
2666
 
  return;
2667
 
  __pyx_L1:;
2668
 
  Py_XDECREF(__pyx_1);
2669
 
  Py_XDECREF(__pyx_2);
2670
 
  Py_XDECREF(__pyx_3);
2671
 
  Py_XDECREF(__pyx_4);
2672
 
  __Pyx_AddTraceback("_blueman");
2673
 
}
2674
 
 
2675
 
static char *__pyx_filenames[] = {
2676
 
  "_blueman.pyx",
2677
 
};
2678
 
 
2679
 
/* Runtime support code */
2680
 
 
2681
 
static void __pyx_init_filenames(void) {
2682
 
  __pyx_f = __pyx_filenames;
2683
 
}
2684
 
 
2685
 
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
2686
 
    PyObject *result;
2687
 
    result = PyObject_GetAttr(dict, name);
2688
 
    if (!result)
2689
 
        PyErr_SetObject(PyExc_NameError, name);
2690
 
    return result;
2691
 
}
2692
 
 
2693
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
2694
 
    Py_XINCREF(type);
2695
 
    Py_XINCREF(value);
2696
 
    Py_XINCREF(tb);
2697
 
    /* First, check the traceback argument, replacing None with NULL. */
2698
 
    if (tb == Py_None) {
2699
 
        Py_DECREF(tb);
2700
 
        tb = 0;
2701
 
    }
2702
 
    else if (tb != NULL && !PyTraceBack_Check(tb)) {
2703
 
        PyErr_SetString(PyExc_TypeError,
2704
 
            "raise: arg 3 must be a traceback or None");
2705
 
        goto raise_error;
2706
 
    }
2707
 
    /* Next, replace a missing value with None */
2708
 
    if (value == NULL) {
2709
 
        value = Py_None;
2710
 
        Py_INCREF(value);
2711
 
    }
2712
 
    #if PY_VERSION_HEX < 0x02050000
2713
 
    if (!PyClass_Check(type))
2714
 
    #else
2715
 
    if (!PyType_Check(type))
2716
 
    #endif
2717
 
    {
2718
 
        /* Raising an instance.  The value should be a dummy. */
2719
 
        if (value != Py_None) {
2720
 
            PyErr_SetString(PyExc_TypeError,
2721
 
                "instance exception may not have a separate value");
2722
 
            goto raise_error;
2723
 
        }
2724
 
        /* Normalize to raise <class>, <instance> */
2725
 
        Py_DECREF(value);
2726
 
        value = type;
2727
 
        #if PY_VERSION_HEX < 0x02050000
2728
 
            if (PyInstance_Check(type)) {
2729
 
                type = (PyObject*) ((PyInstanceObject*)type)->in_class;
2730
 
                Py_INCREF(type);
2731
 
            }
2732
 
            else {
2733
 
                PyErr_SetString(PyExc_TypeError,
2734
 
                    "raise: exception must be an old-style class or instance");
2735
 
                goto raise_error;
2736
 
            }
2737
 
        #else
2738
 
            type = (PyObject*) type->ob_type;
2739
 
            Py_INCREF(type);
2740
 
            if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
2741
 
                PyErr_SetString(PyExc_TypeError,
2742
 
                    "raise: exception class must be a subclass of BaseException");
2743
 
                goto raise_error;
2744
 
            }
2745
 
        #endif
2746
 
    }
2747
 
    PyErr_Restore(type, value, tb);
2748
 
    return;
2749
 
raise_error:
2750
 
    Py_XDECREF(value);
2751
 
    Py_XDECREF(type);
2752
 
    Py_XDECREF(tb);
2753
 
    return;
2754
 
}
2755
 
 
2756
 
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
2757
 
    PyObject *__import__ = 0;
2758
 
    PyObject *empty_list = 0;
2759
 
    PyObject *module = 0;
2760
 
    PyObject *global_dict = 0;
2761
 
    PyObject *empty_dict = 0;
2762
 
    PyObject *list;
2763
 
    __import__ = PyObject_GetAttrString(__pyx_b, "__import__");
2764
 
    if (!__import__)
2765
 
        goto bad;
2766
 
    if (from_list)
2767
 
        list = from_list;
2768
 
    else {
2769
 
        empty_list = PyList_New(0);
2770
 
        if (!empty_list)
2771
 
            goto bad;
2772
 
        list = empty_list;
2773
 
    }
2774
 
    global_dict = PyModule_GetDict(__pyx_m);
2775
 
    if (!global_dict)
2776
 
        goto bad;
2777
 
    empty_dict = PyDict_New();
2778
 
    if (!empty_dict)
2779
 
        goto bad;
2780
 
    module = PyObject_CallFunction(__import__, "OOOO",
2781
 
        name, global_dict, empty_dict, list);
2782
 
bad:
2783
 
    Py_XDECREF(empty_list);
2784
 
    Py_XDECREF(__import__);
2785
 
    Py_XDECREF(empty_dict);
2786
 
    return module;
2787
 
}
2788
 
 
2789
 
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
2790
 
    while (t->p) {
2791
 
        *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
2792
 
        if (!*t->p)
2793
 
            return -1;
2794
 
        if (t->i)
2795
 
            PyString_InternInPlace(t->p);
2796
 
        ++t;
2797
 
    }
2798
 
    return 0;
2799
 
}
2800
 
 
2801
 
static PyObject *__Pyx_CreateClass(
2802
 
    PyObject *bases, PyObject *dict, PyObject *name, char *modname)
2803
 
{
2804
 
    PyObject *py_modname;
2805
 
    PyObject *result = 0;
2806
 
    
2807
 
    py_modname = PyString_FromString(modname);
2808
 
    if (!py_modname)
2809
 
        goto bad;
2810
 
    if (PyDict_SetItemString(dict, "__module__", py_modname) < 0)
2811
 
        goto bad;
2812
 
    result = PyClass_New(bases, dict, name);
2813
 
bad:
2814
 
    Py_XDECREF(py_modname);
2815
 
    return result;
2816
 
}
2817
 
 
2818
 
#include "compile.h"
2819
 
#include "frameobject.h"
2820
 
#include "traceback.h"
2821
 
 
2822
 
static void __Pyx_AddTraceback(char *funcname) {
2823
 
    PyObject *py_srcfile = 0;
2824
 
    PyObject *py_funcname = 0;
2825
 
    PyObject *py_globals = 0;
2826
 
    PyObject *empty_tuple = 0;
2827
 
    PyObject *empty_string = 0;
2828
 
    PyCodeObject *py_code = 0;
2829
 
    PyFrameObject *py_frame = 0;
2830
 
    
2831
 
    py_srcfile = PyString_FromString(__pyx_filename);
2832
 
    if (!py_srcfile) goto bad;
2833
 
    py_funcname = PyString_FromString(funcname);
2834
 
    if (!py_funcname) goto bad;
2835
 
    py_globals = PyModule_GetDict(__pyx_m);
2836
 
    if (!py_globals) goto bad;
2837
 
    empty_tuple = PyTuple_New(0);
2838
 
    if (!empty_tuple) goto bad;
2839
 
    empty_string = PyString_FromString("");
2840
 
    if (!empty_string) goto bad;
2841
 
    py_code = PyCode_New(
2842
 
        0,            /*int argcount,*/
2843
 
        0,            /*int nlocals,*/
2844
 
        0,            /*int stacksize,*/
2845
 
        0,            /*int flags,*/
2846
 
        empty_string, /*PyObject *code,*/
2847
 
        empty_tuple,  /*PyObject *consts,*/
2848
 
        empty_tuple,  /*PyObject *names,*/
2849
 
        empty_tuple,  /*PyObject *varnames,*/
2850
 
        empty_tuple,  /*PyObject *freevars,*/
2851
 
        empty_tuple,  /*PyObject *cellvars,*/
2852
 
        py_srcfile,   /*PyObject *filename,*/
2853
 
        py_funcname,  /*PyObject *name,*/
2854
 
        __pyx_lineno,   /*int firstlineno,*/
2855
 
        empty_string  /*PyObject *lnotab*/
2856
 
    );
2857
 
    if (!py_code) goto bad;
2858
 
    py_frame = PyFrame_New(
2859
 
        PyThreadState_Get(), /*PyThreadState *tstate,*/
2860
 
        py_code,             /*PyCodeObject *code,*/
2861
 
        py_globals,          /*PyObject *globals,*/
2862
 
        0                    /*PyObject *locals*/
2863
 
    );
2864
 
    if (!py_frame) goto bad;
2865
 
    py_frame->f_lineno = __pyx_lineno;
2866
 
    PyTraceBack_Here(py_frame);
2867
 
bad:
2868
 
    Py_XDECREF(py_srcfile);
2869
 
    Py_XDECREF(py_funcname);
2870
 
    Py_XDECREF(empty_tuple);
2871
 
    Py_XDECREF(empty_string);
2872
 
    Py_XDECREF(py_code);
2873
 
    Py_XDECREF(py_frame);
2874
 
}