HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
collection.h
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _COLLECTION_H
26 #define _COLLECTION_H
27 
28 extern void *JS_COLLECTION_CLASS;
29 
30 void* HBBTV_CollectionCreate(S_JS_OBJ_VTAB *vtab);
31 void HBBTV_CollectionAllocItems(void *obj, U32BIT num);
32 
33 void** HBBTV_CollectionGetList(void *obj, U32BIT *num);
34 void HBBTV_CollectionSetItem(void *obj, U32BIT index, void *item);
35 BOOLEAN HBBTV_CollectionFindItem(void *obj, void *item, U32BIT *index);
36 BOOLEAN HBBTV_CollectionAppendItem(void *obj, void *item);
37 
38 void* HBBTV_CollectionNext(void *obj, void *item);
39 void* HBBTV_CollectionPrev(void *obj, void *item);
40 
47 void HBBTV_CollectionSetInheritingObject(void *obj, void *object);
48 
54 void *HBBTV_CollectionGetInheritingObject(void *obj);
55 
60 void HBBTV_CollectionEmpty(void *obj);
61 
68 void HBBTV_CollectionCopy(void *destination, void *source);
69 
70 #endif /* _COLLECTION_H */
Definition: object.h:40