os/ossrv/ossrv_pub/dbus/inc/dbus-connection.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/dbus/inc/dbus-connection.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,547 @@
     1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
     1.5 +/* dbus-connection.h DBusConnection object
     1.6 + *
     1.7 + * Copyright (C) 2002, 2003  Red Hat Inc.
     1.8 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.9 + * Licensed under the Academic Free License version 2.1
    1.10 + * 
    1.11 + * This program is free software; you can redistribute it and/or modify
    1.12 + * it under the terms of the GNU General Public License as published by
    1.13 + * the Free Software Foundation; either version 2 of the License, or
    1.14 + * (at your option) any later version.
    1.15 + *
    1.16 + * This program is distributed in the hope that it will be useful,
    1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.19 + * GNU General Public License for more details.
    1.20 + * 
    1.21 + * You should have received a copy of the GNU General Public License
    1.22 + * along with this program; if not, write to the Free Software
    1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.24 + *
    1.25 + */
    1.26 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
    1.27 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
    1.28 +#endif
    1.29 +
    1.30 +#ifndef DBUS_CONNECTION_H
    1.31 +#define DBUS_CONNECTION_H
    1.32 +
    1.33 +#include <dbus/dbus-errors.h>
    1.34 +#include <dbus/dbus-memory.h>
    1.35 +#include <dbus/dbus-message.h>
    1.36 +#include <dbus/dbus-shared.h>
    1.37 +
    1.38 +DBUS_BEGIN_DECLS
    1.39 +
    1.40 +/**
    1.41 + * @addtogroup DBusConnection
    1.42 + * @{
    1.43 + */
    1.44 +
    1.45 +/* documented in dbus-watch.c */
    1.46 +typedef struct DBusWatch DBusWatch;
    1.47 +/* documented in dbus-timeout.c */
    1.48 +typedef struct DBusTimeout DBusTimeout;
    1.49 +/** Opaque type representing preallocated resources so a message can be sent without further memory allocation. */
    1.50 +typedef struct DBusPreallocatedSend DBusPreallocatedSend;
    1.51 +/** Opaque type representing a method call that has not yet received a reply. */
    1.52 +typedef struct DBusPendingCall DBusPendingCall;
    1.53 +/** Opaque type representing a connection to a remote application and associated incoming/outgoing message queues. */
    1.54 +typedef struct DBusConnection DBusConnection;
    1.55 +/** Set of functions that must be implemented to handle messages sent to a particular object path. */
    1.56 +typedef struct DBusObjectPathVTable DBusObjectPathVTable;
    1.57 +
    1.58 +/**
    1.59 + * Indicates the status of a #DBusWatch.
    1.60 + */
    1.61 +typedef enum
    1.62 +{
    1.63 +  DBUS_WATCH_READABLE = 1 << 0, /**< As in POLLIN */
    1.64 +  DBUS_WATCH_WRITABLE = 1 << 1, /**< As in POLLOUT */
    1.65 +  DBUS_WATCH_ERROR    = 1 << 2, /**< As in POLLERR (can't watch for
    1.66 +                                 *   this, but can be present in
    1.67 +                                 *   current state passed to
    1.68 +                                 *   dbus_watch_handle()).
    1.69 +                                 */
    1.70 +  DBUS_WATCH_HANGUP   = 1 << 3  /**< As in POLLHUP (can't watch for
    1.71 +                                 *   it, but can be present in current
    1.72 +                                 *   state passed to
    1.73 +                                 *   dbus_watch_handle()).
    1.74 +                                 */
    1.75 +} DBusWatchFlags;
    1.76 +
    1.77 +/**
    1.78 + * Indicates the status of incoming data on a #DBusConnection. This determines whether
    1.79 + * dbus_connection_dispatch() needs to be called.
    1.80 + */
    1.81 +typedef enum
    1.82 +{
    1.83 +  DBUS_DISPATCH_DATA_REMAINS,  /**< There is more data to potentially convert to messages. */
    1.84 +  DBUS_DISPATCH_COMPLETE,      /**< All currently available data has been processed. */
    1.85 +  DBUS_DISPATCH_NEED_MEMORY    /**< More memory is needed to continue. */
    1.86 +} DBusDispatchStatus;
    1.87 +
    1.88 +/** Called when libdbus needs a new watch to be monitored by the main
    1.89 + * loop. Returns #FALSE if it lacks enough memory to add the
    1.90 + * watch. Set by dbus_connection_set_watch_functions() or
    1.91 + * dbus_server_set_watch_functions().
    1.92 + */
    1.93 +typedef dbus_bool_t (* DBusAddWatchFunction)       (DBusWatch      *watch,
    1.94 +                                                    void           *data);
    1.95 +/** Called when dbus_watch_get_enabled() may return a different value
    1.96 + *  than it did before.  Set by dbus_connection_set_watch_functions()
    1.97 + *  or dbus_server_set_watch_functions().
    1.98 + */
    1.99 +typedef void        (* DBusWatchToggledFunction)   (DBusWatch      *watch,
   1.100 +                                                    void           *data);
   1.101 +/** Called when libdbus no longer needs a watch to be monitored by the
   1.102 + * main loop. Set by dbus_connection_set_watch_functions() or
   1.103 + * dbus_server_set_watch_functions().
   1.104 + */
   1.105 +typedef void        (* DBusRemoveWatchFunction)    (DBusWatch      *watch,
   1.106 +                                                    void           *data);
   1.107 +/** Called when libdbus needs a new timeout to be monitored by the main
   1.108 + * loop. Returns #FALSE if it lacks enough memory to add the
   1.109 + * watch. Set by dbus_connection_set_timeout_functions() or
   1.110 + * dbus_server_set_timeout_functions().
   1.111 + */
   1.112 +typedef dbus_bool_t (* DBusAddTimeoutFunction)     (DBusTimeout    *timeout,
   1.113 +                                                    void           *data);
   1.114 +/** Called when dbus_timeout_get_enabled() may return a different
   1.115 + * value than it did before.
   1.116 + * Set by dbus_connection_set_timeout_functions() or
   1.117 + * dbus_server_set_timeout_functions().
   1.118 + */
   1.119 +typedef void        (* DBusTimeoutToggledFunction) (DBusTimeout    *timeout,
   1.120 +                                                    void           *data);
   1.121 +/** Called when libdbus no longer needs a timeout to be monitored by the
   1.122 + * main loop. Set by dbus_connection_set_timeout_functions() or
   1.123 + * dbus_server_set_timeout_functions().
   1.124 + */
   1.125 +typedef void        (* DBusRemoveTimeoutFunction)  (DBusTimeout    *timeout,
   1.126 +                                                    void           *data);
   1.127 +/** Called when the return value of dbus_connection_get_dispatch_status()
   1.128 + * may have changed. Set with dbus_connection_set_dispatch_status_function().
   1.129 + */
   1.130 +typedef void        (* DBusDispatchStatusFunction) (DBusConnection *connection,
   1.131 +                                                    DBusDispatchStatus new_status,
   1.132 +                                                    void           *data);
   1.133 +/**
   1.134 + * Called when the main loop's thread should be notified that there's now work
   1.135 + * to do. Set with dbus_connection_set_wakeup_main_function().
   1.136 + */
   1.137 +typedef void        (* DBusWakeupMainFunction)     (void           *data);
   1.138 +/**
   1.139 + * Called during authentication on UNIX systems to check whether the given
   1.140 + * user ID is allowed to connect. Never called on Windows. Set with
   1.141 + * dbus_connection_set_unix_user_function().
   1.142 + */ 
   1.143 +typedef dbus_bool_t (* DBusAllowUnixUserFunction)  (DBusConnection *connection,
   1.144 +                                                    unsigned long   uid,
   1.145 +                                                    void           *data);
   1.146 +/**
   1.147 + * Called when a pending call now has a reply available. Set with
   1.148 + * dbus_pending_call_set_notify().
   1.149 + */
   1.150 +typedef void (* DBusPendingCallNotifyFunction) (DBusPendingCall *pending,
   1.151 +                                                void            *user_data);
   1.152 +
   1.153 +/**
   1.154 + * Called when a message needs to be handled. The result indicates whether or
   1.155 + * not more handlers should be run. Set with dbus_connection_add_filter().
   1.156 + */
   1.157 +typedef DBusHandlerResult (* DBusHandleMessageFunction) (DBusConnection     *connection,
   1.158 +                                                         DBusMessage        *message,
   1.159 +                                                         void               *user_data);
   1.160 +
   1.161 +#ifdef __SYMBIAN32__
   1.162 +IMPORT_C
   1.163 +#endif
   1.164 +DBusConnection*    dbus_connection_open                         (const char                 *address,
   1.165 +                                                                 DBusError                  *error);
   1.166 +#ifdef __SYMBIAN32__
   1.167 +IMPORT_C
   1.168 +#endif
   1.169 +DBusConnection*    dbus_connection_open_private                 (const char                 *address,
   1.170 +                                                                 DBusError                  *error);
   1.171 +#ifdef __SYMBIAN32__
   1.172 +IMPORT_C
   1.173 +#endif
   1.174 +DBusConnection*    dbus_connection_ref                          (DBusConnection             *connection);
   1.175 +#ifdef __SYMBIAN32__
   1.176 +IMPORT_C
   1.177 +#endif
   1.178 +void               dbus_connection_unref                        (DBusConnection             *connection);
   1.179 +#ifdef __SYMBIAN32__
   1.180 +IMPORT_C
   1.181 +#endif
   1.182 +void               dbus_connection_close                        (DBusConnection             *connection);
   1.183 +#ifdef __SYMBIAN32__
   1.184 +IMPORT_C
   1.185 +#endif
   1.186 +dbus_bool_t        dbus_connection_get_is_connected             (DBusConnection             *connection);
   1.187 +#ifdef __SYMBIAN32__
   1.188 +IMPORT_C
   1.189 +#endif
   1.190 +dbus_bool_t        dbus_connection_get_is_authenticated         (DBusConnection             *connection);
   1.191 +#ifdef __SYMBIAN32__
   1.192 +IMPORT_C
   1.193 +#endif
   1.194 +void               dbus_connection_set_exit_on_disconnect       (DBusConnection             *connection,
   1.195 +                                                                 dbus_bool_t                 exit_on_disconnect);
   1.196 +#ifdef __SYMBIAN32__
   1.197 +IMPORT_C
   1.198 +#endif
   1.199 +void               dbus_connection_flush                        (DBusConnection             *connection);
   1.200 +#ifdef __SYMBIAN32__
   1.201 +IMPORT_C
   1.202 +#endif
   1.203 +dbus_bool_t        dbus_connection_read_write_dispatch          (DBusConnection             *connection,
   1.204 +                                                                 int                         timeout_milliseconds);
   1.205 +#ifdef __SYMBIAN32__
   1.206 +IMPORT_C
   1.207 +#endif
   1.208 +dbus_bool_t        dbus_connection_read_write                   (DBusConnection             *connection,
   1.209 +                                                                 int                         timeout_milliseconds);
   1.210 +#ifdef __SYMBIAN32__
   1.211 +IMPORT_C
   1.212 +#endif
   1.213 +DBusMessage*       dbus_connection_borrow_message               (DBusConnection             *connection);
   1.214 +#ifdef __SYMBIAN32__
   1.215 +IMPORT_C
   1.216 +#endif
   1.217 +void               dbus_connection_return_message               (DBusConnection             *connection,
   1.218 +                                                                 DBusMessage                *message);
   1.219 +#ifdef __SYMBIAN32__
   1.220 +IMPORT_C
   1.221 +#endif
   1.222 +void               dbus_connection_steal_borrowed_message       (DBusConnection             *connection,
   1.223 +                                                                 DBusMessage                *message);
   1.224 +#ifdef __SYMBIAN32__
   1.225 +IMPORT_C
   1.226 +#endif
   1.227 +DBusMessage*       dbus_connection_pop_message                  (DBusConnection             *connection);
   1.228 +#ifdef __SYMBIAN32__
   1.229 +IMPORT_C
   1.230 +#endif
   1.231 +DBusDispatchStatus dbus_connection_get_dispatch_status          (DBusConnection             *connection);
   1.232 +#ifdef __SYMBIAN32__
   1.233 +IMPORT_C
   1.234 +#endif
   1.235 +DBusDispatchStatus dbus_connection_dispatch                     (DBusConnection             *connection);
   1.236 +#ifdef __SYMBIAN32__
   1.237 +IMPORT_C
   1.238 +#endif
   1.239 +dbus_bool_t        dbus_connection_has_messages_to_send         (DBusConnection *connection);
   1.240 +#ifdef __SYMBIAN32__
   1.241 +IMPORT_C
   1.242 +#endif
   1.243 +dbus_bool_t        dbus_connection_send                         (DBusConnection             *connection,
   1.244 +                                                                 DBusMessage                *message,
   1.245 +                                                                 dbus_uint32_t              *client_serial);
   1.246 +#ifdef __SYMBIAN32__
   1.247 +IMPORT_C
   1.248 +#endif
   1.249 +dbus_bool_t        dbus_connection_send_with_reply              (DBusConnection             *connection,
   1.250 +                                                                 DBusMessage                *message,
   1.251 +                                                                 DBusPendingCall           **pending_return,
   1.252 +                                                                 int                         timeout_milliseconds);
   1.253 +#ifdef __SYMBIAN32__
   1.254 +IMPORT_C
   1.255 +#endif
   1.256 +DBusMessage *      dbus_connection_send_with_reply_and_block    (DBusConnection             *connection,
   1.257 +                                                                 DBusMessage                *message,
   1.258 +                                                                 int                         timeout_milliseconds,
   1.259 +                                                                 DBusError                  *error);
   1.260 +#ifdef __SYMBIAN32__
   1.261 +IMPORT_C
   1.262 +#endif
   1.263 +dbus_bool_t        dbus_connection_set_watch_functions          (DBusConnection             *connection,
   1.264 +                                                                 DBusAddWatchFunction        add_function,
   1.265 +                                                                 DBusRemoveWatchFunction     remove_function,
   1.266 +                                                                 DBusWatchToggledFunction    toggled_function,
   1.267 +                                                                 void                       *data,
   1.268 +                                                                 DBusFreeFunction            free_data_function);
   1.269 +#ifdef __SYMBIAN32__
   1.270 +IMPORT_C
   1.271 +#endif
   1.272 +dbus_bool_t        dbus_connection_set_timeout_functions        (DBusConnection             *connection,
   1.273 +                                                                 DBusAddTimeoutFunction      add_function,
   1.274 +                                                                 DBusRemoveTimeoutFunction   remove_function,
   1.275 +                                                                 DBusTimeoutToggledFunction  toggled_function,
   1.276 +                                                                 void                       *data,
   1.277 +                                                                 DBusFreeFunction            free_data_function);
   1.278 +#ifdef __SYMBIAN32__
   1.279 +IMPORT_C
   1.280 +#endif
   1.281 +void               dbus_connection_set_wakeup_main_function     (DBusConnection             *connection,
   1.282 +                                                                 DBusWakeupMainFunction      wakeup_main_function,
   1.283 +                                                                 void                       *data,
   1.284 +                                                                 DBusFreeFunction            free_data_function);
   1.285 +#ifdef __SYMBIAN32__
   1.286 +IMPORT_C
   1.287 +#endif
   1.288 +void               dbus_connection_set_dispatch_status_function (DBusConnection             *connection,
   1.289 +                                                                 DBusDispatchStatusFunction  function,
   1.290 +                                                                 void                       *data,
   1.291 +                                                                 DBusFreeFunction            free_data_function);
   1.292 +#ifdef __SYMBIAN32__
   1.293 +IMPORT_C
   1.294 +#endif
   1.295 +dbus_bool_t        dbus_connection_get_unix_user                (DBusConnection             *connection,
   1.296 +                                                                 unsigned long              *uid);
   1.297 +#ifdef __SYMBIAN32__
   1.298 +IMPORT_C
   1.299 +#endif
   1.300 +dbus_bool_t        dbus_connection_get_unix_process_id          (DBusConnection             *connection,
   1.301 +                                                                 unsigned long              *pid);
   1.302 +#ifdef __SYMBIAN32__
   1.303 +IMPORT_C
   1.304 +#endif
   1.305 +void               dbus_connection_set_unix_user_function       (DBusConnection             *connection,
   1.306 +                                                                 DBusAllowUnixUserFunction   function,
   1.307 +                                                                 void                       *data,
   1.308 +                                                                 DBusFreeFunction            free_data_function);
   1.309 +#ifdef __SYMBIAN32__
   1.310 +IMPORT_C
   1.311 +#endif
   1.312 +void               dbus_connection_set_route_peer_messages      (DBusConnection             *connection,
   1.313 +                                                                 dbus_bool_t                 value);
   1.314 +
   1.315 +
   1.316 +/* Filters */
   1.317 +
   1.318 +#ifdef __SYMBIAN32__
   1.319 +IMPORT_C
   1.320 +#endif
   1.321 +dbus_bool_t dbus_connection_add_filter    (DBusConnection            *connection,
   1.322 +                                           DBusHandleMessageFunction  function,
   1.323 +                                           void                      *user_data,
   1.324 +                                           DBusFreeFunction           free_data_function);
   1.325 +#ifdef __SYMBIAN32__
   1.326 +IMPORT_C
   1.327 +#endif
   1.328 +void        dbus_connection_remove_filter (DBusConnection            *connection,
   1.329 +                                           DBusHandleMessageFunction  function,
   1.330 +                                           void                      *user_data);
   1.331 +
   1.332 +
   1.333 +/* Other */
   1.334 +#ifdef __SYMBIAN32__
   1.335 +IMPORT_C
   1.336 +#endif
   1.337 +dbus_bool_t dbus_connection_allocate_data_slot (dbus_int32_t     *slot_p);
   1.338 +#ifdef __SYMBIAN32__
   1.339 +IMPORT_C
   1.340 +#endif
   1.341 +void        dbus_connection_free_data_slot     (dbus_int32_t     *slot_p);
   1.342 +#ifdef __SYMBIAN32__
   1.343 +IMPORT_C
   1.344 +#endif
   1.345 +dbus_bool_t dbus_connection_set_data           (DBusConnection   *connection,
   1.346 +                                                dbus_int32_t      slot,
   1.347 +                                                void             *data,
   1.348 +                                                DBusFreeFunction  free_data_func);
   1.349 +#ifdef __SYMBIAN32__
   1.350 +IMPORT_C
   1.351 +#endif
   1.352 +void*       dbus_connection_get_data           (DBusConnection   *connection,
   1.353 +                                                dbus_int32_t      slot);
   1.354 +
   1.355 +#ifdef __SYMBIAN32__
   1.356 +IMPORT_C
   1.357 +#endif
   1.358 +void        dbus_connection_set_change_sigpipe (dbus_bool_t       will_modify_sigpipe); 
   1.359 +
   1.360 +#ifdef __SYMBIAN32__
   1.361 +IMPORT_C
   1.362 +#endif
   1.363 +void dbus_connection_set_max_message_size  (DBusConnection *connection,
   1.364 +                                            long            size);
   1.365 +#ifdef __SYMBIAN32__
   1.366 +IMPORT_C
   1.367 +#endif
   1.368 +long dbus_connection_get_max_message_size  (DBusConnection *connection);
   1.369 +#ifdef __SYMBIAN32__
   1.370 +IMPORT_C
   1.371 +#endif
   1.372 +void dbus_connection_set_max_received_size (DBusConnection *connection,
   1.373 +                                            long            size);
   1.374 +#ifdef __SYMBIAN32__
   1.375 +IMPORT_C
   1.376 +#endif
   1.377 +long dbus_connection_get_max_received_size (DBusConnection *connection);
   1.378 +#ifdef __SYMBIAN32__
   1.379 +IMPORT_C
   1.380 +#endif
   1.381 +long dbus_connection_get_outgoing_size     (DBusConnection *connection);
   1.382 +
   1.383 +#ifdef __SYMBIAN32__
   1.384 +IMPORT_C
   1.385 +#endif
   1.386 +DBusPreallocatedSend* dbus_connection_preallocate_send       (DBusConnection       *connection);
   1.387 +#ifdef __SYMBIAN32__
   1.388 +IMPORT_C
   1.389 +#endif
   1.390 +void                  dbus_connection_free_preallocated_send (DBusConnection       *connection,
   1.391 +                                                              DBusPreallocatedSend *preallocated);
   1.392 +#ifdef __SYMBIAN32__
   1.393 +IMPORT_C
   1.394 +#endif
   1.395 +void                  dbus_connection_send_preallocated      (DBusConnection       *connection,
   1.396 +                                                              DBusPreallocatedSend *preallocated,
   1.397 +                                                              DBusMessage          *message,
   1.398 +                                                              dbus_uint32_t        *client_serial);
   1.399 +
   1.400 +
   1.401 +/* Object tree functionality */
   1.402 +
   1.403 +/**
   1.404 + * Called when a #DBusObjectPathVTable is unregistered (or its connection is freed).
   1.405 + * Found in #DBusObjectPathVTable.
   1.406 + */
   1.407 +typedef void              (* DBusObjectPathUnregisterFunction) (DBusConnection  *connection,
   1.408 +                                                                void            *user_data);
   1.409 +/**
   1.410 + * Called when a message is sent to a registered object path. Found in
   1.411 + * #DBusObjectPathVTable which is registered with dbus_connection_register_object_path()
   1.412 + * or dbus_connection_register_fallback().
   1.413 + */
   1.414 +typedef DBusHandlerResult (* DBusObjectPathMessageFunction)    (DBusConnection  *connection,
   1.415 +                                                                DBusMessage     *message,
   1.416 +                                                                void            *user_data);
   1.417 +
   1.418 +/**
   1.419 + * Virtual table that must be implemented to handle a portion of the
   1.420 + * object path hierarchy. Attach the vtable to a particular path using
   1.421 + * dbus_connection_register_object_path() or
   1.422 + * dbus_connection_register_fallback().
   1.423 + */
   1.424 +struct DBusObjectPathVTable
   1.425 +{
   1.426 +  DBusObjectPathUnregisterFunction   unregister_function; /**< Function to unregister this handler */
   1.427 +  DBusObjectPathMessageFunction      message_function; /**< Function to handle messages */
   1.428 +  
   1.429 +  void (* dbus_internal_pad1) (void *); /**< Reserved for future expansion */
   1.430 +  void (* dbus_internal_pad2) (void *); /**< Reserved for future expansion */
   1.431 +  void (* dbus_internal_pad3) (void *); /**< Reserved for future expansion */
   1.432 +  void (* dbus_internal_pad4) (void *); /**< Reserved for future expansion */
   1.433 +};
   1.434 +
   1.435 +#ifdef __SYMBIAN32__
   1.436 +IMPORT_C
   1.437 +#endif
   1.438 +dbus_bool_t dbus_connection_register_object_path   (DBusConnection              *connection,
   1.439 +                                                    const char                  *path,
   1.440 +                                                    const DBusObjectPathVTable  *vtable,
   1.441 +                                                    void                        *user_data);
   1.442 +#ifdef __SYMBIAN32__
   1.443 +IMPORT_C
   1.444 +#endif
   1.445 +dbus_bool_t dbus_connection_register_fallback      (DBusConnection              *connection,
   1.446 +                                                    const char                  *path,
   1.447 +                                                    const DBusObjectPathVTable  *vtable,
   1.448 +                                                    void                        *user_data);
   1.449 +#ifdef __SYMBIAN32__
   1.450 +IMPORT_C
   1.451 +#endif
   1.452 +dbus_bool_t dbus_connection_unregister_object_path (DBusConnection              *connection,
   1.453 +                                                    const char                  *path);
   1.454 +
   1.455 +#ifdef __SYMBIAN32__
   1.456 +IMPORT_C
   1.457 +#endif
   1.458 +dbus_bool_t dbus_connection_get_object_path_data   (DBusConnection              *connection,
   1.459 +                                                    const char                  *path,
   1.460 +                                                    void                       **data_p);
   1.461 +
   1.462 +#ifdef __SYMBIAN32__
   1.463 +IMPORT_C
   1.464 +#endif
   1.465 +dbus_bool_t dbus_connection_list_registered        (DBusConnection              *connection,
   1.466 +                                                    const char                  *parent_path,
   1.467 +                                                    char                      ***child_entries);
   1.468 +
   1.469 +#ifdef __SYMBIAN32__
   1.470 +IMPORT_C
   1.471 +#endif
   1.472 +dbus_bool_t dbus_connection_get_unix_fd            (DBusConnection              *connection,
   1.473 +                                                    int                         *fd);
   1.474 +#ifdef __SYMBIAN32__
   1.475 +IMPORT_C
   1.476 +#endif
   1.477 +dbus_bool_t dbus_connection_get_socket             (DBusConnection              *connection,
   1.478 +                                                    int                         *fd);
   1.479 +
   1.480 +/** @} */
   1.481 +
   1.482 +
   1.483 +/**
   1.484 + * @addtogroup DBusWatch
   1.485 + * @{
   1.486 + */
   1.487 +
   1.488 +#ifdef __SYMBIAN32__
   1.489 +IMPORT_C
   1.490 +#endif
   1.491 +int          dbus_watch_get_fd      (DBusWatch        *watch);
   1.492 +#ifdef __SYMBIAN32__
   1.493 +IMPORT_C
   1.494 +#endif
   1.495 +unsigned int dbus_watch_get_flags   (DBusWatch        *watch);
   1.496 +#ifdef __SYMBIAN32__
   1.497 +IMPORT_C
   1.498 +#endif
   1.499 +void*        dbus_watch_get_data    (DBusWatch        *watch);
   1.500 +#ifdef __SYMBIAN32__
   1.501 +IMPORT_C
   1.502 +#endif
   1.503 +void         dbus_watch_set_data    (DBusWatch        *watch,
   1.504 +                                     void             *data,
   1.505 +                                     DBusFreeFunction  free_data_function);
   1.506 +#ifdef __SYMBIAN32__
   1.507 +IMPORT_C
   1.508 +#endif
   1.509 +dbus_bool_t  dbus_watch_handle      (DBusWatch        *watch,
   1.510 +                                     unsigned int      flags);
   1.511 +#ifdef __SYMBIAN32__
   1.512 +IMPORT_C
   1.513 +#endif
   1.514 +dbus_bool_t  dbus_watch_get_enabled (DBusWatch        *watch);
   1.515 +
   1.516 +/** @} */
   1.517 +
   1.518 +/**
   1.519 + * @addtogroup DBusTimeout
   1.520 + * @{
   1.521 + */
   1.522 +
   1.523 +#ifdef __SYMBIAN32__
   1.524 +IMPORT_C
   1.525 +#endif
   1.526 +int         dbus_timeout_get_interval (DBusTimeout      *timeout);
   1.527 +#ifdef __SYMBIAN32__
   1.528 +IMPORT_C
   1.529 +#endif
   1.530 +void*       dbus_timeout_get_data     (DBusTimeout      *timeout);
   1.531 +#ifdef __SYMBIAN32__
   1.532 +IMPORT_C
   1.533 +#endif
   1.534 +void        dbus_timeout_set_data     (DBusTimeout      *timeout,
   1.535 +                                       void             *data,
   1.536 +                                       DBusFreeFunction  free_data_function);
   1.537 +#ifdef __SYMBIAN32__
   1.538 +IMPORT_C
   1.539 +#endif
   1.540 +dbus_bool_t dbus_timeout_handle       (DBusTimeout      *timeout);
   1.541 +#ifdef __SYMBIAN32__
   1.542 +IMPORT_C
   1.543 +#endif
   1.544 +dbus_bool_t dbus_timeout_get_enabled  (DBusTimeout      *timeout);
   1.545 +
   1.546 +/** @} */
   1.547 +
   1.548 +DBUS_END_DECLS
   1.549 +
   1.550 +#endif /* DBUS_CONNECTION_H */