index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
dir_000004.html
dbus
dbus-connection.h
00001
/* -*- mode: C; c-file-style: "gnu" -*- */
00002
/* dbus-connection.h DBusConnection object
00003
*
00004
* Copyright (C) 2002, 2003  Red Hat Inc.
00005
*
00006
* Licensed under the Academic Free License version 2.1
00007
*
00008
* This program is free software; you can redistribute it and/or modify
00009
* it under the terms of the GNU General Public License as published by
00010
* the Free Software Foundation; either version 2 of the License, or
00011
* (at your option) any later version.
00012
*
00013
* This program is distributed in the hope that it will be useful,
00014
* but WITHOUT ANY WARRANTY; without even the implied warranty of
00015
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016
* GNU General Public License for more details.
00017
*
00018
* You should have received a copy of the GNU General Public License
00019
* along with this program; if not, write to the Free Software
00020
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021
*
00022
*/
00023
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00024
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00025
#endif
00026
00027
#ifndef DBUS_CONNECTION_H
00028
#define DBUS_CONNECTION_H
00029
00030
#include <dbus/dbus-errors.h>
00031
#include <dbus/dbus-memory.h>
00032
#include <dbus/dbus-message.h>
00033
#include <dbus/dbus-shared.h>
00034
00035
group__DBusMacros.html#ga0
DBUS_BEGIN_DECLS
00036
group__DBusWatch.html#ga6
00037
typedef
struct
structDBusWatch.html
DBusWatch
DBusWatch;
group__DBusTimeout.html#ga5
00038
typedef
struct
structDBusTimeout.html
DBusTimeout
DBusTimeout;
00039
typedef
struct
structDBusPreallocatedSend.html
DBusPreallocatedSend
DBusPreallocatedSend;
group__DBusPendingCall.html#ga12
00040
typedef
struct
structDBusPendingCall.html
DBusPendingCall
DBusPendingCall;
00041
typedef
struct
structDBusConnection.html
DBusConnection
DBusConnection;
00042
typedef
struct
structDBusObjectPathVTable.html
DBusObjectPathVTable
DBusObjectPathVTable;
00043
00044
typedef
enum
00045 {
00046   DBUS_WATCH_READABLE = 1 << 0,
00047   DBUS_WATCH_WRITABLE = 1 << 1,
00048   DBUS_WATCH_ERROR    = 1 << 2,
00051   DBUS_WATCH_HANGUP   = 1 << 3
00053 } DBusWatchFlags;
00054
00055
typedef
enum
00056 {
00057   DBUS_DISPATCH_DATA_REMAINS,
00058   DBUS_DISPATCH_COMPLETE,
00059   DBUS_DISPATCH_NEED_MEMORY
00060 } DBusDispatchStatus;
00061
00062
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(* DBusAddWatchFunction)       (DBusWatch      *watch,
00063
void
*data);
00064
typedef
void        (* DBusWatchToggledFunction)   (DBusWatch      *watch,
00065
void
*data);
00066
typedef
void        (* DBusRemoveWatchFunction)    (DBusWatch      *watch,
00067
void
*data);
00068
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(* DBusAddTimeoutFunction)     (DBusTimeout    *timeout,
00069
void
*data);
00070
typedef
void        (* DBusTimeoutToggledFunction) (DBusTimeout    *timeout,
00071
void
*data);
00072
typedef
void        (* DBusRemoveTimeoutFunction)  (DBusTimeout    *timeout,
00073
void
*data);
00074
typedef
void        (* DBusDispatchStatusFunction) (DBusConnection *connection,
00075                                                     DBusDispatchStatus new_status,
00076
void
*data);
00077
typedef
void        (* DBusWakeupMainFunction)     (
void
*data);
00078
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(* DBusAllowUnixUserFunction)  (DBusConnection *connection,
00079
unsigned
long
uid,
00080
void
*data);
00081
00082
typedef
void (* DBusPendingCallNotifyFunction) (DBusPendingCall *pending,
00083
void
*user_data);
00084
00085
00086
typedef
DBusHandlerResult (* DBusHandleMessageFunction) (DBusConnection     *connection,
00087
structDBusMessage.html
DBusMessage
*message,
00088
void
*user_data);
00089
00090 DBusConnection*
group__DBusConnection.html#ga1
dbus_connection_open
(
const
char
*address,
00091
structDBusError.html
DBusError
*error);
00092 DBusConnection*
group__DBusConnection.html#ga2
dbus_connection_open_private
(
const
char
*address,
00093
structDBusError.html
DBusError
*error);
00094 DBusConnection*
group__DBusConnection.html#ga3
dbus_connection_ref
(DBusConnection             *connection);
00095
void
group__DBusConnection.html#ga5
dbus_connection_unref
(DBusConnection             *connection);
00096
void
group__DBusConnection.html#ga6
dbus_connection_close
(DBusConnection             *connection);
00097
void
group__DBusConnection.html#ga7
dbus_connection_disconnect
(DBusConnection             *connection);
00098
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga9
dbus_connection_get_is_connected
(DBusConnection             *connection);
00099
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga10
dbus_connection_get_is_authenticated
(DBusConnection             *connection);
00100
void
group__DBusConnection.html#ga11
dbus_connection_set_exit_on_disconnect
(DBusConnection             *connection,
00101
group__DBusTypes.html#ga2
dbus_bool_t
exit_on_disconnect);
00102
void
group__DBusConnection.html#ga27
dbus_connection_flush
(DBusConnection             *connection);
00103
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga28
dbus_connection_read_write_dispatch
(DBusConnection             *connection,
00104
int
timeout_milliseconds);
00105
structDBusMessage.html
DBusMessage
*
group__DBusConnection.html#ga29
dbus_connection_borrow_message
(DBusConnection             *connection);
00106
void
group__DBusConnection.html#ga30
dbus_connection_return_message
(DBusConnection             *connection,
00107
structDBusMessage.html
DBusMessage
*message);
00108
void
group__DBusConnection.html#ga31
dbus_connection_steal_borrowed_message
(DBusConnection             *connection,
00109
structDBusMessage.html
DBusMessage
*message);
00110
structDBusMessage.html
DBusMessage
*
group__DBusConnection.html#ga35
dbus_connection_pop_message
(DBusConnection             *connection);
00111 DBusDispatchStatus
group__DBusConnection.html#ga37
dbus_connection_get_dispatch_status
(DBusConnection             *connection);
00112 DBusDispatchStatus
group__DBusConnection.html#ga40
dbus_connection_dispatch
(DBusConnection             *connection);
00113
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga22
dbus_connection_has_messages_to_send
(DBusConnection *connection);
00114
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga20
dbus_connection_send
(DBusConnection             *connection,
00115
structDBusMessage.html
DBusMessage
*message,
00116
group__DBusTypes.html#ga3
dbus_uint32_t
*client_serial);
00117
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga22
dbus_connection_send_with_reply
(DBusConnection             *connection,
00118
structDBusMessage.html
DBusMessage
*message,
00119                                                                  DBusPendingCall           **pending_return,
00120
int
timeout_milliseconds);
00121
structDBusMessage.html
DBusMessage
*
group__DBusConnection.html#ga26
dbus_connection_send_with_reply_and_block
(DBusConnection             *connection,
00122
structDBusMessage.html
DBusMessage
*message,
00123
int
timeout_milliseconds,
00124
structDBusError.html
DBusError
*error);
00125
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga41
dbus_connection_set_watch_functions
(DBusConnection             *connection,
00126                                                                  DBusAddWatchFunction        add_function,
00127                                                                  DBusRemoveWatchFunction     remove_function,
00128                                                                  DBusWatchToggledFunction    toggled_function,
00129
void
*data,
00130
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00131
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga42
dbus_connection_set_timeout_functions
(DBusConnection             *connection,
00132                                                                  DBusAddTimeoutFunction      add_function,
00133                                                                  DBusRemoveTimeoutFunction   remove_function,
00134                                                                  DBusTimeoutToggledFunction  toggled_function,
00135
void
*data,
00136
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00137
void
group__DBusConnection.html#ga43
dbus_connection_set_wakeup_main_function
(DBusConnection             *connection,
00138                                                                  DBusWakeupMainFunction      wakeup_main_function,
00139
void
*data,
00140
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00141
void
group__DBusConnection.html#ga44
dbus_connection_set_dispatch_status_function
(DBusConnection             *connection,
00142                                                                  DBusDispatchStatusFunction  function,
00143
void
*data,
00144
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00145
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga46
dbus_connection_get_unix_user
(DBusConnection             *connection,
00146
unsigned
long
*uid);
00147
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga47
dbus_connection_get_unix_process_id
(DBusConnection             *connection,
00148
unsigned
long
*pid);
00149
void
group__DBusConnection.html#ga48
dbus_connection_set_unix_user_function
(DBusConnection             *connection,
00150                                                                  DBusAllowUnixUserFunction   function,
00151
void
*data,
00152
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00153
00154
00155
int
group__DBusWatch.html#ga0
dbus_watch_get_fd
(DBusWatch        *watch);
00156
unsigned
int
group__DBusWatch.html#ga1
dbus_watch_get_flags
(DBusWatch        *watch);
00157
void
*
group__DBusWatch.html#ga2
dbus_watch_get_data
(DBusWatch        *watch);
00158
void
group__DBusWatch.html#ga3
dbus_watch_set_data
(DBusWatch        *watch,
00159
void
*data,
00160
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00161
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusWatch.html#ga5
dbus_watch_handle
(DBusWatch        *watch,
00162
unsigned
int
flags);
00163
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusWatch.html#ga4
dbus_watch_get_enabled
(DBusWatch        *watch);
00164
00165
int
group__DBusTimeout.html#ga0
dbus_timeout_get_interval
(DBusTimeout      *timeout);
00166
void
*
group__DBusTimeout.html#ga1
dbus_timeout_get_data
(DBusTimeout      *timeout);
00167
void
group__DBusTimeout.html#ga2
dbus_timeout_set_data
(DBusTimeout      *timeout,
00168
void
*data,
00169
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00170
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTimeout.html#ga3
dbus_timeout_handle
(DBusTimeout      *timeout);
00171
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTimeout.html#ga4
dbus_timeout_get_enabled
(DBusTimeout      *timeout);
00172
00173
/* Filters */
00174
00175
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga49
dbus_connection_add_filter
(DBusConnection            *connection,
00176                                            DBusHandleMessageFunction  function,
00177
void
*user_data,
00178
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function);
00179
void
group__DBusConnection.html#ga50
dbus_connection_remove_filter
(DBusConnection            *connection,
00180                                            DBusHandleMessageFunction  function,
00181
void
*user_data);
00182
00183
00184
/* Other */
00185
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga56
dbus_connection_allocate_data_slot
(
group__DBusTypes.html#ga4
dbus_int32_t
*slot_p);
00186
void
group__DBusConnection.html#ga57
dbus_connection_free_data_slot
(
group__DBusTypes.html#ga4
dbus_int32_t
*slot_p);
00187
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga58
dbus_connection_set_data
(DBusConnection   *connection,
00188
group__DBusTypes.html#ga4
dbus_int32_t
slot,
00189
void
*data,
00190
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_func);
00191
void
*
group__DBusConnection.html#ga59
dbus_connection_get_data
(DBusConnection   *connection,
00192
group__DBusTypes.html#ga4
dbus_int32_t
slot);
00193
00194
void
group__DBusConnection.html#ga60
dbus_connection_set_change_sigpipe
(
group__DBusTypes.html#ga2
dbus_bool_t
will_modify_sigpipe);
00195
00196
void
group__DBusConnection.html#ga61
dbus_connection_set_max_message_size
(DBusConnection *connection,
00197
long
size);
00198
long
group__DBusConnection.html#ga62
dbus_connection_get_max_message_size
(DBusConnection *connection);
00199
void
group__DBusConnection.html#ga63
dbus_connection_set_max_received_size
(DBusConnection *connection,
00200
long
size);
00201
long
group__DBusConnection.html#ga64
dbus_connection_get_max_received_size
(DBusConnection *connection);
00202
long
group__DBusConnection.html#ga65
dbus_connection_get_outgoing_size
(DBusConnection *connection);
00203
00204 DBusPreallocatedSend*
group__DBusConnection.html#ga13
dbus_connection_preallocate_send
(DBusConnection       *connection);
00205
void
group__DBusConnection.html#ga14
dbus_connection_free_preallocated_send
(DBusConnection       *connection,
00206                                                               DBusPreallocatedSend *preallocated);
00207
void
group__DBusConnection.html#ga17
dbus_connection_send_preallocated
(DBusConnection       *connection,
00208                                                               DBusPreallocatedSend *preallocated,
00209
structDBusMessage.html
DBusMessage
*message,
00210
group__DBusTypes.html#ga3
dbus_uint32_t
*client_serial);
00211
00212
00213
/* Object tree functionality */
00214
00215
typedef
void              (* DBusObjectPathUnregisterFunction) (DBusConnection  *connection,
00216
void
*user_data);
00217
typedef
DBusHandlerResult (* DBusObjectPathMessageFunction)    (DBusConnection  *connection,
00218
structDBusMessage.html
DBusMessage
*message,
00219
void
*user_data);
00220
structDBusObjectPathVTable.html
00225
struct
DBusObjectPathVTable
00226 {
structDBusObjectPathVTable.html#o0
00227
DBusObjectPathUnregisterFunction
structDBusObjectPathVTable.html#o0
unregister_function
;
structDBusObjectPathVTable.html#o1
00228
DBusObjectPathMessageFunction
structDBusObjectPathVTable.html#o1
message_function
;
00230   void (*
structDBusObjectPathVTable.html#o2
dbus_internal_pad1
) (
void
*);
00231   void (*
structDBusObjectPathVTable.html#o3
dbus_internal_pad2
) (
void
*);
00232   void (*
structDBusObjectPathVTable.html#o4
dbus_internal_pad3
) (
void
*);
00233   void (*
structDBusObjectPathVTable.html#o5
dbus_internal_pad4
) (
void
*);
00234 };
00235
00236
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga51
dbus_connection_register_object_path
(DBusConnection              *connection,
00237
const
char
*path,
00238
const
DBusObjectPathVTable  *vtable,
00239
void
*user_data);
00240
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga52
dbus_connection_register_fallback
(DBusConnection              *connection,
00241
const
char
*path,
00242
const
DBusObjectPathVTable  *vtable,
00243
void
*user_data);
00244
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga53
dbus_connection_unregister_object_path
(DBusConnection              *connection,
00245
const
char
*path);
00246
00247
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga54
dbus_connection_get_object_path_data
(DBusConnection              *connection,
00248
const
char
*path,
00249
void
**data_p);
00250
00251
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga55
dbus_connection_list_registered
(DBusConnection              *connection,
00252
const
char
*parent_path,
00253
char
***child_entries);
00254
00255
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnection.html#ga45
dbus_connection_get_unix_fd
(DBusConnection              *connection,
00256
int
*fd);
00257
00258
group__DBusMacros.html#ga1
DBUS_END_DECLS
00259
00260
#endif
/* DBUS_CONNECTION_H */
Generated on Tue Sep 13 01:28:06 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
