os/ossrv/ossrv_pub/dbus/inc/dbus-connection.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/* -*- mode: C; c-file-style: "gnu" -*- */
sl@0
     2
/* dbus-connection.h DBusConnection object
sl@0
     3
 *
sl@0
     4
 * Copyright (C) 2002, 2003  Red Hat Inc.
sl@0
     5
 * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
sl@0
     6
 * Licensed under the Academic Free License version 2.1
sl@0
     7
 * 
sl@0
     8
 * This program is free software; you can redistribute it and/or modify
sl@0
     9
 * it under the terms of the GNU General Public License as published by
sl@0
    10
 * the Free Software Foundation; either version 2 of the License, or
sl@0
    11
 * (at your option) any later version.
sl@0
    12
 *
sl@0
    13
 * This program is distributed in the hope that it will be useful,
sl@0
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
sl@0
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
sl@0
    16
 * GNU General Public License for more details.
sl@0
    17
 * 
sl@0
    18
 * You should have received a copy of the GNU General Public License
sl@0
    19
 * along with this program; if not, write to the Free Software
sl@0
    20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
sl@0
    21
 *
sl@0
    22
 */
sl@0
    23
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
sl@0
    24
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
sl@0
    25
#endif
sl@0
    26
sl@0
    27
#ifndef DBUS_CONNECTION_H
sl@0
    28
#define DBUS_CONNECTION_H
sl@0
    29
sl@0
    30
#include <dbus/dbus-errors.h>
sl@0
    31
#include <dbus/dbus-memory.h>
sl@0
    32
#include <dbus/dbus-message.h>
sl@0
    33
#include <dbus/dbus-shared.h>
sl@0
    34
sl@0
    35
DBUS_BEGIN_DECLS
sl@0
    36
sl@0
    37
/**
sl@0
    38
 * @addtogroup DBusConnection
sl@0
    39
 * @{
sl@0
    40
 */
sl@0
    41
sl@0
    42
/* documented in dbus-watch.c */
sl@0
    43
typedef struct DBusWatch DBusWatch;
sl@0
    44
/* documented in dbus-timeout.c */
sl@0
    45
typedef struct DBusTimeout DBusTimeout;
sl@0
    46
/** Opaque type representing preallocated resources so a message can be sent without further memory allocation. */
sl@0
    47
typedef struct DBusPreallocatedSend DBusPreallocatedSend;
sl@0
    48
/** Opaque type representing a method call that has not yet received a reply. */
sl@0
    49
typedef struct DBusPendingCall DBusPendingCall;
sl@0
    50
/** Opaque type representing a connection to a remote application and associated incoming/outgoing message queues. */
sl@0
    51
typedef struct DBusConnection DBusConnection;
sl@0
    52
/** Set of functions that must be implemented to handle messages sent to a particular object path. */
sl@0
    53
typedef struct DBusObjectPathVTable DBusObjectPathVTable;
sl@0
    54
sl@0
    55
/**
sl@0
    56
 * Indicates the status of a #DBusWatch.
sl@0
    57
 */
sl@0
    58
typedef enum
sl@0
    59
{
sl@0
    60
  DBUS_WATCH_READABLE = 1 << 0, /**< As in POLLIN */
sl@0
    61
  DBUS_WATCH_WRITABLE = 1 << 1, /**< As in POLLOUT */
sl@0
    62
  DBUS_WATCH_ERROR    = 1 << 2, /**< As in POLLERR (can't watch for
sl@0
    63
                                 *   this, but can be present in
sl@0
    64
                                 *   current state passed to
sl@0
    65
                                 *   dbus_watch_handle()).
sl@0
    66
                                 */
sl@0
    67
  DBUS_WATCH_HANGUP   = 1 << 3  /**< As in POLLHUP (can't watch for
sl@0
    68
                                 *   it, but can be present in current
sl@0
    69
                                 *   state passed to
sl@0
    70
                                 *   dbus_watch_handle()).
sl@0
    71
                                 */
sl@0
    72
} DBusWatchFlags;
sl@0
    73
