~ubuntu-branches/ubuntu/quantal/ibus/quantal

« back to all changes in this revision

Viewing changes to src/ibusinternal.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry Warsaw
  • Date: 2011-08-11 17:00:57 UTC
  • mfrom: (6.2.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110811170057-6dmbfs4s3cchzl7x
Tags: 1.3.99.20110419-1ubuntu1
* Merge with Debian unstable.  Remaining Ubuntu changes:
  - Indicator support:
    + Add 05_appindicator.patch: Use an indicator rather than a notification
      icon.
    + debian/control: Recommend python-appindicator.
  - debian/control: Install im-switch instead of im-config by default.
  - debian/README.source: Removed, it was outdated and no longer correct
  - debian/patches/01_ubuntu_desktop: Fix "Desktop entry needs the
    X-Ubuntu-Gettext-Domain key"  (LP: #457632)
  - debian/patches/02_title_update.patch: Rename "IBus Preferences" to
    "Keyboard Input Methods"
  - debian/patches/06_locale_parser.patch: Cherry-picked from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
2
 
/* vim:set et sts=4: */
3
 
/* ibus - The Input Bus
4
 
 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
5
 
 * Copyright (C) 2008-2010 Red Hat, Inc.
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Lesser General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Lesser General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with this library; if not, write to the
19
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
 * Boston, MA 02111-1307, USA.
21
 
 */
22
 
#include <dbus/dbus.h>
23
 
#include "ibusinternal.h"
24
 
 
25
 
/**
26
 
 * IBusMessageQueue:
27
 
 * @source: The parent GSource.
28
 
 * @connection: The connection to dispatch.
29
 
 *
30
 
 * A GSource subclass for dispatching DBusConnection messages.
31
 
 * We need this on top of the IO handlers, because sometimes
32
 
 * there are messages to dispatch queued up but no IO pending.
33
 
 */
34
 
typedef struct
35
 
{
36
 
    GSource source;
37
 
    DBusConnection *connection;
38
 
} IBusMessageQueue;
39
 
 
40
 
static gboolean message_queue_prepare  (GSource     *source,
41
 
                                          gint        *timeout);
42
 
static gboolean message_queue_check    (GSource     *source);
43
 
static gboolean message_queue_dispatch (GSource     *source,
44
 
                                        GSourceFunc  callback,
45
 
                                        gpointer     user_data);
46
 
 
47
 
static const GSourceFuncs message_queue_funcs = {
48
 
    message_queue_prepare,
49
 
    message_queue_check,
50
 
    message_queue_dispatch,
51
 
    NULL
52
 
};
53
 
 
54
 
static gboolean
55
 
message_queue_prepare (GSource *source,
56
 
                         gint    *timeout)
57
 
{
58
 
    DBusConnection *connection = ((IBusMessageQueue *)source)->connection;
59
 
 
60
 
    *timeout = -1;
61
 
 
62
 
    return (dbus_connection_get_dispatch_status (connection) == DBUS_DISPATCH_DATA_REMAINS);
63
 
}
64
 
 
65
 
static gboolean
66
 
message_queue_check (GSource *source)
67
 
{
68
 
    return FALSE;
69
 
}
70
 
 
71
 
static gboolean
72
 
message_queue_dispatch (GSource     *source,
73
 
                        GSourceFunc  callback,
74
 
                        gpointer     user_data)
75
 
{
76
 
    DBusConnection *connection = ((IBusMessageQueue *)source)->connection;
77
 
 
78
 
    dbus_connection_ref (connection);
79
 
 
80
 
    /* Only dispatch once - we don't want to starve other GSource */
81
 
    dbus_connection_dispatch (connection);
82
 
 
83
 
    dbus_connection_unref (connection);
84
 
 
85
 
    return TRUE;
86
 
}
87
 
 
88
 
/**
89
 
 * ConnectionSetup:
90
 
 * @context: The main context.
91
 
 * @ios: All IOHandler.
92
 
 * @timeouts: All TimeoutHandler.
93
 
 * @connection: NULL if this is really for a server not a connection.
94
 
 * @message_queue_source: IBusMessageQueue.
95
 
 *
96
 
 */
97
 
GSource *message_queue_source; /**< IBusMessageQueue */
98
 
typedef struct
99
 
{
100
 
    GMainContext *context;      /**< the main context */
101
 
    GSList *ios;                /**< all IOHandler */
102
 
    GSList *timeouts;           /**< all TimeoutHandler */
103
 
    DBusConnection *connection; /**< NULL if this is really for a server not a connection */
104
 
    GSource *message_queue_source; /**< IBusMessageQueue */
105
 
} ConnectionSetup;
106
 
 
107
 
 
108
 
typedef struct
109
 
{
110
 
    ConnectionSetup *cs;
111
 
    GSource *source;
112
 
    DBusWatch *watch;
113
 
} IOHandler;
114
 
 
115
 
typedef struct
116
 
{
117
 
    ConnectionSetup *cs;
118
 
    GSource *source;
119
 
    DBusTimeout *timeout;
120
 
} TimeoutHandler;
121
 
 
122
 
dbus_int32_t _dbus_gmain_connection_slot = -1;
123
 
static dbus_int32_t server_slot = -1;
124
 
 
125
 
static ConnectionSetup*
126
 
connection_setup_new (GMainContext   *context,
127
 
                      DBusConnection *connection)
128
 
{
129
 
    ConnectionSetup *cs;
130
 
 
131
 
    cs = g_slice_new0 (ConnectionSetup);
132
 
 
133
 
    g_assert (context != NULL);
134
 
 
135
 
    cs->context = context;
136
 
    g_main_context_ref (cs->context);
137
 
 
138
 
    if (connection) {
139
 
        cs->connection = connection;
140
 
 
141
 
        cs->message_queue_source = g_source_new ((GSourceFuncs *) &message_queue_funcs,
142
 
                                                 sizeof (IBusMessageQueue));
143
 
        ((IBusMessageQueue*)cs->message_queue_source)->connection = connection;
144
 
        g_source_attach (cs->message_queue_source, cs->context);
145
 
    }
146
 
    return cs;
147
 
}
148
 
 
149
 
static void
150
 
io_handler_source_finalized (gpointer data)
151
 
{
152
 
    IOHandler *handler;
153
 
 
154
 
    handler = data;
155
 
 
156
 
    if (handler->watch)
157
 
      dbus_watch_set_data (handler->watch, NULL, NULL);
158
 
 
159
 
    g_slice_free (IOHandler, handler);
160
 
}
161
 
 
162
 
static void
163
 
io_handler_destroy_source (void *data)
164
 
{
165
 
    IOHandler *handler;
166
 
 
167
 
    handler = data;
168
 
 
169
 
    if (handler->source) {
170
 
        GSource *source = handler->source;
171
 
        handler->source = NULL;
172
 
        handler->cs->ios = g_slist_remove (handler->cs->ios, handler);
173
 
        g_source_destroy (source);
174
 
        g_source_unref (source);
175
 
    }
176
 
}
177
 
 
178
 
static void
179
 
io_handler_watch_freed (void *data)
180
 
{
181
 
    IOHandler *handler;
182
 
 
183
 
    handler = data;
184
 
 
185
 
    handler->watch = NULL;
186
 
 
187
 
    io_handler_destroy_source (handler);
188
 
}
189
 
 
190
 
static gboolean
191
 
io_handler_dispatch (GIOChannel   *source,
192
 
                     GIOCondition  condition,
193
 
                     gpointer      data)
194
 
{
195
 
    IOHandler *handler;
196
 
    guint dbus_condition = 0;
197
 
    DBusConnection *connection;
198
 
 
199
 
    handler = data;
200
 
 
201
 
    connection = handler->cs->connection;
202
 
 
203
 
    if (connection)
204
 
        dbus_connection_ref (connection);
205
 
 
206
 
    if (condition & G_IO_IN)
207
 
        dbus_condition |= DBUS_WATCH_READABLE;
208
 
    if (condition & G_IO_OUT)
209
 
        dbus_condition |= DBUS_WATCH_WRITABLE;
210
 
    if (condition & G_IO_ERR)
211
 
        dbus_condition |= DBUS_WATCH_ERROR;
212
 
    if (condition & G_IO_HUP)
213
 
        dbus_condition |= DBUS_WATCH_HANGUP;
214
 
 
215
 
    /* Note that we don't touch the handler after this, because
216
 
     * dbus may have disabled the watch and thus killed the
217
 
     * handler.
218
 
     */
219
 
    dbus_watch_handle (handler->watch, dbus_condition);
220
 
    handler = NULL;
221
 
 
222
 
    if (connection)
223
 
        dbus_connection_unref (connection);
224
 
 
225
 
    return TRUE;
226
 
}
227
 
 
228
 
static void
229
 
connection_setup_add_watch (ConnectionSetup *cs,
230
 
                            DBusWatch       *watch)
231
 
{
232
 
    guint flags;
233
 
    GIOCondition condition;
234
 
    GIOChannel *channel;
235
 
    IOHandler *handler;
236
 
 
237
 
    if (!dbus_watch_get_enabled (watch))
238
 
        return;
239
 
 
240
 
    g_assert (dbus_watch_get_data (watch) == NULL);
241
 
 
242
 
    flags = dbus_watch_get_flags (watch);
243
 
 
244
 
    condition = G_IO_ERR | G_IO_HUP;
245
 
    if (flags & DBUS_WATCH_READABLE)
246
 
        condition |= G_IO_IN;
247
 
    if (flags & DBUS_WATCH_WRITABLE)
248
 
        condition |= G_IO_OUT;
249
 
 
250
 
    handler = g_slice_new (IOHandler);
251
 
    handler->cs = cs;
252
 
    handler->watch = watch;
253
 
 
254
 
    channel = g_io_channel_unix_new (dbus_watch_get_unix_fd (watch));
255
 
 
256
 
    handler->source = g_io_create_watch (channel, condition);
257
 
    g_source_set_callback (handler->source, (GSourceFunc) io_handler_dispatch, handler,
258
 
                           io_handler_source_finalized);
259
 
    g_source_attach (handler->source, cs->context);
260
 
 
261
 
    cs->ios = g_slist_prepend (cs->ios, handler);
262
 
 
263
 
    dbus_watch_set_data (watch, handler, io_handler_watch_freed);
264
 
    g_io_channel_unref (channel);
265
 
}
266
 
 
267
 
static void
268
 
connection_setup_remove_watch (ConnectionSetup *cs,
269
 
                               DBusWatch       *watch)
270
 
{
271
 
    IOHandler *handler;
272
 
 
273
 
    handler = dbus_watch_get_data (watch);
274
 
 
275
 
    if (handler == NULL)
276
 
        return;
277
 
 
278
 
    io_handler_destroy_source (handler);
279
 
}
280
 
 
281
 
static void
282
 
timeout_handler_source_finalized (gpointer data)
283
 
{
284
 
    TimeoutHandler *handler;
285
 
 
286
 
    handler = data;
287
 
 
288
 
    if (handler->timeout)
289
 
        dbus_timeout_set_data (handler->timeout, NULL, NULL);
290
 
 
291
 
    g_slice_free (TimeoutHandler, handler);
292
 
}
293
 
 
294
 
static void
295
 
timeout_handler_destroy_source (void *data)
296
 
{
297
 
    TimeoutHandler *handler;
298
 
 
299
 
    handler = data;
300
 
 
301
 
    if (handler->source) {
302
 
        GSource *source = handler->source;
303
 
        handler->source = NULL;
304
 
        handler->cs->timeouts = g_slist_remove (handler->cs->timeouts, handler);
305
 
        g_source_destroy (source);
306
 
        g_source_unref (source);
307
 
    }
308
 
}
309
 
 
310
 
static void
311
 
timeout_handler_timeout_freed (void *data)
312
 
{
313
 
    TimeoutHandler *handler;
314
 
 
315
 
    handler = data;
316
 
 
317
 
    handler->timeout = NULL;
318
 
 
319
 
    timeout_handler_destroy_source (handler);
320
 
}
321
 
 
322
 
static gboolean
323
 
timeout_handler_dispatch (gpointer      data)
324
 
{
325
 
    TimeoutHandler *handler;
326
 
 
327
 
    handler = data;
328
 
 
329
 
    dbus_timeout_handle (handler->timeout);
330
 
 
331
 
    return TRUE;
332
 
}
333
 
 
334
 
static void
335
 
connection_setup_add_timeout (ConnectionSetup *cs,
336
 
                              DBusTimeout     *timeout)
337
 
{
338
 
    TimeoutHandler *handler;
339
 
 
340
 
    if (!dbus_timeout_get_enabled (timeout))
341
 
        return;
342
 
 
343
 
    g_assert (dbus_timeout_get_data (timeout) == NULL);
344
 
 
345
 
    handler = g_slice_new0 (TimeoutHandler);
346
 
    handler->cs = cs;
347
 
    handler->timeout = timeout;
348
 
 
349
 
    handler->source = g_timeout_source_new (dbus_timeout_get_interval (timeout));
350
 
    g_source_set_callback (handler->source, timeout_handler_dispatch, handler,
351
 
                           timeout_handler_source_finalized);
352
 
    g_source_attach (handler->source, handler->cs->context);
353
 
 
354
 
    cs->timeouts = g_slist_prepend (cs->timeouts, handler);
355
 
 
356
 
    dbus_timeout_set_data (timeout, handler, timeout_handler_timeout_freed);
357
 
}
358
 
 
359
 
static void
360
 
connection_setup_remove_timeout (ConnectionSetup *cs,
361
 
                                 DBusTimeout       *timeout)
362
 
{
363
 
    TimeoutHandler *handler;
364
 
 
365
 
    handler = dbus_timeout_get_data (timeout);
366
 
 
367
 
    if (handler == NULL)
368
 
        return;
369
 
 
370
 
    timeout_handler_destroy_source (handler);
371
 
}
372
 
 
373
 
static void
374
 
connection_setup_free (ConnectionSetup *cs)
375
 
{
376
 
    while (cs->ios)
377
 
        io_handler_destroy_source (cs->ios->data);
378
 
 
379
 
    while (cs->timeouts)
380
 
        timeout_handler_destroy_source (cs->timeouts->data);
381
 
 
382
 
    if (cs->message_queue_source) {
383
 
        GSource *source;
384
 
 
385
 
        source = cs->message_queue_source;
386
 
        cs->message_queue_source = NULL;
387
 
 
388
 
        g_source_destroy (source);
389
 
        g_source_unref (source);
390
 
    }
391
 
 
392
 
    g_main_context_unref (cs->context);
393
 
    g_slice_free (ConnectionSetup, cs);
394
 
}
395
 
 
396
 
static dbus_bool_t
397
 
add_watch (DBusWatch *watch,
398
 
       gpointer   data)
399
 
{
400
 
    ConnectionSetup *cs;
401
 
 
402
 
    cs = data;
403
 
 
404
 
    connection_setup_add_watch (cs, watch);
405
 
 
406
 
    return TRUE;
407
 
}
408
 
 
409
 
static void
410
 
remove_watch (DBusWatch *watch,
411
 
          gpointer   data)
412
 
{
413
 
    ConnectionSetup *cs;
414
 
 
415
 
    cs = data;
416
 
 
417
 
    connection_setup_remove_watch (cs, watch);
418
 
}
419
 
 
420
 
static void
421
 
watch_toggled (DBusWatch *watch,
422
 
                 void      *data)
423
 
{
424
 
    /* Because we just exit on OOM, enable/disable is
425
 
     * no different from add/remove
426
 
     */
427
 
    if (dbus_watch_get_enabled (watch))
428
 
        add_watch (watch, data);
429
 
    else
430
 
        remove_watch (watch, data);
431
 
}
432
 
 
433
 
static dbus_bool_t
434
 
add_timeout (DBusTimeout *timeout,
435
 
         void        *data)
436
 
{
437
 
    ConnectionSetup *cs;
438
 
 
439
 
    cs = data;
440
 
 
441
 
    if (!dbus_timeout_get_enabled (timeout))
442
 
        return TRUE;
443
 
 
444
 
    connection_setup_add_timeout (cs, timeout);
445
 
 
446
 
    return TRUE;
447
 
}
448
 
 
449
 
static void
450
 
remove_timeout (DBusTimeout *timeout,
451
 
        void        *data)
452
 
{
453
 
    ConnectionSetup *cs;
454
 
 
455
 
    cs = data;
456
 
 
457
 
    connection_setup_remove_timeout (cs, timeout);
458
 
}
459
 
 
460
 
static void
461
 
timeout_toggled (DBusTimeout *timeout,
462
 
                   void        *data)
463
 
{
464
 
    /* Because we just exit on OOM, enable/disable is
465
 
     * no different from add/remove
466
 
     */
467
 
    if (dbus_timeout_get_enabled (timeout))
468
 
        add_timeout (timeout, data);
469
 
    else
470
 
        remove_timeout (timeout, data);
471
 
}
472
 
 
473
 
static void
474
 
wakeup_main (void *data)
475
 
{
476
 
    ConnectionSetup *cs = data;
477
 
 
478
 
    g_main_context_wakeup (cs->context);
479
 
}
480
 
 
481
 
 
482
 
/* Move to a new context */
483
 
static ConnectionSetup*
484
 
connection_setup_new_from_old (GMainContext    *context,
485
 
                               ConnectionSetup *old)
486
 
{
487
 
    GSList *tmp;
488
 
    ConnectionSetup *cs;
489
 
 
490
 
    g_assert (old->context != context);
491
 
 
492
 
    cs = connection_setup_new (context, old->connection);
493
 
 
494
 
    tmp = old->ios;
495
 
    while (tmp != NULL) {
496
 
        IOHandler *handler = tmp->data;
497
 
 
498
 
        connection_setup_add_watch (cs, handler->watch);
499
 
 
500
 
        tmp = tmp->next;
501
 
    }
502
 
 
503
 
    tmp = old->timeouts;
504
 
    while (tmp != NULL) {
505
 
        TimeoutHandler *handler = tmp->data;
506
 
 
507
 
        connection_setup_add_timeout (cs, handler->timeout);
508
 
 
509
 
        tmp = tmp->next;
510
 
    }
511
 
 
512
 
    return cs;
513
 
}
514
 
 
515
 
/** @} */ /* End of GLib bindings internals */
516
 
 
517
 
/* @addtogroup IBusLib
518
 
 * @{
519
 
 */
520
 
 
521
 
/**
522
 
 * dbus_connection_setup_with_g_main:
523
 
 * @connection: the connection
524
 
 * @context: the #GMainContext or #NULL for default context
525
 
 *
526
 
 * Sets the watch and timeout functions of a #DBusConnection
527
 
 * to integrate the connection with the GLib main loop.
528
 
 * Pass in #NULL for the #GMainContext unless you're
529
 
 * doing something specialized.
530
 
 *
531
 
 * If called twice for the same context, does nothing the second
532
 
 * time. If called once with context A and once with context B,
533
 
 * context B replaces context A as the context monitoring the
534
 
 * connection.
535
 
 */
536
 
void
537
 
dbus_connection_setup (DBusConnection *connection,
538
 
                       GMainContext   *context)
539
 
{
540
 
    ConnectionSetup *old_setup;
541
 
    ConnectionSetup *cs;
542
 
 
543
 
    do {
544
 
        /* FIXME we never free the slot, so its refcount just keeps growing,
545
 
         * which is kind of broken.
546
 
         */
547
 
        dbus_connection_allocate_data_slot (&_dbus_gmain_connection_slot);
548
 
        if (_dbus_gmain_connection_slot < 0)
549
 
            break;
550
 
 
551
 
        if (context == NULL)
552
 
            context = g_main_context_default ();
553
 
 
554
 
        cs = NULL;
555
 
 
556
 
        old_setup = dbus_connection_get_data (connection, _dbus_gmain_connection_slot);
557
 
        if (old_setup != NULL) {
558
 
            if (old_setup->context == context)
559
 
                return; /* nothing to do */
560
 
 
561
 
            cs = connection_setup_new_from_old (context, old_setup);
562
 
 
563
 
            /* Nuke the old setup */
564
 
            dbus_connection_set_data (connection, _dbus_gmain_connection_slot, NULL, NULL);
565
 
            old_setup = NULL;
566
 
        }
567
 
 
568
 
        if (cs == NULL)
569
 
            cs = connection_setup_new (context, connection);
570
 
 
571
 
        if (!dbus_connection_set_data (connection, _dbus_gmain_connection_slot, cs,
572
 
                                       (DBusFreeFunction)connection_setup_free))
573
 
            break;
574
 
 
575
 
        if (!dbus_connection_set_watch_functions (connection,
576
 
                                                  add_watch,
577
 
                                                  remove_watch,
578
 
                                                  watch_toggled,
579
 
                                                  cs, NULL))
580
 
            break;
581
 
 
582
 
        if (!dbus_connection_set_timeout_functions (connection,
583
 
                                                    add_timeout,
584
 
                                                    remove_timeout,
585
 
                                                    timeout_toggled,
586
 
                                                    cs, NULL))
587
 
            break;
588
 
 
589
 
        dbus_connection_set_wakeup_main_function (connection,
590
 
                            wakeup_main,
591
 
                            cs, NULL);
592
 
 
593
 
        return;
594
 
    } while (0);
595
 
    
596
 
    g_error ("Not enough memory to set up DBusConnection for use with GLib");
597
 
}
598
 
 
599
 
/**
600
 
 * dbus_server_setup_with_g_main:
601
 
 * @server: the server
602
 
 * @context: the #GMainContext or #NULL for default
603
 
 *
604
 
 * Sets the watch and timeout functions of a #DBusServer
605
 
 * to integrate the server with the GLib main loop.
606
 
 * In most cases the context argument should be #NULL.
607
 
 *
608
 
 * If called twice for the same context, does nothing the second
609
 
 * time. If called once with context A and once with context B,
610
 
 * context B replaces context A as the context monitoring the
611
 
 * connection.
612
 
 */
613
 
void
614
 
dbus_server_setup (DBusServer   *server,
615
 
                                   GMainContext *context)
616
 
{
617
 
    ConnectionSetup *old_setup;
618
 
    ConnectionSetup *cs;
619
 
 
620
 
    do {
621
 
        /* FIXME we never free the slot, so its refcount just keeps growing,
622
 
         * which is kind of broken.
623
 
         */
624
 
        dbus_server_allocate_data_slot (&server_slot);
625
 
        if (server_slot < 0)
626
 
            break;
627
 
 
628
 
        if (context == NULL)
629
 
            context = g_main_context_default ();
630
 
 
631
 
        cs = NULL;
632
 
 
633
 
        old_setup = dbus_server_get_data (server, server_slot);
634
 
        if (old_setup != NULL) {
635
 
            if (old_setup->context == context)
636
 
                return; /* nothing to do */
637
 
 
638
 
            cs = connection_setup_new_from_old (context, old_setup);
639
 
 
640
 
            /* Nuke the old setup */
641
 
            dbus_server_set_data (server, server_slot, NULL, NULL);
642
 
            old_setup = NULL;
643
 
        }
644
 
 
645
 
        if (cs == NULL)
646
 
            cs = connection_setup_new (context, NULL);
647
 
 
648
 
        if (!dbus_server_set_data (server, server_slot, cs,
649
 
                                   (DBusFreeFunction)connection_setup_free))
650
 
            break;
651
 
 
652
 
        if (!dbus_server_set_watch_functions (server,
653
 
                                              add_watch,
654
 
                                              remove_watch,
655
 
                                              watch_toggled,
656
 
                                              cs, NULL))
657
 
            break;
658
 
 
659
 
        if (!dbus_server_set_timeout_functions (server,
660
 
                                                add_timeout,
661
 
                                                remove_timeout,
662
 
                                                timeout_toggled,
663
 
                                                cs, NULL))
664
 
            break;
665
 
 
666
 
        return;
667
 
    } while (0);
668
 
    
669
 
    g_error ("Not enough memory to set up DBusServer for use with GLib");
670
 
}
671