21 #ifndef PROTOCOL_API_H 22 #define PROTOCOL_API_H 24 #include "jsonrpc/jsonrpc.h" 26 #include "edge-core/server.h" 28 #include "certificate-enrollment-client/ce_status.h" 29 #include "certificate-enrollment-client/ce_defs.h" 75 int device_register(json_t *request, json_t *json_params, json_t **result,
void *userdata);
88 int device_unregister(json_t *request, json_t *json_params, json_t **result,
void *userdata);
100 int write_value(json_t *request, json_t *json_params, json_t **result,
void *userdata);
124 int renew_certificate(json_t *request, json_t *json_params, json_t **result,
void *userdata);
153 #ifdef MBED_EDGE_SUBDEVICE_FOTA 165 #endif // MBED_EDGE_SUBDEVICE_FOTA int est_enrollment_result_notifier(est_enrollment_result_e result, struct cert_chain_context_s *cert_chain, void *ctx)
Sends the EST enrollment result to the protocol translator.
Edge service error codes.
void init_protocol()
Initialize Edge RPC API.
int write_value(json_t *request, json_t *json_params, json_t **result, void *userdata)
Write endpoint device values.
int renew_certificate(json_t *request, json_t *json_params, json_t **result, void *userdata)
Initiate certificate renewal operation for a certificate.
int protocol_translator_register(json_t *request, json_t *json_params, json_t **result, void *userdata)
Register the protocol translator to Edge.
int device_register(json_t *request, json_t *json_params, json_t **result, void *userdata)
Register an endpoint device to Edge.
int est_request_enrollment(json_t *request, json_t *json_params, json_t **result, void *userdata)
Requests an EST enrollment for a certificate.
int device_unregister(json_t *request, json_t *json_params, json_t **result, void *userdata)
Unregister an endpoint device from Edge.
int write_to_pt(edgeclient_request_context_t *ctx, void *userdata)
Writes the updated values to the protocol translator.
struct edgeclient_request_context edgeclient_request_context_t
The edgeclient request context data.
Definition: protocol_api.h:140
Definition: pt_certificate_api.h:105
int certificate_renewal_list_set(json_t *request, json_t *json_params, json_t **result, void *userdata)
Set list of certificates to receive renewal status updates for.
int certificate_renewal_notifier(const char *certificate_name, ce_status_e status, ce_initiator_e initiator, void *ctx)
Writes the certificate renewal status to the protocol translator.