sl@0
    74
/**
sl@0
    75
 * Indicates the status of incoming data on a #DBusConnection. This determines whether
sl@0
    76
 * dbus_connection_dispatch() needs to be called.
sl@0
    77
 */
sl@0
    78
typedef enum
sl@0
    79
{
sl@0
    80
  DBUS_DISPATCH_DATA_REMAINS,  /**< There is more data to potentially convert to messages. */
sl@0
    81
  DBUS_DISPATCH_COMPLETE,      /**< All currently available data has been processed. */
sl@0
    82
  DBUS_DISPATCH_NEED_MEMORY    /**< More memory is needed to continue. */
sl@0
    83
} DBusDispatchStatus;
sl@0
    84
sl@0
    85
/** Called when libdbus needs a new watch to be monitored by the main
sl@0
    86
 * loop. Returns #FALSE if it lacks enough memory to add the
sl@0
    87
 * watch. Set by dbus_connection_set_watch_functions() or
sl@0
    88
 * dbus_server_set_watch_functions().
sl@0
    89
 */
sl@0
    90
typedef dbus_bool_t (* DBusAddWatchFunction)       (DBusWatch      *watch,
sl@0
    91
                                                    void           *data);
sl@0
    92
/** Called when dbus_watch_get_enabled() may return a different value
sl@0
    93
 *  than it did before.  Set by dbus_connection_set_watch_functions()
sl@0
    94
 *  or dbus_server_set_watch_functions().
sl@0
    95
 */
sl@0
    96
typedef void        (* DBusWatchToggledFunction)   (DBusWatch      *watch,
sl@0
    97
                                                    void           *data);
sl@0
    98
/** Called when libdbus no longer needs a watch to be monitored by the
sl@0
    99
 * main loop. Set by dbus_connection_set_watch_functions() or
sl@0
   100
 * dbus_server_set_watch_functions().
sl@0
   101
 */
sl@0
   102
typedef void        (* DBusRemoveWatchFunction)    (DBusWatch      *watch,
sl@0
   103
                                                    void           *data);
sl@0
   104
/** Called when libdbus needs a new timeout to be monitored by the main
sl@0
   105
 * loop. Returns #FALSE if it lacks enough memory to add the
sl@0
   106
 * watch. Set by dbus_connection_set_timeout_functions() or
sl@0
   107
 * dbus_server_set_timeout_functions().
sl@0
   108
 */
sl@0
   109
typedef dbus_bool_t (* DBusAddTimeoutFunction)     (DBusTimeout    *timeout,
sl@0
   110
                                                    void           *data);
sl@0
   111
/** Called when dbus_timeout_get_enabled() may return a different
sl@0
   112
 * value than it did before.
sl@0
   113
 * Set by dbus_connection_set_timeout_functions() or
sl@0
   114
 * dbus_server_set_timeout_functions().
sl@0
   115
 */
sl@0
   116
typedef void        (* DBusTimeoutToggledFunction) (DBusTimeout    *timeout,
sl@0
   117
                                                    void           *data);
sl@0
   118
/** Called when libdbus no longer needs a timeout to be monitored by the
sl@0
   119
 * main loop. Set by dbus_connection_set_timeout_functions() or
sl@0
   120
 * dbus_server_set_timeout_functions().
sl@0
   121
 */
sl@0
   122
typedef void        (* DBusRemoveTimeoutFunction)  (DBusTimeout    *timeout,
sl@0
   123
                                                    void           *data);
sl@0
   124
/** Called when the return value of dbus_connection_get_dispatch_status()
sl@0
   125
 * may have changed. Set with dbus_connection_set_dispatch_status_function().
sl@0
   126
 */
sl@0
   127
typedef void        (* DBusDispatchStatusFunction) (DBusConnection *connection,
sl@0
   128
                                                    DBusDispatchStatus new_status,
sl@0
   129
                                                    void           *data);
