le_avdata_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
90 #ifndef LE_AVDATA_INTERFACE_H_INCLUDE_GUARD
91 #define LE_AVDATA_INTERFACE_H_INCLUDE_GUARD
92 
93 
94 #include "legato.h"
95 
96 //--------------------------------------------------------------------------------------------------
100 //--------------------------------------------------------------------------------------------------
102 (
103  void
104 );
105 
106 //--------------------------------------------------------------------------------------------------
110 //--------------------------------------------------------------------------------------------------
112 (
113  void
114 );
115 
116 
117 //--------------------------------------------------------------------------------------------------
121 //--------------------------------------------------------------------------------------------------
122 typedef struct le_avdata_AssetInstance* le_avdata_AssetInstanceRef_t;
123 
124 
125 //--------------------------------------------------------------------------------------------------
129 //--------------------------------------------------------------------------------------------------
130 #define LE_AVDATA_ASSET_NAME_LEN 47
131 
132 
133 //--------------------------------------------------------------------------------------------------
137 //--------------------------------------------------------------------------------------------------
138 #define LE_AVDATA_FIELD_NAME_LEN 47
139 
140 
141 //--------------------------------------------------------------------------------------------------
145 //--------------------------------------------------------------------------------------------------
146 #define LE_AVDATA_STRING_VALUE_LEN 255
147 
148 
149 //--------------------------------------------------------------------------------------------------
153 //--------------------------------------------------------------------------------------------------
154 #define LE_AVDATA_BINARY_VALUE_LEN 255
155 
156 
157 //--------------------------------------------------------------------------------------------------
161 //--------------------------------------------------------------------------------------------------
162 typedef struct le_avdata_FieldEventHandler* le_avdata_FieldEventHandlerRef_t;
163 
164 
165 //--------------------------------------------------------------------------------------------------
173 //--------------------------------------------------------------------------------------------------
174 typedef void (*le_avdata_FieldHandlerFunc_t)
175 (
177  const char* fieldName,
178  void* contextPtr
179 );
180 
181 //--------------------------------------------------------------------------------------------------
187 //--------------------------------------------------------------------------------------------------
189 (
192 
193  const char* fieldName,
195 
196  le_avdata_FieldHandlerFunc_t handlerPtr,
198 
199  void* contextPtr
201 );
202 
203 //--------------------------------------------------------------------------------------------------
207 //--------------------------------------------------------------------------------------------------
209 (
212 );
213 
214 //--------------------------------------------------------------------------------------------------
222 //--------------------------------------------------------------------------------------------------
224 (
225  const char* assetName
227 );
228 
229 //--------------------------------------------------------------------------------------------------
235 //--------------------------------------------------------------------------------------------------
236 void le_avdata_Delete
237 (
240 );
241 
242 //--------------------------------------------------------------------------------------------------
248 //--------------------------------------------------------------------------------------------------
249 void le_avdata_GetInt
250 (
253 
254  const char* fieldName,
256 
257  int32_t* valuePtr
259 );
260 
261 //--------------------------------------------------------------------------------------------------
267 //--------------------------------------------------------------------------------------------------
268 void le_avdata_SetInt
269 (
272 
273  const char* fieldName,
275 
276  int32_t value
278 );
279 
280 //--------------------------------------------------------------------------------------------------
286 //--------------------------------------------------------------------------------------------------
288 (
291 
292  const char* fieldName,
294 
295  float* valuePtr
297 );
298 
299 //--------------------------------------------------------------------------------------------------
305 //--------------------------------------------------------------------------------------------------
307 (
310 
311  const char* fieldName,
313 
314  float value
316 );
317 
318 //--------------------------------------------------------------------------------------------------
324 //--------------------------------------------------------------------------------------------------
326 (
329 
330  const char* fieldName,
332 
333  bool* valuePtr
335 );
336 
337 //--------------------------------------------------------------------------------------------------
343 //--------------------------------------------------------------------------------------------------
345 (
348 
349  const char* fieldName,
351 
352  bool value
354 );
355 
356 //--------------------------------------------------------------------------------------------------
362 //--------------------------------------------------------------------------------------------------
364 (
367 
368  const char* fieldName,
370 
371  char* value,
373 
374  size_t valueNumElements
376 );
377 
378 //--------------------------------------------------------------------------------------------------
384 //--------------------------------------------------------------------------------------------------
386 (
389 
390  const char* fieldName,
392 
393  const char* value
395 );
396 
397 //--------------------------------------------------------------------------------------------------
403 //--------------------------------------------------------------------------------------------------
405 (
408 
409  const char* fieldName,
411 
412  uint8_t* valuePtr,
414 
415  size_t* valueNumElementsPtr
417 );
418 
419 //--------------------------------------------------------------------------------------------------
425 //--------------------------------------------------------------------------------------------------
427 (
430 
431  const char* fieldName,
433 
434  const uint8_t* valuePtr,
436 
437  size_t valueNumElements
439 );
440 
441 
442 #endif // LE_AVDATA_INTERFACE_H_INCLUDE_GUARD
443 
void le_avdata_Delete(le_avdata_AssetInstanceRef_t instRef)
void le_avdata_SetBool(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, bool value)
void le_avdata_RemoveFieldEventHandler(le_avdata_FieldEventHandlerRef_t addHandlerRef)
void le_avdata_GetString(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, char *value, size_t valueNumElements)
void le_avdata_SetBinary(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, const uint8_t *valuePtr, size_t valueNumElements)
void(* le_avdata_FieldHandlerFunc_t)(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, void *contextPtr)
Definition: le_avdata_interface.h:175
void le_avdata_DisconnectService(void)
struct le_avdata_AssetInstance * le_avdata_AssetInstanceRef_t
Definition: le_avdata_interface.h:122
void le_avdata_ConnectService(void)
void le_avdata_SetFloat(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, float value)
void le_avdata_GetFloat(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, float *valuePtr)
void le_avdata_GetBinary(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, uint8_t *valuePtr, size_t *valueNumElementsPtr)
struct le_avdata_FieldEventHandler * le_avdata_FieldEventHandlerRef_t
Definition: le_avdata_interface.h:162
void le_avdata_GetInt(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, int32_t *valuePtr)
le_avdata_AssetInstanceRef_t le_avdata_Create(const char *assetName)
le_avdata_FieldEventHandlerRef_t le_avdata_AddFieldEventHandler(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, le_avdata_FieldHandlerFunc_t handlerPtr, void *contextPtr)
void le_avdata_GetBool(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, bool *valuePtr)
void le_avdata_SetString(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, const char *value)
void le_avdata_SetInt(le_avdata_AssetInstanceRef_t instRef, const char *fieldName, int32_t value)