equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef _MP4LIST_H |
|
17 #define _MP4LIST_H |
|
18 |
|
19 |
|
20 #include <3gplibrary/mp4config.h> |
|
21 |
|
22 |
|
23 |
|
24 typedef struct node_s |
|
25 { |
|
26 struct node_s *next; |
|
27 void *data; |
|
28 mp4_u32 dataSize; |
|
29 } node_s; |
|
30 |
|
31 |
|
32 typedef struct list_s |
|
33 { |
|
34 mp4_u32 elementsInList; |
|
35 mp4_u32 bytesInList; |
|
36 mp4_u32 cumulativeBytesInList; |
|
37 node_s *first; |
|
38 node_s *last; |
|
39 } list_s; |
|
40 |
|
41 |
|
42 list_s *listCreate(); |
|
43 void *listAppend(list_s *list, void *data, mp4_u32 datasize); |
|
44 void listDeleteFirst(list_s *list); |
|
45 void listDestroyList(list_s *list); |
|
46 mp4_u32 listElementsInList(list_s *list); |
|
47 mp4_u32 listBytesInList(list_s *list); |
|
48 mp4_u32 listCumulativeBytesInList(list_s *list); |
|
49 |
|
50 |
|
51 #endif |
|
52 // End of File |