sl@0
   130
/**
sl@0
   131
 * Called when the main loop's thread should be notified that there's now work
sl@0
   132
 * to do. Set with dbus_connection_set_wakeup_main_function().
sl@0
   133
 */
sl@0
   134
typedef void        (* DBusWakeupMainFunction)     (void           *data);
sl@0
   135
/**
sl@0
   136
 * Called during authentication on UNIX systems to check whether the given
sl@0
   137
 * user ID is allowed to connect. Never called on Windows. Set with
sl@0
   138
 * dbus_connection_set_unix_user_function().
sl@0
   139
 */ 
sl@0
   140
typedef dbus_bool_t (* DBusAllowUnixUserFunction)  (DBusConnection *connection,
sl@0
   141
                                                    unsigned long   uid,
sl@0
   142
                                                    void           *data);
sl@0
   143
/**
sl@0
   144
 * Called when a pending call now has a reply available. Set with
sl@0
   145
 * dbus_pending_call_set_notify().
sl@0
   146
 */
sl@0
   147
typedef void (* DBusPendingCallNotifyFunction) (DBusPendingCall *pending,
sl@0
   148
                                                void            *user_data);
sl@0
   149
sl@0
   150
/**
sl@0
   151
 * Called when a message needs to be handled. The result indicates whether or
sl@0
   152
 * not more handlers should be run. Set with dbus_connection_add_filter().
sl@0
   153
 */
sl@0
   154
typedef DBusHandlerResult (* DBusHandleMessageFunction) (DBusConnection     *connection,
sl@0
   155
                                                         DBusMessage        *message,
sl@0
   156
                                                         void               *user_data);
sl@0
   157
sl@0
   158
#ifdef __SYMBIAN32__
sl@0
   159
IMPORT_C
sl@0
   160
#endif
sl@0
   161
DBusConnection*    dbus_connection_open                         (const char                 *address,
sl@0
   162
                                                                 DBusError                  *error);
sl@0
   163
#ifdef __SYMBIAN32__
sl@0
   164
IMPORT_C
sl@0
   165
#endif
sl@0
   166
DBusConnection*    dbus_connection_open_private                 (const char                 *address,
sl@0
   167
                                                                 DBusError                  *error);
sl@0
   168
#ifdef __SYMBIAN32__
sl@0
   169
IMPORT_C
sl@0
   170
#endif
sl@0
   171
DBusConnection*    dbus_connection_ref                          (DBusConnection             *connection);
sl@0
   172
#ifdef __SYMBIAN32__
sl@0
   173
IMPORT_C
sl@0
   174
#endif
sl@0
   175
void               dbus_connection_unref                        (DBusConnection             *connection);
sl@0
   176
#ifdef __SYMBIAN32__
sl@0
   177
IMPORT_C
sl@0
   178
#endif
sl@0
   179
void               dbus_connection_close                        (DBusConnection             *connection);
sl@0
   180
#ifdef __SYMBIAN32__
sl@0
   181
IMPORT_C
sl@0
   182
#endif
sl@0
   183
dbus_bool_t        dbus_connection_get_is_connected             (DBusConnection             *connection);
sl@0
   184
#ifdef __SYMBIAN32__
sl@0
   185
IMPORT_C
sl@0
   186
#endif
sl@0
   187
dbus_bool_t        dbus_connection_get_is_authenticated         (DBusConnection             *connection);
sl@0
   188
#ifdef __SYMBIAN32__
sl@0
   189
IMPORT_C
sl@0
   190
#endif
sl@0
   191
void               dbus_connection_set_exit_on_disconnect       (DBusConnection             *connection,
sl@0
   192
                                                                 dbus_bool_t                 exit_on_disconnect);
sl@0
   193
#ifdef __SYMBIAN32__
sl@0
   194
IMPORT_C
sl@0
   195
#endif
sl@0
   196
void               dbus_connection_flush                        (DBusConnection             *connection);
sl@0
   197
