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
Linked list
[
group__DBusInternals.html
D-BUS internal implementation details
]
structDBusList.html
DBusList
data structure.
#_details
More...
Data Structures
struct
structDBusList.html
DBusList
A node in a linked list.
structDBusList.html#_details
More...
Defines
#define
group__DBusList.html#ga24
_dbus_list_get_next_link
(list, link)   ((link)->next == *(list) ? NULL : (link)->next)
Gets the next link in the list, or
group__DBusMacros.html#ga4
NULL
if there are no more links.
#ga24
#define
group__DBusList.html#ga25
_dbus_list_get_prev_link
(list, link)   ((link) == *(list) ? NULL : (link)->prev)
Gets the previous link in the list, or
group__DBusMacros.html#ga4
NULL
if there are no more links.
#ga25
Functions
structDBusList.html
DBusList
*
group__DBusList.html#ga0
_dbus_list_alloc_link
(void *data)
Allocates a linked list node.
#ga0
void
group__DBusList.html#ga1
_dbus_list_free_link
(
structDBusList.html
DBusList
*link)
Frees a linked list node allocated with _dbus_list_alloc_link.
#ga1
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga2
_dbus_list_append
(
structDBusList.html
DBusList
**list, void *data)
Appends a value to the list.
#ga2
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga3
_dbus_list_prepend
(
structDBusList.html
DBusList
**list, void *data)
Prepends a value to the list.
#ga3
void
group__DBusList.html#ga4
_dbus_list_append_link
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
*link)
Appends a link to the list.
#ga4
void
group__DBusList.html#ga5
_dbus_list_prepend_link
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
*link)
Prepends a link to the list.
#ga5
void
group__DBusList.html#ga6
_dbus_list_insert_before_link
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
*before_this_link,
structDBusList.html
DBusList
*link)
Inserts a link into the list before the given existing link.
#ga6
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga7
_dbus_list_remove
(
structDBusList.html
DBusList
**list, void *data)
Removes a value from the list.
#ga7
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga8
_dbus_list_remove_last
(
structDBusList.html
DBusList
**list, void *data)
Removes a value from the list.
#ga8
structDBusList.html
DBusList
*
group__DBusList.html#ga9
_dbus_list_find_last
(
structDBusList.html
DBusList
**list, void *data)
Finds a value in the list.
#ga9
void
group__DBusList.html#ga10
_dbus_list_unlink
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
*link)
Removes the given link from the list, but doesn't free it.
#ga10
void
group__DBusList.html#ga11
_dbus_list_remove_link
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
*link)
Removes a link from the list.
#ga11
void
group__DBusList.html#ga12
_dbus_list_clear
(
structDBusList.html
DBusList
**list)
Frees all links in the list and sets the list head to
group__DBusMacros.html#ga4
NULL
.
#ga12
structDBusList.html
DBusList
*
group__DBusList.html#ga13
_dbus_list_get_first_link
(
structDBusList.html
DBusList
**list)
Gets the first link in the list.
#ga13
structDBusList.html
DBusList
*
group__DBusList.html#ga14
_dbus_list_get_last_link
(
structDBusList.html
DBusList
**list)
Gets the last link in the list.
#ga14
void *
group__DBusList.html#ga15
_dbus_list_get_last
(
structDBusList.html
DBusList
**list)
Gets the last data in the list.
#ga15
void *
group__DBusList.html#ga16
_dbus_list_get_first
(
structDBusList.html
DBusList
**list)
Gets the first data in the list.
#ga16
structDBusList.html
DBusList
*
group__DBusList.html#ga17
_dbus_list_pop_first_link
(
structDBusList.html
DBusList
**list)
Removes the first link in the list and returns it.
#ga17
void *
group__DBusList.html#ga18
_dbus_list_pop_first
(
structDBusList.html
DBusList
**list)
Removes the first value in the list and returns it.
#ga18
void *
group__DBusList.html#ga19
_dbus_list_pop_last
(
structDBusList.html
DBusList
**list)
Removes the last value in the list and returns it.
#ga19
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga20
_dbus_list_copy
(
structDBusList.html
DBusList
**list,
structDBusList.html
DBusList
**dest)
Copies a list.
#ga20
int
group__DBusList.html#ga21
_dbus_list_get_length
(
structDBusList.html
DBusList
**list)
Gets the length of a list.
#ga21
void
group__DBusList.html#ga22
_dbus_list_foreach
(
structDBusList.html
DBusList
**list,
group__DBusInternalsUtils.html#ga161
DBusForeachFunction
function, void *data)
Calls the given function for each element in the list.
#ga22
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga23
_dbus_list_length_is_one
(
structDBusList.html
DBusList
**list)
Check whether length is exactly one.
#ga23
Detailed Description
structDBusList.html
DBusList
data structure.
Types and functions related to
structDBusList.html
DBusList
.
Define Documentation
#define _dbus_list_get_next_link
(
list,
link
)
((link)->next == *(list) ? NULL : (link)->next)
Gets the next link in the list, or
group__DBusMacros.html#ga4
NULL
if there are no more links.
Used for iteration.
structDBusList.html
DBusList
*link;
link =
group__DBusList.html#ga13
_dbus_list_get_first_link
(&list);
while
(link !=
group__DBusMacros.html#ga4
NULL
)
{
printf (
"value is %p\n"
, link->
structDBusList.html#o2
data
);
link =
group__DBusList.html#ga24
_dbus_list_get_next_link
(&link);
}
Parameters:
list
address of the list head.
link
current link.
Returns:
the next link, or NULL if none.
Definition at line
dbus-list_8h-source.html#l00094
94
of file
dbus-list_8h-source.html
dbus-list.h
.
Referenced by
dbus-list_8c-source.html#l00556
_dbus_list_clear()
,
dbus-list_8c-source.html#l00734
_dbus_list_copy()
,
dbus-list_8c-source.html#l00796
_dbus_list_foreach()
,
dbus-list_8c-source.html#l00767
_dbus_list_get_length()
,
dbus-list_8c-source.html#l00429
_dbus_list_remove()
,
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
,
dbus-timeout_8c-source.html#l00238
_dbus_timeout_list_set_functions()
,
dbus-watch_8c-source.html#l00253
_dbus_watch_list_set_functions()
,
dbus-address_8c-source.html#l00146
dbus_address_entry_get_value()
,
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
, and
dbus-address_8c-source.html#l00320
dbus_parse_address()
.
#define _dbus_list_get_prev_link
(
list,
link
)
((link) == *(list) ? NULL : (link)->prev)
Gets the previous link in the list, or
group__DBusMacros.html#ga4
NULL
if there are no more links.
Used for iteration.
structDBusList.html
DBusList
*link;
link =
group__DBusList.html#ga14
_dbus_list_get_last_link
(&list);
while
(link !=
group__DBusMacros.html#ga4
NULL
)
{
printf (
"value is %p\n"
, link->
structDBusList.html#o2
data
);
link =
group__DBusList.html#ga25
_dbus_list_get_prev_link
(&link);
}
Parameters:
list
address of the list head.
link
current link.
Returns:
the previous link, or NULL if none.
Definition at line
dbus-list_8h-source.html#l00095
95
of file
dbus-list_8h-source.html
dbus-list.h
.
Referenced by
dbus-list_8c-source.html#l00486
_dbus_list_find_last()
, and
dbus-connection_8c-source.html#l04198
dbus_connection_remove_filter()
.
Function Documentation
structDBusList.html
DBusList
* _dbus_list_alloc_link
(
void *
data
)
Allocates a linked list node.
Useful for preallocating nodes and using
group__DBusList.html#ga4
_dbus_list_append_link()
to avoid allocations.
Parameters:
data
the value to store in the link.
Returns:
a newly allocated link.
Definition at line
dbus-list_8c-source.html#l00221
221
of file
dbus-list_8c-source.html
dbus-list.c
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
,
dbus-message_8c-source.html#l00221
_dbus_message_add_size_counter()
, and
dbus-connection_8c-source.html#l02416
dbus_connection_send_with_reply()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_append
(
structDBusList.html
DBusList
**
list
,
void *
data
)
Appends a value to the list.
May return
group__DBusMacros.html#ga3
FALSE
if insufficient memory exists to add a list link. This is a constant-time operation.
Parameters:
list
address of the list head.
data
the value to append.
Returns:
group__DBusMacros.html#ga2
TRUE
on success.
Definition at line
dbus-list_8c-source.html#l00249
249
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00271
_dbus_list_prepend()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-list_8c-source.html#l00734
_dbus_list_copy()
,
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
,
dbus-timeout_8c-source.html#l00309
_dbus_timeout_list_add_timeout()
,
dbus-marshal-validate_8c-source.html#l00054
_dbus_validate_signature_with_reason()
,
dbus-watch_8c-source.html#l00351
_dbus_watch_list_add_watch()
,
dbus-connection_8c-source.html#l04146
dbus_connection_add_filter()
, and
dbus-address_8c-source.html#l00320
dbus_parse_address()
.
void _dbus_list_append_link
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
*
link
)
Appends a link to the list.
Cannot fail due to out of memory. This is a constant-time operation.
Parameters:
list
address of the list head.
link
the link to append.
Definition at line
dbus-list_8c-source.html#l00294
294
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00312
_dbus_list_prepend_link()
, and
dbus-list_8h-source.html#l00038
next
.
Referenced by
dbus-connection_8c-source.html#l00358
_dbus_connection_queue_received_message_link()
,
dbus-list_8c-source.html#l00388
_dbus_list_insert_before_link()
, and
dbus-message_8c-source.html#l00185
_dbus_message_add_size_counter_link()
.
void _dbus_list_clear
(
structDBusList.html
DBusList
**
list
)
Frees all links in the list and sets the list head to
group__DBusMacros.html#ga4
NULL
.
Does not free the data in each link, for obvious reasons. This is a linear-time operation.
Parameters:
list
address of the list head.
Definition at line
dbus-list_8c-source.html#l00556
556
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8h-source.html#l00094
_dbus_list_get_next_link
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
,
dbus-list_8c-source.html#l00734
_dbus_list_copy()
,
dbus-message_8c-source.html#l03173
_dbus_message_loader_unref()
,
dbus-connection_8c-source.html#l00875
_dbus_pending_call_complete_and_unlock()
,
dbus-timeout_8c-source.html#l00210
_dbus_timeout_list_free()
,
dbus-marshal-validate_8c-source.html#l00054
_dbus_validate_signature_with_reason()
,
dbus-watch_8c-source.html#l00225
_dbus_watch_list_free()
,
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
, and
dbus-address_8c-source.html#l00320
dbus_parse_address()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_copy
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
**
dest
)
Copies a list.
This is a linear-time operation. If there isn't enough memory to copy the entire list, the destination list will be set to
group__DBusMacros.html#ga4
NULL
.
Parameters:
list
address of the head of the list to copy.
dest
address where the copied list should be placed.
Returns:
group__DBusMacros.html#ga2
TRUE
on success,
group__DBusMacros.html#ga3
FALSE
if not enough memory.
Definition at line
dbus-list_8c-source.html#l00734
734
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-list_8c-source.html#l00249
_dbus_list_append()
,
dbus-list_8c-source.html#l00556
_dbus_list_clear()
,
dbus-list_8h-source.html#l00094
_dbus_list_get_next_link
,
dbus-list_8h-source.html#l00039
data
,
group__DBusMacros.html#ga3
FALSE
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
.
structDBusList.html
DBusList
* _dbus_list_find_last
(
structDBusList.html
DBusList
**
list
,
void *
data
)
Finds a value in the list.
Returns the last link with value equal to the given data pointer. This is a linear-time operation. Returns
group__DBusMacros.html#ga4
NULL
if no value found that matches.
Parameters:
list
address of the list head.
data
the value to find.
Returns:
the link if found
Definition at line
dbus-list_8c-source.html#l00486
486
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00594
_dbus_list_get_last_link()
,
dbus-list_8h-source.html#l00095
_dbus_list_get_prev_link
,
dbus-list_8h-source.html#l00039
data
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-list_8c-source.html#l00460
_dbus_list_remove_last()
,
dbus-message_8c-source.html#l03411
_dbus_message_loader_queue_messages()
, and
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
.
void _dbus_list_foreach
(
structDBusList.html
DBusList
**
list
,
group__DBusInternalsUtils.html#ga161
DBusForeachFunction
function
,
void *
data
)
Calls the given function for each element in the list.
The function is passed the list element as its first argument, and the given data as its second argument.
Parameters:
list
address of the head of the list.
function
function to call for each element.
data
extra data for the function.
Definition at line
dbus-list_8c-source.html#l00796
796
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8h-source.html#l00094
_dbus_list_get_next_link
,
dbus-list_8h-source.html#l00039
data
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-message_8c-source.html#l03173
_dbus_message_loader_unref()
,
dbus-timeout_8c-source.html#l00210
_dbus_timeout_list_free()
,
dbus-timeout_8c-source.html#l00238
_dbus_timeout_list_set_functions()
,
dbus-watch_8c-source.html#l00225
_dbus_watch_list_free()
,
dbus-watch_8c-source.html#l00253
_dbus_watch_list_set_functions()
, and
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
.
void _dbus_list_free_link
(
structDBusList.html
DBusList
*
link
)
Frees a linked list node allocated with _dbus_list_alloc_link.
Does not free the data in the node.
Parameters:
link
the list node
Definition at line
dbus-list_8c-source.html#l00233
233
of file
dbus-list_8c-source.html
dbus-list.c
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
,
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
,
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
,
dbus-connection_8c-source.html#l02128
dbus_connection_free_preallocated_send()
, and
dbus-pending-call_8c-source.html#l00170
dbus_pending_call_unref()
.
void* _dbus_list_get_first
(
structDBusList.html
DBusList
**
list
)
Gets the first data in the list.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the first data in the list, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00626
626
of file
dbus-list_8c-source.html
dbus-list.c
.
References
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-connection_8c-source.html#l02930
dbus_connection_borrow_message()
.
structDBusList.html
DBusList
* _dbus_list_get_first_link
(
structDBusList.html
DBusList
**
list
)
Gets the first link in the list.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the first link, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00581
581
of file
dbus-list_8c-source.html
dbus-list.c
.
Referenced by
dbus-list_8c-source.html#l00663
_dbus_list_pop_first()
,
dbus-list_8c-source.html#l00642
_dbus_list_pop_first_link()
,
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
,
dbus-timeout_8c-source.html#l00238
_dbus_timeout_list_set_functions()
,
dbus-watch_8c-source.html#l00253
_dbus_watch_list_set_functions()
,
dbus-address_8c-source.html#l00146
dbus_address_entry_get_value()
,
dbus-connection_8c-source.html#l03435
dbus_connection_dispatch()
, and
dbus-address_8c-source.html#l00320
dbus_parse_address()
.
void* _dbus_list_get_last
(
structDBusList.html
DBusList
**
list
)
Gets the last data in the list.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the last data in the list, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00610
610
of file
dbus-list_8c-source.html
dbus-list.c
.
References
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-connection_8c-source.html#l00476
_dbus_connection_get_message_to_send()
.
structDBusList.html
DBusList
* _dbus_list_get_last_link
(
structDBusList.html
DBusList
**
list
)
Gets the last link in the list.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the last link, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00594
594
of file
dbus-list_8c-source.html
dbus-list.c
.
References
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-connection_8c-source.html#l00492
_dbus_connection_message_sent()
,
dbus-list_8c-source.html#l00486
_dbus_list_find_last()
,
dbus-list_8c-source.html#l00686
_dbus_list_pop_last()
, and
dbus-connection_8c-source.html#l04198
dbus_connection_remove_filter()
.
int _dbus_list_get_length
(
structDBusList.html
DBusList
**
list
)
Gets the length of a list.
This is a linear-time operation.
Parameters:
list
address of the head of the list
Returns:
number of elements in the list.
Definition at line
dbus-list_8c-source.html#l00767
767
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8h-source.html#l00094
_dbus_list_get_next_link
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
, and
dbus-address_8c-source.html#l00320
dbus_parse_address()
.
void _dbus_list_insert_before_link
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
*
before_this_link
,
structDBusList.html
DBusList
*
link
)
Inserts a link into the list before the given existing link.
Parameters:
list
the list to modify
before_this_link
existing link to insert before, or
group__DBusMacros.html#ga4
NULL
to append
link
the link to insert
Definition at line
dbus-list_8c-source.html#l00388
388
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00294
_dbus_list_append_link()
, and
group__DBusMacros.html#ga4
NULL
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_length_is_one
(
structDBusList.html
DBusList
**
list
)
Check whether length is exactly one.
Parameters:
list
the list
Returns:
group__DBusMacros.html#ga2
TRUE
if length is exactly one
Definition at line
dbus-list_8c-source.html#l00820
820
of file
dbus-list_8c-source.html
dbus-list.c
.
References
group__DBusMacros.html#ga4
NULL
.
void* _dbus_list_pop_first
(
structDBusList.html
DBusList
**
list
)
Removes the first value in the list and returns it.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the first data in the list, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00663
663
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00581
_dbus_list_get_first_link()
,
dbus-list_8c-source.html#l00541
_dbus_list_remove_link()
,
dbus-list_8h-source.html#l00039
data
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-message_8c-source.html#l03491
_dbus_message_loader_pop_message()
, and
dbus-connection_8c-source.html#l03004
dbus_connection_steal_borrowed_message()
.
structDBusList.html
DBusList
* _dbus_list_pop_first_link
(
structDBusList.html
DBusList
**
list
)
Removes the first link in the list and returns it.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the first link in the list, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00642
642
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00581
_dbus_list_get_first_link()
,
dbus-list_8c-source.html#l00513
_dbus_list_unlink()
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-message_8c-source.html#l03505
_dbus_message_loader_pop_message_link()
.
void* _dbus_list_pop_last
(
structDBusList.html
DBusList
**
list
)
Removes the last value in the list and returns it.
This is a constant-time operation.
Parameters:
list
address of the list head.
Returns:
the last data in the list, or
group__DBusMacros.html#ga4
NULL
for an empty list.
Definition at line
dbus-list_8c-source.html#l00686
686
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00594
_dbus_list_get_last_link()
,
dbus-list_8c-source.html#l00541
_dbus_list_remove_link()
,
dbus-list_8h-source.html#l00039
data
, and
group__DBusMacros.html#ga4
NULL
.
Referenced by
dbus-marshal-validate_8c-source.html#l00054
_dbus_validate_signature_with_reason()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_prepend
(
structDBusList.html
DBusList
**
list
,
void *
data
)
Prepends a value to the list.
May return
group__DBusMacros.html#ga3
FALSE
if insufficient memory exists to add a list link. This is a constant-time operation.
Parameters:
list
address of the list head.
data
the value to prepend.
Returns:
group__DBusMacros.html#ga2
TRUE
on success.
Definition at line
dbus-list_8c-source.html#l00271
271
of file
dbus-list_8c-source.html
dbus-list.c
.
References
group__DBusMacros.html#ga3
FALSE
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-list_8c-source.html#l00249
_dbus_list_append()
.
void _dbus_list_prepend_link
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
*
link
)
Prepends a link to the list.
Cannot fail due to out of memory. This is a constant-time operation.
Parameters:
list
address of the list head.
link
the link to prepend.
Definition at line
dbus-list_8c-source.html#l00312
312
of file
dbus-list_8c-source.html
dbus-list.c
.
Referenced by
dbus-connection_8c-source.html#l00492
_dbus_connection_message_sent()
,
dbus-list_8c-source.html#l00294
_dbus_list_append_link()
, and
dbus-message_8c-source.html#l03517
_dbus_message_loader_putback_message_link()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_remove
(
structDBusList.html
DBusList
**
list
,
void *
data
)
Removes a value from the list.
Only removes the first value equal to the given data pointer, even if multiple values exist which match. This is a linear-time operation.
Parameters:
list
address of the list head.
data
the value to remove.
Returns:
group__DBusMacros.html#ga2
TRUE
if a value was found to remove.
Definition at line
dbus-list_8c-source.html#l00429
429
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8h-source.html#l00094
_dbus_list_get_next_link
,
dbus-list_8c-source.html#l00541
_dbus_list_remove_link()
,
dbus-list_8h-source.html#l00039
data
,
group__DBusMacros.html#ga3
FALSE
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-timeout_8c-source.html#l00339
_dbus_timeout_list_remove_timeout()
, and
dbus-watch_8c-source.html#l00384
_dbus_watch_list_remove_watch()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_remove_last
(
structDBusList.html
DBusList
**
list
,
void *
data
)
Removes a value from the list.
Only removes the last value equal to the given data pointer, even if multiple values exist which match. This is a linear-time operation.
Parameters:
list
address of the list head.
data
the value to remove.
Returns:
group__DBusMacros.html#ga2
TRUE
if a value was found to remove.
Definition at line
dbus-list_8c-source.html#l00460
460
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00486
_dbus_list_find_last()
,
dbus-list_8c-source.html#l00541
_dbus_list_remove_link()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-timeout_8c-source.html#l00309
_dbus_timeout_list_add_timeout()
, and
dbus-watch_8c-source.html#l00351
_dbus_watch_list_add_watch()
.
void _dbus_list_remove_link
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
*
link
)
Removes a link from the list.
This is a constant-time operation.
Parameters:
list
address of the list head.
link
the list link to remove.
Definition at line
dbus-list_8c-source.html#l00541
541
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8c-source.html#l00513
_dbus_list_unlink()
.
Referenced by
dbus-list_8c-source.html#l00663
_dbus_list_pop_first()
,
dbus-list_8c-source.html#l00686
_dbus_list_pop_last()
,
dbus-list_8c-source.html#l00429
_dbus_list_remove()
,
dbus-list_8c-source.html#l00460
_dbus_list_remove_last()
,
dbus-object-tree_8c-source.html#l00749
_dbus_object_tree_dispatch_and_unlock()
, and
dbus-connection_8c-source.html#l04198
dbus_connection_remove_filter()
.
void _dbus_list_unlink
(
structDBusList.html
DBusList
**
list
,
structDBusList.html
DBusList
*
link
)
Removes the given link from the list, but doesn't free it.
group__DBusList.html#ga11
_dbus_list_remove_link()
both removes the link and also frees it.
Parameters:
list
the list
link
the link in the list
Definition at line
dbus-list_8c-source.html#l00513
513
of file
dbus-list_8c-source.html
dbus-list.c
.
References
dbus-list_8h-source.html#l00038
next
,
group__DBusMacros.html#ga4
NULL
, and
dbus-list_8h-source.html#l00037
prev
.
Referenced by
dbus-connection_8c-source.html#l00492
_dbus_connection_message_sent()
,
dbus-list_8c-source.html#l00642
_dbus_list_pop_first_link()
,
dbus-list_8c-source.html#l00541
_dbus_list_remove_link()
, and
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
