|
Google Cloud IoT device SDK for embedded C
1.0.2
|
Go to the source code of this file.
Data Structures | |
| union | iotc_sub_call_params_u |
| union | iotc_crypto_key_union_u |
| struct | iotc_crypto_key_data_t |
Typedefs | |
| typedef int32_t | iotc_context_handle_t |
| typedef int32_t | iotc_timed_task_handle_t |
| typedef void() | iotc_user_task_callback_t(const iotc_context_handle_t context_handle, const iotc_timed_task_handle_t timed_task_handle, void *user_data) |
| typedef void() | iotc_user_callback_t(iotc_context_handle_t in_context_handle, void *data, iotc_state_t state) |
| typedef enum iotc_subscription_data_type_e | iotc_sub_call_type_t |
| typedef union iotc_sub_call_params_u | iotc_sub_call_params_t |
| typedef void() | iotc_user_subscription_callback_t(iotc_context_handle_t in_context_handle, iotc_sub_call_type_t call_type, const iotc_sub_call_params_t *const params, iotc_state_t state, void *user_data) |
| typedef enum iotc_crypto_key_union_type_e | iotc_crypto_key_union_type_t |
| typedef union iotc_crypto_key_union_u | iotc_crypto_key_union_t |
| typedef enum iotc_crypto_key_signature_algorithm_e | iotc_crypto_key_signature_algorithm_t |
Defines custom data formats.
Definition in file iotc_types.h.
An internal context handle.
Definition at line 44 of file iotc_types.h.
The ES256 algorithm with which to sign JWTs.
The public or private key data.
The internal code that represents the data type of the public or private key.
The operational data for the user-defined subscription callback.
The data type of the user-defined subscription callback.
The handle to identify timed tasks.
Definition at line 50 of file iotc_types.h.
| iotc_user_callback_t |
A custom callback. The API-specific parameters are cast to the data types in the API call.
| [in] | in_context_handle | The context handle provided to the original API call. |
| [in] | data | The API-specific parameters. |
| [in] | state | The state on which to invoke the callback. |
Definition at line 78 of file iotc_types.h.
| iotc_user_subscription_callback_t |
The subscription callback.
| [in] | in_context_handle | The context on which the callback is invoked. |
| [in] | call_type | The data type of the data parameter. |
| [in] | params | A pointer to a structure that holds parameter details. |
| [in] | topic | The name of the topic. |
| [in] | user_data | A pointer specified when registering the subscription callback. |
Definition at line 187 of file iotc_types.h.
| iotc_user_task_callback_t |
A custom callback for timed tasks.
| [in] | in_context_handle | The context handle provided to the function that schedules timed tasks. |
| [in] | timed_task_handle | The handle that identifies the timed task. |
| [in] | user_data | The data provided to the function that schedules timed tasks |
Definition at line 63 of file iotc_types.h.
| Enumerator | |
|---|---|
| IOTC_CRYPTO_KEY_SIGNATURE_ALGORITHM_INVALID | The signature algorithm is invalid. |
| IOTC_CRYPTO_KEY_SIGNATURE_ALGORITHM_ES256 | The signature algorithm is an ECDSA with P-256 and SHA-256. |
Definition at line 247 of file iotc_types.h.
| Enumerator | |
|---|---|
| IOTC_CRYPTO_KEY_UNION_TYPE_PEM | The public or private key data is a null-terminated PEM string. |
| IOTC_CRYPTO_KEY_UNION_TYPE_SLOT_ID | Slot IDs address the public or private key data. These are the same slots from which the BSP reads the key. |
| IOTC_CRYPTO_KEY_UNION_TYPE_CUSTOM | The public or private key data is untyped. The BSP determines the data format. |
Definition at line 199 of file iotc_types.h.
| Enumerator | |
|---|---|
| IOTC_SUB_CALL_UNKNOWN | Unknown callback type. Check the state value. |
| IOTC_SUB_CALL_SUBACK | The callback is a SUBACK notification. |
| IOTC_SUB_CALL_MESSAGE | The callback is a MESSAGE notification. |
Definition at line 87 of file iotc_types.h.