#ifdef __SYMBIAN32__
sl@0
   198
IMPORT_C
sl@0
   199
#endif
sl@0
   200
dbus_bool_t        dbus_connection_read_write_dispatch          (DBusConnection             *connection,
sl@0
   201
                                                                 int                         timeout_milliseconds);
sl@0
   202
#ifdef __SYMBIAN32__
sl@0
   203
IMPORT_C
sl@0
   204
#endif
sl@0
   205
dbus_bool_t        dbus_connection_read_write                   (DBusConnection             *connection,
sl@0
   206
                                                                 int                         timeout_milliseconds);
sl@0
   207
#ifdef __SYMBIAN32__
sl@0
   208
IMPORT_C
sl@0
   209
#endif
sl@0
   210
DBusMessage*       dbus_connection_borrow_message               (DBusConnection             *connection);
sl@0
   211
#ifdef __SYMBIAN32__
sl@0
   212
IMPORT_C
sl@0
   213
#endif
sl@0
   214
void               dbus_connection_return_message               (DBusConnection             *connection,
sl@0
   215
                                                                 DBusMessage                *message);
sl@0
   216
#ifdef __SYMBIAN32__
sl@0
   217
IMPORT_C
sl@0
   218
#endif
sl@0
   219
void               dbus_connection_steal_borrowed_message       (DBusConnection             *connection,
sl@0
   220
                                                                 DBusMessage                *message);
sl@0
   221
#ifdef __SYMBIAN32__
sl@0
   222
IMPORT_C
sl@0
   223
#endif
sl@0
   224
DBusMessage*       dbus_connection_pop_message                  (DBusConnection             *connection);
sl@0
   225
#ifdef __SYMBIAN32__
sl@0
   226
IMPORT_C
sl@0
   227
#endif
sl@0
   228
DBusDispatchStatus dbus_connection_get_dispatch_status          (DBusConnection             *connection);
sl@0
   229
#ifdef __SYMBIAN32__
sl@0
   230
IMPORT_C
sl@0
   231
#endif
sl@0
   232
DBusDispatchStatus dbus_connection_dispatch                     (DBusConnection             *connection);
sl@0
   233
#ifdef __SYMBIAN32__
sl@0
   234
IMPORT_C
sl@0
   235
#endif
sl@0
   236
dbus_bool_t        dbus_connection_has_messages_to_send         (DBusConnection *connection);
sl@0
   237
#ifdef __SYMBIAN32__
sl@0
   238
IMPORT_C
sl@0
   239
#endif
sl@0
   240
dbus_bool_t        dbus_connection_send                         (DBusConnection             *connection,
sl@0
   241
                                                                 DBusMessage                *message,
sl@0
   242
                                                                 dbus_uint32_t              *client_serial);
sl@0
   243
#ifdef __SYMBIAN32__
sl@0
   244
IMPORT_C
sl@0
   245
#endif
sl@0
   246
dbus_bool_t        dbus_connection_send_with_reply              (DBusConnection             *connection,
sl@0
   247
                                                                 DBusMessage                *message,
sl@0
   248
                                                                 DBusPendingCall           **pending_return,
sl@0
   249
                                                                 int                         timeout_milliseconds);
sl@0
   250
#ifdef __SYMBIAN32__
sl@0
   251
IMPORT_C
sl@0
   252
#endif
sl@0
   253
DBusMessage *      dbus_connection_send_with_reply_and_block    (DBusConnection             *connection,
sl@0
   254
                                                                 DBusMessage                *message,
sl@0
   255
                                                                 int                         timeout_milliseconds,
sl@0
   256
                                                                 DBusError                  *error);
sl@0
   257
#ifdef __SYMBIAN32__
sl@0
   258
IMPORT_C
sl@0
   259
#endif
sl@0
   260
