sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef _MP4LIST_H sl@0: #define _MP4LIST_H sl@0: sl@0: sl@0: #include <3gplibrary/mp4config.h> sl@0: sl@0: sl@0: sl@0: typedef struct node_s sl@0: { sl@0: struct node_s *next; sl@0: void *data; sl@0: mp4_u32 dataSize; sl@0: } node_s; sl@0: sl@0: sl@0: typedef struct list_s sl@0: { sl@0: mp4_u32 elementsInList; sl@0: mp4_u32 bytesInList; sl@0: mp4_u32 cumulativeBytesInList; sl@0: node_s *first; sl@0: node_s *last; sl@0: } list_s; sl@0: sl@0: sl@0: list_s *listCreate(); sl@0: void *listAppend(list_s *list, void *data, mp4_u32 datasize); sl@0: void listDeleteFirst(list_s *list); sl@0: void listDestroyList(list_s *list); sl@0: mp4_u32 listElementsInList(list_s *list); sl@0: mp4_u32 listBytesInList(list_s *list); sl@0: mp4_u32 listCumulativeBytesInList(list_s *list); sl@0: sl@0: sl@0: #endif sl@0: // End of File