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-list.h
00001
/* -*- mode: C; c-file-style: "gnu" -*- */
00002
/* dbus-list.h Generic linked list utility (internal to D-BUS implementation)
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
00024
#ifndef DBUS_LIST_H
00025
#define DBUS_LIST_H
00026
00027
#include <dbus/dbus-internals.h>
00028
#include <dbus/dbus-memory.h>
00029
#include <dbus/dbus-types.h>
00030
00031
group__DBusMacros.html#ga0
DBUS_BEGIN_DECLS
00032
00033
typedef
struct
structDBusList.html
DBusList
DBusList;
00034
structDBusList.html
00035
struct
DBusList
00036 {
structDBusList.html#o0
00037
DBusList *
structDBusList.html#o0
prev
;
structDBusList.html#o1
00038
DBusList *
structDBusList.html#o1
next
;
structDBusList.html#o2
00039
void
*
structDBusList.html#o2
data
;
00040 };
00041
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga2
_dbus_list_append
(DBusList **list,
00042
void
*data);
00043
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga3
_dbus_list_prepend
(DBusList **list,
00044
void
*data);
00045
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_insert_before      (DBusList **list,
00046                                            DBusList  *before_this_link,
00047
void
*data);
00048
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_list_insert_after       (DBusList **list,
00049                                            DBusList  *after_this_link,
00050
void
*data);
00051
void
group__DBusList.html#ga6
_dbus_list_insert_before_link
(DBusList **list,
00052                                            DBusList  *before_this_link,
00053                                            DBusList  *link);
00054
void
_dbus_list_insert_after_link  (DBusList **list,
00055                                            DBusList  *after_this_link,
00056                                            DBusList  *link);
00057
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga7
_dbus_list_remove
(DBusList **list,
00058
void
*data);
00059
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga8
_dbus_list_remove_last
(DBusList **list,
00060
void
*data);
00061
void
group__DBusList.html#ga11
_dbus_list_remove_link
(DBusList **list,
00062                                            DBusList  *link);
00063 DBusList*
group__DBusList.html#ga9
_dbus_list_find_last
(DBusList **list,
00064
void
*data);
00065
void
group__DBusList.html#ga12
_dbus_list_clear
(DBusList **list);
00066 DBusList*
group__DBusList.html#ga13
_dbus_list_get_first_link
(DBusList **list);
00067 DBusList*
group__DBusList.html#ga14
_dbus_list_get_last_link
(DBusList **list);
00068
void
*
group__DBusList.html#ga15
_dbus_list_get_last
(DBusList **list);
00069
void
*
group__DBusList.html#ga16
_dbus_list_get_first
(DBusList **list);
00070
void
*
group__DBusList.html#ga18
_dbus_list_pop_first
(DBusList **list);
00071
void
*
group__DBusList.html#ga19
_dbus_list_pop_last
(DBusList **list);
00072 DBusList*
group__DBusList.html#ga17
_dbus_list_pop_first_link
(DBusList **list);
00073 DBusList*   _dbus_list_pop_last_link      (DBusList **list);
00074
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga20
_dbus_list_copy
(DBusList **list,
00075                                            DBusList **dest);
00076
int
group__DBusList.html#ga21
_dbus_list_get_length
(DBusList **list);
00077 DBusList*
group__DBusList.html#ga0
_dbus_list_alloc_link
(
void
*data);
00078
void
group__DBusList.html#ga1
_dbus_list_free_link
(DBusList  *link);
00079
void
group__DBusList.html#ga10
_dbus_list_unlink
(DBusList **list,
00080                                            DBusList  *link);
00081
void
group__DBusList.html#ga4
_dbus_list_append_link
(DBusList **list,
00082                                            DBusList  *link);
00083
void
group__DBusList.html#ga5
_dbus_list_prepend_link
(DBusList **list,
00084                                            DBusList  *link);
00085
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusList.html#ga23
_dbus_list_length_is_one
(DBusList **list);
00086
00087
00088
00089
00090
void
group__DBusList.html#ga22
_dbus_list_foreach
(DBusList            **list,
00091
group__DBusInternalsUtils.html#ga161
DBusForeachFunction
function,
00092
void
*data);
00093
group__DBusList.html#ga24
00094
#define _dbus_list_get_next_link(list, link) ((link)->next == *(list) ? NULL : (link)->next)
group__DBusList.html#ga25
00095
#define _dbus_list_get_prev_link(list, link) ((link) == *(list) ? NULL : (link)->prev)
00096
00097
group__DBusMacros.html#ga1
DBUS_END_DECLS
00098
00099
#endif
/* DBUS_LIST_H */
Generated on Tue Sep 13 01:28:07 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