dbus_bool_t        dbus_connection_set_watch_functions          (DBusConnection             *connection,
sl@0
   261
                                                                 DBusAddWatchFunction        add_function,
sl@0
   262
                                                                 DBusRemoveWatchFunction     remove_function,
sl@0
   263
                                                                 DBusWatchToggledFunction    toggled_function,
sl@0
   264
                                                                 void                       *data,
sl@0
   265
                                                                 DBusFreeFunction            free_data_function);
sl@0
   266
#ifdef __SYMBIAN32__
sl@0
   267
IMPORT_C
sl@0
   268
#endif
sl@0
   269
dbus_bool_t        dbus_connection_set_timeout_functions        (DBusConnection             *connection,
sl@0
   270
                                                                 DBusAddTimeoutFunction      add_function,
sl@0
   271
                                                                 DBusRemoveTimeoutFunction   remove_function,
sl@0
   272
                                                                 DBusTimeoutToggledFunction  toggled_function,
sl@0
   273
                                                                 void                       *data,
sl@0
   274
                                                                 DBusFreeFunction            free_data_function);
sl@0
   275
#ifdef __SYMBIAN32__
sl@0
   276
IMPORT_C
sl@0
   277
#endif
sl@0
   278
void               dbus_connection_set_wakeup_main_function     (DBusConnection             *connection,
sl@0
   279
                                                                 DBusWakeupMainFunction      wakeup_main_function,
sl@0
   280
                                                                 void                       *data,
sl@0
   281
                                                                 DBusFreeFunction            free_data_function);
sl@0
   282
#ifdef __SYMBIAN32__
sl@0
   283
IMPORT_C
sl@0
   284
#endif
sl@0
   285
void               dbus_connection_set_dispatch_status_function (DBusConnection             *connection,
sl@0
   286
                                                                 DBusDispatchStatusFunction  function,
sl@0
   287
                                                                 void                       *data,
sl@0
   288
                                                                 DBusFreeFunction            free_data_function);
sl@0
   289
#ifdef __SYMBIAN32__
sl@0
   290
IMPORT_C
sl@0
   291
#endif
sl@0
   292
dbus_bool_t        dbus_connection_get_unix_user                (DBusConnection             *connection,
sl@0
   293
                                                                 unsigned long              *uid);
sl@0
   294
#ifdef __SYMBIAN32__
sl@0
   295
IMPORT_C
sl@0
   296
#endif
sl@0
   297
dbus_bool_t        dbus_connection_get_unix_process_id          (DBusConnection             *connection,
sl@0
   298
                                                                 unsigned long              *pid);
sl@0
   299
#ifdef __SYMBIAN32__
sl@0
   300
IMPORT_C
sl@0
   301
#endif
sl@0
   302
void               dbus_connection_set_unix_user_function       (DBusConnection             *connection,
sl@0
   303
                                                                 DBusAllowUnixUserFunction   function,
sl@0
   304
                                                                 void                       *data,
sl@0
   305
                                                                 DBusFreeFunction            free_data_function);
sl@0
   306
#ifdef __SYMBIAN32__
sl@0
   307
IMPORT_C
sl@0
   308
#endif
sl@0
   309
void               dbus_connection_set_route_peer_messages      (DBusConnection             *connection,
sl@0
   310
                                                                 dbus_bool_t                 value);
sl@0
   311
sl@0
   312
sl@0
   313
/* Filters */
sl@0
   314
sl@0
   315
#ifdef __SYMBIAN32__
sl@0
   316
IMPORT_C
sl@0
   317
#endif
sl@0
   318
dbus_bool_t dbus_connection_add_filter    (DBusConnection            *connection,
sl@0
   319
                                           DBusHandleMessageFunction  function,
sl@0
   320
                                           void                      *user_data,
sl@0
   321
                                           DBusFreeFunction           free_data_function);
sl@0
   322
#ifdef __SYMBIAN32__
sl@0
   323
IMPORT_C
sl@0
   324
#endif
sl@0
   325
void        dbus_connection_remove_filter (DBusConnection            *connection,
sl@0
   326
                                           DBusHandleMessageFunction  function,
sl@0
   327
                                           void                      *user_data);
