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
DBusConnection implementation details
[
group__DBusInternals.html
D-BUS internal implementation details
]
Implementation details of
structDBusConnection.html
DBusConnection
.
#_details
More...
Data Structures
struct
structDBusMessageFilter.html
DBusMessageFilter
Internal struct representing a message filter function.
structDBusMessageFilter.html#_details
More...
struct
structDBusPreallocatedSend.html
DBusPreallocatedSend
Internals of DBusPreallocatedSend.
structDBusPreallocatedSend.html#_details
More...
struct
structDBusConnection.html
DBusConnection
Implementation details of DBusConnection.
structDBusConnection.html#_details
More...
Typedefs
typedef
structDBusMessageFilter.html
DBusMessageFilter
group__DBusConnectionInternals.html#ga0
DBusMessageFilter
Internal struct representing a message filter function.
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusConnectionInternals.html#ga2
DBusWatchAddFunction
)(
structDBusWatchList.html
DBusWatchList
*list,
structDBusWatch.html
DBusWatch
*watch)
typedef void(*
group__DBusConnectionInternals.html#ga3
DBusWatchRemoveFunction
)(
structDBusWatchList.html
DBusWatchList
*list,
structDBusWatch.html
DBusWatch
*watch)
typedef void(*
group__DBusConnectionInternals.html#ga4
DBusWatchToggleFunction
)(
structDBusWatchList.html
DBusWatchList
*list,
structDBusWatch.html
DBusWatch
*watch,
group__DBusTypes.html#ga2
dbus_bool_t
enabled)
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusConnectionInternals.html#ga5
DBusTimeoutAddFunction
)(
structDBusTimeoutList.html
DBusTimeoutList
*list,
structDBusTimeout.html
DBusTimeout
*timeout)
typedef void(*
group__DBusConnectionInternals.html#ga6
DBusTimeoutRemoveFunction
)(
structDBusTimeoutList.html
DBusTimeoutList
*list,
structDBusTimeout.html
DBusTimeout
*timeout)
typedef void(*
group__DBusConnectionInternals.html#ga7
DBusTimeoutToggleFunction
)(
structDBusTimeoutList.html
DBusTimeoutList
*list,
structDBusTimeout.html
DBusTimeout
*timeout,
group__DBusTypes.html#ga2
dbus_bool_t
enabled)
Functions
void
group__DBusConnectionInternals.html#ga16
_dbus_connection_lock
(
structDBusConnection.html
DBusConnection
*connection)
Acquires the connection lock.
#ga16
void
group__DBusConnectionInternals.html#ga17
_dbus_connection_unlock
(
structDBusConnection.html
DBusConnection
*connection)
Releases the connection lock.
#ga17
void
group__DBusConnectionInternals.html#ga19
_dbus_connection_queue_received_message_link
(
structDBusConnection.html
DBusConnection
*connection,
structDBusList.html
DBusList
*link)
Adds a message-containing list link to the incoming message queue, taking ownership of the link and the message's current refcount.
#ga19
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga21
_dbus_connection_has_messages_to_send_unlocked
(
structDBusConnection.html
DBusConnection
*connection)
Checks whether there are messages in the outgoing message queue.
#ga21
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga22
dbus_connection_has_messages_to_send
(
structDBusConnection.html
DBusConnection
*connection)
Checks whether there are messages in the outgoing message queue.
#ga22
structDBusMessage.html
DBusMessage
*
group__DBusConnectionInternals.html#ga23
_dbus_connection_get_message_to_send
(
structDBusConnection.html
DBusConnection
*connection)
Gets the next outgoing message.
#ga23
void
group__DBusConnectionInternals.html#ga24
_dbus_connection_message_sent
(
structDBusConnection.html
DBusConnection
*connection,
structDBusMessage.html
DBusMessage
*message)
Notifies the connection that a message has been sent, so the message can be removed from the outgoing queue.
#ga24
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga26
_dbus_connection_add_watch
(
structDBusConnection.html
DBusConnection
*connection,
structDBusWatch.html
DBusWatch
*watch)
Adds a watch using the connection's DBusAddWatchFunction if available.
#ga26
void
group__DBusConnectionInternals.html#ga27
_dbus_connection_remove_watch
(
structDBusConnection.html
DBusConnection
*connection,
structDBusWatch.html
DBusWatch
*watch)
Removes a watch using the connection's DBusRemoveWatchFunction if available.
#ga27
void
group__DBusConnectionInternals.html#ga28
_dbus_connection_toggle_watch
(
structDBusConnection.html
DBusConnection
*connection,
structDBusWatch.html
DBusWatch
*watch,
group__DBusTypes.html#ga2
dbus_bool_t
enabled)
Toggles a watch and notifies app via connection's DBusWatchToggledFunction if available.
#ga28
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga30
_dbus_connection_add_timeout
(
structDBusConnection.html
DBusConnection
*connection,
structDBusTimeout.html
DBusTimeout
*timeout)
Adds a timeout using the connection's DBusAddTimeoutFunction if available.
#ga30
void
group__DBusConnectionInternals.html#ga31
_dbus_connection_remove_timeout
(
structDBusConnection.html
DBusConnection
*connection,
structDBusTimeout.html
DBusTimeout
*timeout)
Removes a timeout using the connection's DBusRemoveTimeoutFunction if available.
#ga31
void
group__DBusConnectionInternals.html#ga32
_dbus_connection_toggle_timeout
(
structDBusConnection.html
DBusConnection
*connection,
structDBusTimeout.html
DBusTimeout
*timeout,
group__DBusTypes.html#ga2
dbus_bool_t
enabled)
Toggles a timeout and notifies app via connection's DBusTimeoutToggledFunction if available.
#ga32
void
group__DBusConnectionInternals.html#ga37
_dbus_connection_remove_pending_call
(
structDBusConnection.html
DBusConnection
*connection,
structDBusPendingCall.html
DBusPendingCall
*pending)
Removes a pending call from the connection, such that the pending reply will be ignored.
#ga37
void
group__DBusConnectionInternals.html#ga38
_dbus_pending_call_complete_and_unlock
(
structDBusPendingCall.html
DBusPendingCall
*pending,
structDBusMessage.html
DBusMessage
*message)
Completes a pending call with the given message, or if the message is
group__DBusMacros.html#ga4
NULL
, by timing out the pending call.
#ga38
void
group__DBusConnectionInternals.html#ga41
_dbus_connection_do_iteration_unlocked
(
structDBusConnection.html
DBusConnection
*connection, unsigned int flags, int timeout_milliseconds)
Queues incoming messages and sends outgoing messages for this connection, optionally blocking in the process.
#ga41
structDBusConnection.html
DBusConnection
*
group__DBusConnectionInternals.html#ga42
_dbus_connection_new_for_transport
(
structDBusTransport.html
DBusTransport
*transport)
Creates a new connection for the given transport.
#ga42
structDBusConnection.html
DBusConnection
*
group__DBusConnectionInternals.html#ga43
_dbus_connection_ref_unlocked
(
structDBusConnection.html
DBusConnection
*connection)
Increments the reference count of a
structDBusConnection.html
DBusConnection
.
#ga43
void
group__DBusConnectionInternals.html#ga44
_dbus_connection_unref_unlocked
(
structDBusConnection.html
DBusConnection
*connection)
Decrements the reference count of a
structDBusConnection.html
DBusConnection
.
#ga44
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusConnectionInternals.html#ga46
_dbus_connection_handle_watch
(
structDBusWatch.html
DBusWatch
*watch, unsigned int condition, void *data)
A callback for use with dbus_watch_new() to create a
structDBusWatch.html
DBusWatch
.
#ga46
Detailed Description
Implementation details of
structDBusConnection.html
DBusConnection
.
Function Documentation
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_connection_add_timeout
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusTimeout.html
DBusTimeout
*
timeout
)
Adds a timeout using the connection's DBusAddTimeoutFunction if available.
Otherwise records the timeout to be added when said function is available. Also re-adds the timeout if the DBusAddTimeoutFunction changes. May fail due to lack of memory. The timeout will fire repeatedly until removed.
Parameters:
connection
the connection.
timeout
the timeout to add.
Returns:
group__DBusMacros.html#ga2
TRUE
on success.
Definition at line
dbus-connection_8c-source.html#l00719
719
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-timeout_8c-source.html#l00309
_dbus_timeout_list_add_timeout()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga4
NULL
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_connection_add_watch
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusWatch.html
DBusWatch
*
watch
)
Adds a watch using the connection's DBusAddWatchFunction if available.
Otherwise records the watch to be added when said function is available. Also re-adds the watch if the DBusAddWatchFunction changes. May fail due to lack of memory.
Parameters:
connection
the connection.
watch
the watch to add.
Returns:
group__DBusMacros.html#ga2
TRUE
on success.
Definition at line
dbus-connection_8c-source.html#l00603
603
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-watch_8c-source.html#l00351
_dbus_watch_list_add_watch()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga4
NULL
.
void _dbus_connection_do_iteration_unlocked
(
structDBusConnection.html
DBusConnection
*
connection
,
unsigned int
flags
,
int
timeout_milliseconds
)
Queues incoming messages and sends outgoing messages for this connection, optionally blocking in the process.
Each call to
group__DBusConnectionInternals.html#ga41
_dbus_connection_do_iteration_unlocked()
will call select() or poll() one time and then read or write data if possible.
The purpose of this function is to be able to flush outgoing messages or queue up incoming messages without returning control to the application and causing reentrancy weirdness.
The flags parameter allows you to specify whether to read incoming messages, write outgoing messages, or both, and whether to block if no immediate action is possible.
The timeout_milliseconds parameter does nothing unless the iteration is blocking.
If there are no outgoing messages and DBUS_ITERATION_DO_READING wasn't specified, then it's impossible to block, even if you specify DBUS_ITERATION_BLOCK; in that case the function returns immediately.
Called with connection lock held.
Parameters:
connection
the connection.
flags
iteration flags.
timeout_milliseconds
maximum blocking time, or -1 for no limit.
Definition at line
dbus-connection_8c-source.html#l01034
1034
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-transport_8c-source.html#l00698
_dbus_transport_do_iteration()
, and
dbus-connection_8c-source.html#l00204
DBusConnection::n_outgoing
.
Referenced by
dbus-connection_8c-source.html#l02571
_dbus_connection_block_pending_call()
,
dbus-connection_8c-source.html#l02800
dbus_connection_flush()
, and
dbus-connection_8c-source.html#l02867
dbus_connection_read_write_dispatch()
.
structDBusMessage.html
DBusMessage
* _dbus_connection_get_message_to_send
(
structDBusConnection.html
DBusConnection
*
connection
)
Gets the next outgoing message.
The message remains in the queue, and the caller does not own a reference to it.
Parameters:
connection
the connection.
Returns:
the message to be sent.
Definition at line
dbus-connection_8c-source.html#l00476
476
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-list_8c-source.html#l00610
_dbus_list_get_last()
, and
dbus-connection_8c-source.html#l00197
DBusConnection::outgoing_messages
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_connection_handle_watch
(
structDBusWatch.html
DBusWatch
*
watch
,
unsigned int
condition
,
void *
data
)
A callback for use with dbus_watch_new() to create a
structDBusWatch.html
DBusWatch
.
todo.html#_todo000015
Todo:
This is basically a hack - we could delete
group__DBusTransport.html#ga10
_dbus_transport_handle_watch()
and the virtual handle_watch in
structDBusTransport.html
DBusTransport
if we got rid of it.
The reason this is some work is threading, see the
group__DBusConnectionInternals.html#ga46
_dbus_connection_handle_watch()
implementation.
Parameters:
watch
the watch.
condition
the current condition of the file descriptors being watched.
data
must be a pointer to a
structDBusConnection.html
DBusConnection
Returns:
group__DBusMacros.html#ga3
FALSE
if the IO condition may not have been fully handled due to lack of memory
Definition at line
dbus-connection_8c-source.html#l01337
1337
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-transport_8c-source.html#l00603
_dbus_transport_handle_watch()
, and
dbus-connection_8c-source.html#l00209
DBusConnection::transport
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_connection_has_messages_to_send_unlocked
(
structDBusConnection.html
DBusConnection
*
connection
)
Checks whether there are messages in the outgoing message queue.
Called with connection lock held.
Parameters:
connection
the connection.
Returns:
group__DBusMacros.html#ga2
TRUE
if the outgoing queue is non-empty.
Definition at line
dbus-connection_8c-source.html#l00442
442
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
group__DBusMacros.html#ga4
NULL
, and
dbus-connection_8c-source.html#l00197
DBusConnection::outgoing_messages
.
Referenced by
dbus-connection_8c-source.html#l00455
dbus_connection_has_messages_to_send()
.
void _dbus_connection_lock
(
structDBusConnection.html
DBusConnection
*
connection
)
Acquires the connection lock.
Parameters:
connection
the connection.
Definition at line
dbus-connection_8c-source.html#l00291
291
of file
dbus-connection_8c-source.html
dbus-connection.c
.
Referenced by
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
, and
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
.
void _dbus_connection_message_sent
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusMessage.html
DBusMessage
*
message
)
Notifies the connection that a message has been sent, so the message can be removed from the outgoing queue.
Called with the connection lock held.
Parameters:
connection
the connection.
message
the message that was sent.
Definition at line
dbus-connection_8c-source.html#l00492
492
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-list_8c-source.html#l00594
_dbus_list_get_last_link()
,
dbus-list_8c-source.html#l00312
_dbus_list_prepend_link()
,
dbus-list_8c-source.html#l00513
_dbus_list_unlink()
,
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
,
dbus-list_8h-source.html#l00039
DBusList::data
,
dbus-message_8c-source.html#l02539
dbus_message_get_interface()
,
dbus-message_8c-source.html#l02619
dbus_message_get_member()
,
dbus-message_8c-source.html#l02419
dbus_message_get_path()
,
dbus-message_8c-source.html#l02819
dbus_message_get_signature()
,
dbus-message_8c-source.html#l01129
dbus_message_get_type()
,
dbus-message_8c-source.html#l01097
dbus_message_unref()
,
dbus-connection_8c-source.html#l00232
DBusConnection::link_cache
,
dbus-connection_8c-source.html#l00204
DBusConnection::n_outgoing
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection_8c-source.html#l00207
DBusConnection::outgoing_counter
, and
dbus-connection_8c-source.html#l00197
DBusConnection::outgoing_messages
.
structDBusConnection.html
DBusConnection
* _dbus_connection_new_for_transport
(
structDBusTransport.html
DBusTransport
*
transport
)
Creates a new connection for the given transport.
A transport represents a message stream that uses some concrete mechanism, such as UNIX domain sockets. May return
group__DBusMacros.html#ga4
NULL
if insufficient memory exists to create the connection.
Parameters:
transport
the transport.
Returns:
the new connection, or
group__DBusMacros.html#ga4
NULL
on failure.
Definition at line
dbus-connection_8c-source.html#l01070
1070
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-threads_8c-source.html#l00133
_dbus_condvar_free()
,
dbus-threads_8c-source.html#l00120
_dbus_condvar_new()
,
dbus-resources_8c-source.html#l00077
_dbus_counter_new()
,
dbus-resources_8c-source.html#l00118
_dbus_counter_unref()
,
dbus-memory_8c-source.html#l00682
_dbus_current_generation
,
dbus-dataslot_8c-source.html#l00209
_dbus_data_slot_list_init()
,
dbus-sysdeps_8c-source.html#l02574
_dbus_disable_sigpipe()
,
dbus-hash_8c-source.html#l00292
_dbus_hash_table_new()
,
dbus-hash_8c-source.html#l00374
_dbus_hash_table_unref()
,
dbus-list_8c-source.html#l00221
_dbus_list_alloc_link()
,
dbus-list_8c-source.html#l00233
_dbus_list_free_link()
,
dbus-threads_8c-source.html#l00076
_dbus_mutex_free()
,
dbus-threads_8c-source.html#l00063
_dbus_mutex_new()
,
dbus-object-tree_8c-source.html#l00090
_dbus_object_tree_new()
,
dbus-object-tree_8c-source.html#l00141
_dbus_object_tree_unref()
,
dbus-timeout_8c-source.html#l00210
_dbus_timeout_list_free()
,
dbus-timeout_8c-source.html#l00193
_dbus_timeout_list_new()
,
dbus-transport_8c-source.html#l00355
_dbus_transport_ref()
,
dbus-transport_8c-source.html#l00641
_dbus_transport_set_connection()
,
dbus-watch_8c-source.html#l00225
_dbus_watch_list_free()
,
dbus-watch_8c-source.html#l00208
_dbus_watch_list_new()
,
dbus-connection_8c-source.html#l00219
DBusConnection::client_serial
,
dbus-memory_8c-source.html#l00612
dbus_free()
,
dbus-message_8c-source.html#l00874
dbus_message_new_signal()
,
dbus-message_8c-source.html#l01097
dbus_message_unref()
,
dbus-memory_8h-source.html#l00042
dbus_new0
,
dbus-connection_8c-source.html#l00220
DBusConnection::disconnect_message_link
,
dbus-connection_8c-source.html#l00193
DBusConnection::dispatch_cond
,
dbus-connection_8c-source.html#l00192
DBusConnection::dispatch_mutex
,
dbus-connection_8c-source.html#l00244
DBusConnection::exit_on_disconnect
,
group__DBusMacros.html#ga3
FALSE
,
dbus-connection_8c-source.html#l00213
DBusConnection::filter_list
,
dbus-connection_8c-source.html#l00251
DBusConnection::generation
,
dbus-connection_8c-source.html#l00195
DBusConnection::io_path_cond
,
dbus-connection_8c-source.html#l00194
DBusConnection::io_path_mutex
,
dbus-connection_8c-source.html#l00230
DBusConnection::last_dispatch_status
,
dbus-connection_8c-source.html#l00190
DBusConnection::mutex
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection_8c-source.html#l00235
DBusConnection::objects
,
dbus-connection_8c-source.html#l00207
DBusConnection::outgoing_counter
,
dbus-connection_8c-source.html#l00217
DBusConnection::pending_replies
,
dbus-connection_8c-source.html#l00188
DBusConnection::refcount
,
dbus-connection_8c-source.html#l00239
DBusConnection::shareable
,
dbus-connection_8c-source.html#l00215
DBusConnection::slot_list
,
dbus-connection_8c-source.html#l00211
DBusConnection::timeouts
,
dbus-connection_8c-source.html#l00209
DBusConnection::transport
,
dbus-sysdeps_8h-source.html#l00192
DBusAtomic::value
, and
dbus-connection_8c-source.html#l00210
DBusConnection::watches
.
void _dbus_connection_queue_received_message_link
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusList.html
DBusList
*
link
)
Adds a message-containing list link to the incoming message queue, taking ownership of the link and the message's current refcount.
Cannot fail due to lack of memory.
Parameters:
connection
the connection.
link
the message link to queue.
Definition at line
dbus-connection_8c-source.html#l00358
358
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-connection_8c-source.html#l00736
_dbus_connection_remove_timeout()
,
dbus-hash_8c-source.html#l01186
_dbus_hash_table_lookup_int()
,
dbus-list_8c-source.html#l00294
_dbus_list_append_link()
,
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
,
dbus-list_8h-source.html#l00039
DBusList::data
,
dbus-message_8c-source.html#l02539
dbus_message_get_interface()
,
dbus-message_8c-source.html#l02619
dbus_message_get_member()
,
dbus-message_8c-source.html#l02419
dbus_message_get_path()
,
dbus-message_8c-source.html#l00419
dbus_message_get_reply_serial()
,
dbus-message_8c-source.html#l02819
dbus_message_get_signature()
,
dbus-message_8c-source.html#l01129
dbus_message_get_type()
,
group__DBusMacros.html#ga3
FALSE
,
dbus-connection_8c-source.html#l00198
DBusConnection::incoming_messages
,
dbus-connection_8c-source.html#l00205
DBusConnection::n_incoming
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection_8c-source.html#l00217
DBusConnection::pending_replies
,
dbus-connection-internal_8h-source.html#l00113
DBusPendingCall::timeout
,
dbus-connection-internal_8h-source.html#l00120
DBusPendingCall::timeout_added
, and
dbus-connection_8c-source.html#l00209
DBusConnection::transport
.
Referenced by
dbus-transport_8c-source.html#l00857
_dbus_transport_queue_messages()
.
structDBusConnection.html
DBusConnection
* _dbus_connection_ref_unlocked
(
structDBusConnection.html
DBusConnection
*
connection
)
Increments the reference count of a
structDBusConnection.html
DBusConnection
.
Requires that the caller already holds the connection lock.
Parameters:
connection
the connection.
Returns:
the connection.
Definition at line
dbus-connection_8c-source.html#l01258
1258
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-sysdeps_8c-source.html#l01809
_dbus_atomic_inc()
,
dbus-memory_8c-source.html#l00682
_dbus_current_generation
,
dbus-connection_8c-source.html#l00251
DBusConnection::generation
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection_8c-source.html#l00188
DBusConnection::refcount
, and
dbus-sysdeps_8h-source.html#l00192
DBusAtomic::value
.
Referenced by
dbus-object-tree_8c-source.html#l00446
_dbus_object_tree_unregister_and_unlock()
,
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
,
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
,
dbus-connection_8c-source.html#l03867
dbus_connection_set_timeout_functions()
, and
dbus-connection_8c-source.html#l03785
dbus_connection_set_watch_functions()
.
void _dbus_connection_remove_pending_call
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusPendingCall.html
DBusPendingCall
*
pending
)
Removes a pending call from the connection, such that the pending reply will be ignored.
May drop the last reference to the pending call.
Parameters:
connection
the connection
pending
the pending call
Definition at line
dbus-connection_8c-source.html#l00859
859
of file
dbus-connection_8c-source.html
dbus-connection.c
.
Referenced by
dbus-pending-call_8c-source.html#l00249
dbus_pending_call_cancel()
.
void _dbus_connection_remove_timeout
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusTimeout.html
DBusTimeout
*
timeout
)
Removes a timeout using the connection's DBusRemoveTimeoutFunction if available.
It's an error to call this function on a timeout that was not previously added.
Parameters:
connection
the connection.
timeout
the timeout to remove.
Definition at line
dbus-connection_8c-source.html#l00736
736
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-timeout_8c-source.html#l00339
_dbus_timeout_list_remove_timeout()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-connection_8c-source.html#l00358
_dbus_connection_queue_received_message_link()
.
void _dbus_connection_remove_watch
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusWatch.html
DBusWatch
*
watch
)
Removes a watch using the connection's DBusRemoveWatchFunction if available.
It's an error to call this function on a watch that was not previously added.
Parameters:
connection
the connection.
watch
the watch to remove.
Definition at line
dbus-connection_8c-source.html#l00620
620
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-watch_8c-source.html#l00384
_dbus_watch_list_remove_watch()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga4
NULL
.
void _dbus_connection_toggle_timeout
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusTimeout.html
DBusTimeout
*
timeout
,
group__DBusTypes.html#ga2
dbus_bool_t
enabled
)
Toggles a timeout and notifies app via connection's DBusTimeoutToggledFunction if available.
It's an error to call this function on a timeout that was not previously added.
Parameters:
connection
the connection.
timeout
the timeout to toggle.
enabled
whether to enable or disable
Definition at line
dbus-connection_8c-source.html#l00755
755
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-timeout_8c-source.html#l00361
_dbus_timeout_list_toggle_timeout()
, and
group__DBusMacros.html#ga4
NULL
.
void _dbus_connection_toggle_watch
(
structDBusConnection.html
DBusConnection
*
connection
,
structDBusWatch.html
DBusWatch
*
watch
,
group__DBusTypes.html#ga2
dbus_bool_t
enabled
)
Toggles a watch and notifies app via connection's DBusWatchToggledFunction if available.
It's an error to call this function on a watch that was not previously added. Connection lock should be held when calling this.
Parameters:
connection
the connection.
watch
the watch to toggle.
enabled
whether to enable or disable
Definition at line
dbus-connection_8c-source.html#l00640
640
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-watch_8c-source.html#l00411
_dbus_watch_list_toggle_watch()
, and
group__DBusMacros.html#ga4
NULL
.
void _dbus_connection_unlock
(
structDBusConnection.html
DBusConnection
*
connection
)
Releases the connection lock.
Parameters:
connection
the connection.
Definition at line
dbus-connection_8c-source.html#l00302
302
of file
dbus-connection_8c-source.html
dbus-connection.c
.
Referenced by
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
,
dbus-object-tree_8c-source.html#l01045
_dbus_object_tree_list_registered_and_unlock()
,
dbus-object-tree_8c-source.html#l00446
_dbus_object_tree_unregister_and_unlock()
, and
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
.
void _dbus_connection_unref_unlocked
(
structDBusConnection.html
DBusConnection
*
connection
)
Decrements the reference count of a
structDBusConnection.html
DBusConnection
.
Requires that the caller already holds the connection lock.
Parameters:
connection
the connection.
Definition at line
dbus-connection_8c-source.html#l01282
1282
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-sysdeps_8c-source.html#l01832
_dbus_atomic_dec()
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection_8c-source.html#l00188
DBusConnection::refcount
, and
dbus-sysdeps_8h-source.html#l00192
DBusAtomic::value
.
Referenced by
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
.
void _dbus_pending_call_complete_and_unlock
(
structDBusPendingCall.html
DBusPendingCall
*
pending
,
structDBusMessage.html
DBusMessage
*
message
)
Completes a pending call with the given message, or if the message is
group__DBusMacros.html#ga4
NULL
, by timing out the pending call.
Parameters:
pending
the pending call
message
the message to complete the call with, or
group__DBusMacros.html#ga4
NULL
to time out the call
Definition at line
dbus-connection_8c-source.html#l00875
875
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-list_8c-source.html#l00556
_dbus_list_clear()
,
dbus-pending-call_8c-source.html#l00111
_dbus_pending_call_notify()
,
dbus-connection-internal_8h-source.html#l00111
DBusPendingCall::connection
,
dbus-list_8h-source.html#l00039
DBusList::data
,
dbus-message_8c-source.html#l00419
dbus_message_get_reply_serial()
,
dbus-message_8c-source.html#l01129
dbus_message_get_type()
,
dbus-message_8c-source.html#l01076
dbus_message_ref()
,
dbus-pending-call_8c-source.html#l00154
dbus_pending_call_ref()
,
dbus-pending-call_8c-source.html#l00170
dbus_pending_call_unref()
,
group__DBusMacros.html#ga4
NULL
,
dbus-connection-internal_8h-source.html#l00112
DBusPendingCall::reply
,
dbus-connection-internal_8h-source.html#l00117
DBusPendingCall::reply_serial
, and
dbus-connection-internal_8h-source.html#l00115
DBusPendingCall::timeout_link
.
Referenced by
dbus-connection_8c-source.html#l02571
_dbus_connection_block_pending_call()
, and
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
.
group__DBusTypes.html#ga2
dbus_bool_t
dbus_connection_has_messages_to_send
(
structDBusConnection.html
DBusConnection
*
connection
)
Checks whether there are messages in the outgoing message queue.
Parameters:
connection
the connection.
Returns:
group__DBusMacros.html#ga2
TRUE
if the outgoing queue is non-empty.
Definition at line
dbus-connection_8c-source.html#l00455
455
of file
dbus-connection_8c-source.html
dbus-connection.c
.
References
dbus-connection_8c-source.html#l00442
_dbus_connection_has_messages_to_send_unlocked()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga4
NULL
.
Generated on Tue Sep 13 00:15:28 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
