21 #ifndef PT_API_VERSION 22 #define PT_API_VERSION 2 24 #if PT_API_VERSION != 2 25 #error "Including mixed versions of Protocol API" 28 #ifndef PT_COMMON_API_H 29 #define PT_COMMON_API_H 40 typedef struct pt_api_mutex_s pt_api_mutex_t;
41 typedef int32_t connection_id_t;
42 #define PT_API_CONNECTION_ID_INVALID -1 44 typedef struct pt_client_data_s pt_client_t;
46 typedef enum { NONE, QUEUE } queuemode_t;
52 PT_STATUS_SUCCESS = 0,
54 PT_STATUS_UNNECESSARY,
55 PT_STATUS_ITEM_EXISTS,
56 PT_STATUS_INVALID_PARAMETERS,
57 PT_STATUS_ALLOCATION_FAIL,
58 PT_STATUS_NOT_CONNECTED,
60 PT_STATUS_FEATURE_INITIALIZATION_FAIL
67 PT_STATE_UNREGISTERED,
70 PT_STATE_UNREGISTERING
77 PT_DEVICE_FEATURE_NONE = 0,
78 PT_DEVICE_FEATURE_CERTIFICATE_RENEWAL = (1 << 1),
79 PT_DEVICE_FEATURE_FIRMWARE_UPDATE = (1 << 2),
Common constants used in Edge Core.
pt_device_feature_e
Enumeration contain device feature flags.
Definition: pt_common_api.h:76
Default message ID generator for JSON-RPC messages.
pt_status_t
Enumeration containing the possible return status codes for Protocol API functions.
Definition: pt_common_api.h:51
pt_device_state_e
Enumeration contain device registration states.
Definition: pt_common_api.h:66