sl@0
   328
sl@0
   329
sl@0
   330
/* Other */
sl@0
   331
#ifdef __SYMBIAN32__
sl@0
   332
IMPORT_C
sl@0
   333
#endif
sl@0
   334
dbus_bool_t dbus_connection_allocate_data_slot (dbus_int32_t     *slot_p);
sl@0
   335
#ifdef __SYMBIAN32__
sl@0
   336
IMPORT_C
sl@0
   337
#endif
sl@0
   338
void        dbus_connection_free_data_slot     (dbus_int32_t     *slot_p);
sl@0
   339
#ifdef __SYMBIAN32__
sl@0
   340
IMPORT_C
sl@0
   341
#endif
sl@0
   342
dbus_bool_t dbus_connection_set_data           (DBusConnection   *connection,
sl@0
   343
                                                dbus_int32_t      slot,
sl@0
   344
                                                void             *data,
sl@0
   345
                                                DBusFreeFunction  free_data_func);
sl@0
   346
#ifdef __SYMBIAN32__
sl@0
   347
IMPORT_C
sl@0
   348
#endif
sl@0
   349
void*       dbus_connection_get_data           (DBusConnection   *connection,
sl@0
   350
                                                dbus_int32_t      slot);
sl@0
   351
sl@0
   352
#ifdef __SYMBIAN32__
sl@0
   353
IMPORT_C
sl@0
   354
#endif
sl@0
   355
void        dbus_connection_set_change_sigpipe (dbus_bool_t       will_modify_sigpipe); 
sl@0
   356
sl@0
   357
#ifdef __SYMBIAN32__
sl@0
   358
IMPORT_C
sl@0
   359
#endif
sl@0
   360
void dbus_connection_set_max_message_size  (DBusConnection *connection,
sl@0
   361
                                            long            size);
sl@0
   362
#ifdef __SYMBIAN32__
sl@0
   363
IMPORT_C
sl@0
   364
#endif
sl@0
   365
long dbus_connection_get_max_message_size  (DBusConnection *connection);
sl@0
   366
#ifdef __SYMBIAN32__
sl@0
   367
IMPORT_C
sl@0
   368
#endif
sl@0
   369
void dbus_connection_set_max_received_size (DBusConnection *connection,
sl@0
   370
                                            long            size);
sl@0
   371
#ifdef __SYMBIAN32__
sl@0
   372
IMPORT_C
sl@0
   373
#endif
sl@0
   374
long dbus_connection_get_max_received_size (DBusConnection *connection);
sl@0
   375
#ifdef __SYMBIAN32__
sl@0
   376
IMPORT_C
sl@0
   377
#endif
sl@0
   378
long dbus_connection_get_outgoing_size     (DBusConnection *connection);
sl@0
   379
sl@0
   380
#ifdef __SYMBIAN32__
sl@0
   381
IMPORT_C
sl@0
   382
#endif
sl@0
   383
DBusPreallocatedSend* dbus_connection_preallocate_send       (DBusConnection       *connection);
sl@0
   384
#ifdef __SYMBIAN32__
sl@0
   385
IMPORT_C
sl@0
   386
#endif
sl@0
   387
void                  dbus_connection_free_preallocated_send (DBusConnection       *connection,
sl@0
   388
                                                              DBusPreallocatedSend *preallocated);
sl@0
   389
#ifdef __SYMBIAN32__
sl@0
   390
IMPORT_C
sl@0
   391
#endif
sl@0
   392
void                  dbus_connection_send_preallocated      (DBusConnection       *connection,
sl@0
   393
                                                              DBusPreallocatedSend *preallocated,
sl@0
   394
                                                              DBusMessage          *message,
sl@0
   395
                                                              dbus_uint32_t        *client_serial);
sl@0
   396
sl@0
   397
sl@0
   398
/* Object tree functionality */
sl@0
   399
sl@0
   400
