libUPnP 1.14.19
list.h
1#ifndef _UPNP_LIST_H_
2#define _UPNP_LIST_H_
3
4/*******************************************************************************
5 *
6 * Copyright (c) 2000-2003 Intel Corporation
7 * All rights reserved.
8 * Copyright (C) 2011-2012 France Telecom All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
12 *
13 * * Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * * Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 * * Neither name of Intel Corporation nor the names of its contributors
19 * may be used to endorse or promote products derived from this software
20 * without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
26 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
30 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 ******************************************************************************/
35
41#include "UpnpGlobal.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif /* __cplusplus */
46
51typedef struct UpnpListHead
52{
53 struct UpnpListHead *next, *prev;
55
58
60UPNP_EXPORT_SPEC void UpnpListInit(UpnpListHead *list);
61
64UPNP_EXPORT_SPEC UpnpListIter UpnpListBegin(UpnpListHead *list);
65
68
71 UpnpListHead *list, UpnpListIter pos);
72
74UPNP_EXPORT_SPEC UpnpListIter UpnpListInsert(
75 UpnpListHead *list, UpnpListIter pos, UpnpListHead *elt);
76
78UPNP_EXPORT_SPEC UpnpListIter UpnpListErase(
79 UpnpListHead *list, UpnpListIter pos);
80
81#ifdef __cplusplus
82}
83#endif /* __cplusplus */
84
85#endif /* _UPNPLISTH_ */
Defines constants that for some reason are not defined on some systems.
#define UPNP_EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition UpnpGlobal.h:98
Definition list.h:52