Astarte device API for Zephyr
0.8.0
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches
object.h
Go to the documentation of this file.
1
/*
2
* (C) Copyright 2024, SECO Mind Srl
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ASTARTE_DEVICE_SDK_OBJECT_H
8
#define ASTARTE_DEVICE_SDK_OBJECT_H
9
22
#include "
astarte_device_sdk/astarte.h
"
23
#include "
astarte_device_sdk/data.h
"
24
#include "
astarte_device_sdk/result.h
"
25
39
typedef
struct
40
{
42
const
char
*
path
;
44
astarte_data_t
data
;
45
}
astarte_object_entry_t
;
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
58
astarte_object_entry_t
astarte_object_entry_new
(
const
char
*path,
astarte_data_t
data);
59
68
astarte_result_t
astarte_object_entry_to_path_and_data
(
69
astarte_object_entry_t
entry,
const
char
**path,
astarte_data_t
*data);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
79
#endif
/* ASTARTE_DEVICE_SDK_OBJECT_H */
astarte.h
Global Astarte includes and defines.
data.h
Definitions for Astarte base data type.
astarte_object_entry_to_path_and_data
astarte_result_t astarte_object_entry_to_path_and_data(astarte_object_entry_t entry, const char **path, astarte_data_t *data)
Convert an Astarte object entry to an Astarte data and path.
astarte_object_entry_new
astarte_object_entry_t astarte_object_entry_new(const char *path, astarte_data_t data)
Initialize an Astarte object entry.
astarte_result_t
astarte_result_t
Astarte Device SDK return codes.
Definition
result.h:31
result.h
Astarte result types.
astarte_data_t
Base Astarte data type.
Definition
data.h:127
astarte_object_entry_t
Object entry data type.
Definition
object.h:40
astarte_object_entry_t::data
astarte_data_t data
data for the entry
Definition
object.h:44
astarte_object_entry_t::path
const char * path
Path for the entry.
Definition
object.h:42
include
astarte_device_sdk
object.h
Generated by
1.12.0