Snapdragon® Telematics Application Framework (TelAF) Interface Specification
le_cfgAdmin_messages.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 
10 
11 #ifndef LE_CFGADMIN_MESSAGES_H_INCLUDE_GUARD
12 #define LE_CFGADMIN_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "le_cfgAdmin_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_LE_CFGADMIN_MSG_SIZE
18 
19 // Define the message type for communicating between client and server
20 typedef struct __attribute__((packed))
21 {
22  uint32_t id;
23  uint8_t buffer[_MAX_MSG_SIZE];
24 }
26 
27 #define _MSGID_le_cfgAdmin_ImportTree 0
28 #define _MSGID_le_cfgAdmin_ExportTree 1
29 #define _MSGID_le_cfgAdmin_DeleteTree 2
30 #define _MSGID_le_cfgAdmin_CreateTreeIterator 3
31 #define _MSGID_le_cfgAdmin_ReleaseTreeIterator 4
32 #define _MSGID_le_cfgAdmin_GetTreeName 5
33 #define _MSGID_le_cfgAdmin_NextTree 6
34 
35 
36 // Define type-safe pack/unpack functions for all enums, including included types
37 
38 static inline bool le_cfg_PacknodeType
39 (
40  uint8_t **bufferPtr,
41  le_cfg_nodeType_t value
42 )
43 {
44  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
45 }
46 
47 static inline bool le_cfg_UnpacknodeType
48 (
49  uint8_t **bufferPtr,
50  le_cfg_nodeType_t* valuePtr
51 )
52 {
53  bool result;
54  uint32_t value = 0;
55  result = le_pack_UnpackUint32(bufferPtr, &value);
56  if (result)
57  {
58  *valuePtr = (le_cfg_nodeType_t)value;
59  }
60  return result;
61 }
62 
63 // Define pack/unpack functions for all structures, including included types
64 
65 
66 #endif // LE_CFGADMIN_MESSAGES_H_INCLUDE_GUARD
#define _MAX_MSG_SIZE
Definition: le_cfgAdmin_messages.h:17
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
le_cfg_nodeType_t
Definition: le_cfg_common.h:69
static bool le_cfg_UnpacknodeType(uint8_t **bufferPtr, le_cfg_nodeType_t *valuePtr)
Definition: le_cfgAdmin_messages.h:48
static bool le_cfg_PacknodeType(uint8_t **bufferPtr, le_cfg_nodeType_t value)
Definition: le_cfgAdmin_messages.h:39
_Message_t
Definition: le_cfgAdmin_messages.h:25
struct __attribute__((packed))
Definition: le_cfgAdmin_messages.h:20
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205