/**
sl@0
   401
 * Called when a #DBusObjectPathVTable is unregistered (or its connection is freed).
sl@0
   402
 * Found in #DBusObjectPathVTable.
sl@0
   403
 */
sl@0
   404
typedef void              (* DBusObjectPathUnregisterFunction) (DBusConnection  *connection,
sl@0
   405
                                                                void            *user_data);
sl@0
   406
/**
sl@0
   407
 * Called when a message is sent to a registered object path. Found in
sl@0
   408
 * #DBusObjectPathVTable which is registered with dbus_connection_register_object_path()
sl@0
   409
 * or dbus_connection_register_fallback().
sl@0
   410
 */
sl@0
   411
typedef DBusHandlerResult (* DBusObjectPathMessageFunction)    (DBusConnection  *connection,
sl@0
   412
                                                                DBusMessage     *message,
sl@0
   413
                                                                void            *user_data);
sl@0
   414
sl@0
   415
/**
sl@0
   416
 * Virtual table that must be implemented to handle a portion of the
sl@0
   417
 * object path hierarchy. Attach the vtable to a particular path using
sl@0
   418
 * dbus_connection_register_object_path() or
sl@0
   419
 * dbus_connection_register_fallback().
sl@0
   420
 */
sl@0
   421
struct DBusObjectPathVTable
sl@0
   422
{
sl@0
   423
  DBusObjectPathUnregisterFunction   unregister_function; /**< Function to unregister this handler */
sl@0
   424
  DBusObjectPathMessageFunction      message_function; /**< Function to handle messages */
sl@0
   425
  
sl@0
   426
  void (* dbus_internal_pad1) (void *); /**< Reserved for future expansion */
sl@0
   427
  void (* dbus_internal_pad2) (void *); /**< Reserved for future expansion */
sl@0
   428
  void (* dbus_internal_pad3) (void *); /**< Reserved for future expansion */
sl@0
   429
  void (* dbus_internal_pad4) (void *); /**< Reserved for future expansion */
sl@0
   430
};
sl@0
   431
sl@0
   432
#ifdef __SYMBIAN32__
sl@0
   433
IMPORT_C
sl@0
   434
#endif
sl@0
   435
dbus_bool_t dbus_connection_register_object_path   (DBusConnection              *connection,
sl@0
   436
                                                    const char                  *path,
sl@0
   437
                                                    const DBusObjectPathVTable  *vtable,
sl@0
   438
                                                    void                        *user_data);
sl@0
   439
#ifdef __SYMBIAN32__
sl@0
   440
IMPORT_C
sl@0
   441
#endif
sl@0
   442
dbus_bool_t dbus_connection_register_fallback      (DBusConnection              *connection,
sl@0
   443
                                                    const char                  *path,
sl@0
   444
                                                    const DBusObjectPathVTable  *vtable,
sl@0
   445
                                                    void                        *user_data);
sl@0
   446
#ifdef __SYMBIAN32__
sl@0
   447
IMPORT_C
sl@0
   448
#endif
sl@0
   449
dbus_bool_t dbus_connection_unregister_object_path (DBusConnection              *connection,
sl@0
   450
                                                    const char                  *path);
sl@0
   451
sl@0
   452
#ifdef __SYMBIAN32__
sl@0
   453
IMPORT_C
sl@0
   454
#endif
sl@0
   455
dbus_bool_t dbus_connection_get_object_path_data   (DBusConnection              *connection,
sl@0
   456
                                                    const char                  *path,
sl@0
   457
                                                    void                       **data_p);
sl@0
   458
sl@0
   459
#ifdef __SYMBIAN32__
sl@0
   460
IMPORT_C
sl@0
   461
#endif
sl@0
   462
dbus_bool_t dbus_connection_list_registered        (DBusConnection              *connection,
sl@0
   463
                                                    const char                  *parent_path,
sl@0
   464
                                                    char                      ***child_entries);
sl@0
   465
sl@0
   466
#ifdef __SYMBIAN32__
sl@0
   467
IMPORT_C
sl@0
   468
