Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
WsbElements.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | Wasabi - Elements
4 |
5 | $Id: WsbElements.h 10793 2014-06-25 12:46:08Z jebaseelir $
6 | Original author: Gilles Boccon-Gibod
7 |
8 | This software is provided to you pursuant to your agreement
9 | with Intertrust Technologies Corporation ("Intertrust").
10 | This software may be used only in accordance with the terms
11 | of the agreement.
12 |
13 | Copyright (c) 2003-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
16 
22 #ifndef _WSB_ELEMENTS_H_
23 #define _WSB_ELEMENTS_H_
24 
25 /*----------------------------------------------------------------------
26 | includes
27 +---------------------------------------------------------------------*/
28 #include "WsbConfig.h"
29 #include "WsbTypes.h"
30 
31 /*----------------------------------------------------------------------
32 | types
33 +---------------------------------------------------------------------*/
37 typedef struct WSB_Element WSB_Element;
38 
39 /*----------------------------------------------------------------------
40 | constants
41 +---------------------------------------------------------------------*/
45 typedef enum {
54 
55 /*----------------------------------------------------------------------
56 | prototypes
57 +---------------------------------------------------------------------*/
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
70 WSB_EXPORT void
72 
76 WSB_EXPORT WSB_Element*
77 WSB_Element_GetChild(WSB_Element* self, const char* name);
78 
82 WSB_EXPORT WSB_Element*
84 
88 WSB_EXPORT WSB_Cardinal
90 
94 WSB_EXPORT WSB_Element*
96 
100 WSB_EXPORT const char*
102 
106 WSB_EXPORT WSB_ElementType
108 
112 WSB_EXPORT WSB_Int64
114 
118 WSB_EXPORT double
120 
124 WSB_EXPORT WSB_Boolean
126 
130 WSB_EXPORT const char*
132 
136 WSB_EXPORT WSB_Result
137 WSB_Element_Serialize(WSB_Element* self, char* buffer, unsigned int* buffer_size);
138 
142 WSB_EXPORT WSB_Result
144 
147 #ifdef __cplusplus
148 }
149 #endif /* __cplusplus */
150 
151 #endif /* _WSB_ELEMENTS_H_ */
WSB_EXPORT WSB_Element * WSB_Element_GetParent(WSB_Element *self)
Gets the parent of the specified WSB_Element object.
WSB_EXPORT WSB_Result WSB_Element_Serialize(WSB_Element *self, char *buffer, unsigned int *buffer_size)
Serializes the specified WSB_Element into the supplied buffer.
WSB_EXPORT WSB_Result WSB_Element_Clone(WSB_Element *self, WSB_Element **clone)
Clones the specified WSB_Element.
WSB_EXPORT WSB_ElementType WSB_Element_GetType(WSB_Element *self)
Gets the element type of the specified WSB_Element object.
WSB_EXPORT WSB_Element * WSB_Element_GetChildAt(WSB_Element *self, WSB_Ordinal indx)
Gets the child of the specified WSB_Element object based on index.
struct WSB_Element WSB_Element
A WSB_Element object represents information about a hierarchical element.
Definition: WsbElements.h:37
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
Definition: WsbElements.h:48
WSB_EXPORT const char * WSB_Element_GetName(WSB_Element *self)
Gets the name of the specified WSB_Element object.
WSB_EXPORT WSB_Cardinal WSB_Element_GetChildCount(WSB_Element *self)
Gets the number of children of the specified WSB_Element object.
WSB_UInt32 WSB_Ordinal
An unsigned integer that represents a position in a sequence (such as an index into a list of element...
Definition: WsbTypes.h:127
WSB_EXPORT const char * WSB_Element_AsString(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a string.
Definition: WsbElements.h:46
WSB_EXPORT WSB_Boolean WSB_Element_AsBoolean(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a boolean.
WSB_ElementType
Identifiers for element type.
Definition: WsbElements.h:45
WSB_EXPORT void WSB_Element_Release(WSB_Element *self)
Releases the specified WSB_Element object.
Definition: WsbElements.h:49
WSB_EXPORT WSB_Int64 WSB_Element_AsInteger(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a 64 bits integer.
WSB_UInt32 WSB_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: WsbTypes.h:121
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_CONFIG_INT64_TYPE WSB_Int64
Definition: WsbTypes.h:48
Definition: WsbElements.h:51
Definition: WsbElements.h:52
Definition: WsbElements.h:47
WSB_EXPORT double WSB_Element_AsFloat(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a double.
Definition: WsbElements.h:50
Wasabi Result.
WSB_EXPORT WSB_Element * WSB_Element_GetChild(WSB_Element *self, const char *name)
Gets the child of the specified WSB_Element object based on name.