22 #ifndef KAA_EXTENSION_H
23 #define KAA_EXTENSION_H
93 uint8_t *buffer,
size_t *size,
bool *sync_needed);
116 uint16_t extension_options,
const uint8_t *buffer,
size_t size);
173 uint8_t *buffer,
size_t *size,
bool *sync_needed);
181 uint16_t extension_options,
const uint8_t *buffer,
size_t size);
void * kaa_extension_get_context(kaa_extension_id id)
Return context for the given extension id.
kaa_error_t kaa_extension_request_serialize(kaa_extension_id id, uint32_t request_id, uint8_t *buffer, size_t *size, bool *sync_needed)
A proxy for kaa_extension::request_serialize().
General Kaa endpoint context.
Definition: kaa_context.h:50
An extension interface facing Kaa core.
Definition: kaa_extension.h:40
kaa_extension_id id
Definition: kaa_extension.h:41
Common C EP SDK definitions and small utilities.
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t kaa_extension_deinit_all(void)
Deinitializes all extensions in reverse order.
kaa_error_t(* server_sync)(void *context, uint32_t request_id, uint16_t extension_options, const uint8_t *buffer, size_t size)
Extension's action in response to the server's sync message.
Definition: kaa_extension.h:115
kaa_error_t kaa_extension_init_all(struct kaa_context_s *kaa_context)
Initializes all extensions.
kaa_error_t(* deinit)(void *context)
A reverse of init().
Definition: kaa_extension.h:60
kaa_error_t kaa_extension_server_sync(kaa_extension_id id, uint32_t request_id, uint16_t extension_options, const uint8_t *buffer, size_t size)
A proxy for kaa_extension::server_sync().
kaa_extension_id
Kaa extensions.
Definition: kaa_common.h:35
const struct kaa_extension * kaa_extension_get(kaa_extension_id id)
Return extension for given extension id.
kaa_error_t(* request_serialize)(void *context, uint32_t request_id, uint8_t *buffer, size_t *size, bool *sync_needed)
Serialize request.
Definition: kaa_extension.h:92
kaa_error_t(* init)(struct kaa_context_s *kaa_context, void **context)
Init function must initialize resource or return error code.
Definition: kaa_extension.h:50
kaa_error_t kaa_extension_set_context(kaa_extension_id id, void *context)
Sets extension context to later be retrieved with kaa_extension_get_context().