#endif
sl@0
   469
dbus_bool_t dbus_connection_get_unix_fd            (DBusConnection              *connection,
sl@0
   470
                                                    int                         *fd);
sl@0
   471
#ifdef __SYMBIAN32__
sl@0
   472
IMPORT_C
sl@0
   473
#endif
sl@0
   474
dbus_bool_t dbus_connection_get_socket             (DBusConnection              *connection,
sl@0
   475
                                                    int                         *fd);
sl@0
   476
sl@0
   477
/** @} */
sl@0
   478
sl@0
   479
sl@0
   480
/**
sl@0
   481
 * @addtogroup DBusWatch
sl@0
   482
 * @{
sl@0
   483
 */
sl@0
   484
sl@0
   485
#ifdef __SYMBIAN32__
sl@0
   486
IMPORT_C
sl@0
   487
#endif
sl@0
   488
int          dbus_watch_get_fd      (DBusWatch        *watch);
sl@0
   489
#ifdef __SYMBIAN32__
sl@0
   490
IMPORT_C
sl@0
   491
#endif
sl@0
   492
unsigned int dbus_watch_get_flags   (DBusWatch        *watch);
sl@0
   493
#ifdef __SYMBIAN32__
sl@0
   494
IMPORT_C
sl@0
   495
#endif
sl@0
   496
void*        dbus_watch_get_data    (DBusWatch        *watch);
sl@0
   497
#ifdef __SYMBIAN32__
sl@0
   498
IMPORT_C
sl@0
   499
#endif
sl@0
   500
void         dbus_watch_set_data    (DBusWatch        *watch,
sl@0
   501
                                     void             *data,
sl@0
   502
                                     DBusFreeFunction  free_data_function);
sl@0
   503
#ifdef __SYMBIAN32__
sl@0
   504
IMPORT_C
sl@0
   505
#endif
sl@0
   506
dbus_bool_t  dbus_watch_handle      (DBusWatch        *watch,
sl@0
   507
                                     unsigned int      flags);
sl@0
   508
#ifdef __SYMBIAN32__
sl@0
   509
IMPORT_C
sl@0
   510
#endif
sl@0
   511
dbus_bool_t  dbus_watch_get_enabled (DBusWatch        *watch);
sl@0
   512
sl@0
   513
/** @} */
sl@0
   514
sl@0
   515
/**
sl@0
   516
 * @addtogroup DBusTimeout
sl@0
   517
 * @{
sl@0
   518
 */
sl@0
   519
sl@0
   520
#ifdef __SYMBIAN32__
sl@0
   521
IMPORT_C
sl@0
   522
#endif
sl@0
   523
int         dbus_timeout_get_interval (DBusTimeout      *timeout);
sl@0
   524
#ifdef __SYMBIAN32__
sl@0
   525
IMPORT_C
sl@0
   526
#endif
sl@0
   527
void*       dbus_timeout_get_data     (DBusTimeout      *timeout);
sl@0
   528
#ifdef __SYMBIAN32__
sl@0
   529
IMPORT_C
sl@0
   530
#endif
sl@0
   531
void        dbus_timeout_set_data     (DBusTimeout      *timeout,
sl@0
   532
                                       void             *data,
sl@0
   533
                                       DBusFreeFunction  free_data_function);
sl@0
   534
#ifdef __SYMBIAN32__
sl@0
   535
IMPORT_C
sl@0
   536
#endif
sl@0
   537
dbus_bool_t dbus_timeout_handle       (DBusTimeout      *timeout);
sl@0
   538
#ifdef __SYMBIAN32__
sl@0
   539
IMPORT_C
sl@0
   540
#endif
sl@0
   541
dbus_bool_t dbus_timeout_get_enabled  (DBusTimeout      *timeout);
sl@0
   542
sl@0
   543
/** @} */
sl@0
   544
sl@0
   545
DBUS_END_DECLS
sl@0
   546
sl@0
   547
#endif /* DBUS_CONNECTION_H */