~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to include/freerdp/utils/list.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20141111122050-7z628f4ab38qxad5
Tags: upstream-1.1.0~git20140921.1.440916e+dfsg1
ImportĀ upstreamĀ versionĀ 1.1.0~git20140921.1.440916e+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * FreeRDP: A Remote Desktop Protocol Client
 
2
 * FreeRDP: A Remote Desktop Protocol Implementation
3
3
 * Double-linked List Utils
4
4
 *
5
5
 * Copyright 2011 Vic Lee
17
17
 * limitations under the License.
18
18
 */
19
19
 
20
 
#ifndef __LIST_UTILS_H
21
 
#define __LIST_UTILS_H
 
20
#ifndef FREERDP_UTILS_LIST_H
 
21
#define FREERDP_UTILS_LIST_H
22
22
 
23
23
#include <freerdp/api.h>
24
 
#include <freerdp/utils/memory.h>
25
24
 
26
25
typedef struct _LIST_ITEM LIST_ITEM;
 
26
 
27
27
struct _LIST_ITEM
28
28
{
29
29
        void* data;
32
32
};
33
33
 
34
34
typedef struct _LIST LIST;
 
35
 
35
36
struct _LIST
36
37
{
37
38
        int count;
39
40
        LIST_ITEM* tail;
40
41
};
41
42
 
 
43
#ifdef __cplusplus
 
44
extern "C" {
 
45
#endif
 
46
 
42
47
FREERDP_API LIST* list_new(void);
43
48
FREERDP_API void list_free(LIST* list);
44
49
FREERDP_API void list_enqueue(LIST* list, void* data);
49
54
FREERDP_API void* list_remove(LIST* list, void* data);
50
55
FREERDP_API int list_size(LIST* list);
51
56
 
52
 
#endif /* __LIST_UTILS_H */
 
57
#ifdef __cplusplus
 
58
}
 
59
#endif
 
60
 
 
61
#endif /* FREERDP_UTILS_LIST_H */