Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
kaa_event_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef KAA_EVENT_PRIVATE_H
17 #define KAA_EVENT_PRIVATE_H
18 
19 #include <kaa_event.h>
20 #include <kaa_status.h>
21 #include <kaa_channel_manager.h>
22 #include <utilities/kaa_log.h>
23 #include <kaa_platform_utils.h>
24 
26  kaa_channel_manager_t *channel_manager, kaa_logger_t *logger);
28 kaa_error_t kaa_event_manager_send_event(kaa_event_manager_t *self, const char *fqn, const char *event_data,
29  size_t event_data_size, kaa_endpoint_id_p target);
30 
32  const char *fqn, const char *event_data, size_t event_data_size, kaa_endpoint_id_p target);
33 
35  kaa_event_callback_t callback);
36 
37 kaa_error_t kaa_event_request_get_size(kaa_event_manager_t *self, size_t *expected_size);
40 kaa_error_t kaa_event_handle_server_sync(kaa_event_manager_t *self, kaa_platform_message_reader_t *reader, uint16_t extension_options, size_t extension_length, size_t request_id);
41 
42 #endif /* KAA_EVENT_PRIVATE_H */
User defined channels manager for Kaa C SDK.
Definition: kaa_platform_utils.h:40
kaa_error_t kaa_event_manager_add_on_event_callback(kaa_event_manager_t *self, const char *fqn, kaa_event_callback_t callback)
void(* kaa_event_callback_t)(const char *event_fqn, const char *event_data, size_t event_data_size, kaa_endpoint_id_p event_source)
Definition: kaa_event.h:35
size_t kaa_event_block_id
Definition: kaa_event.h:36
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t kaa_event_request_serialize(kaa_event_manager_t *self, size_t request_id, kaa_platform_message_writer_t *writer)
Definition: kaa_platform_utils.h:33
Kaa event subsystem API.
struct kaa_logger_t kaa_logger_t
Definition: kaa_log.h:68
kaa_error_t kaa_event_manager_create(kaa_event_manager_t **event_manager_p, kaa_status_t *status, kaa_channel_manager_t *channel_manager, kaa_logger_t *logger)
void kaa_event_manager_destroy(kaa_event_manager_t *self)
struct kaa_channel_manager_t kaa_channel_manager_t
Definition: kaa_channel_manager.h:42
Simple logger for Kaa C Endpoint.
kaa_error_t kaa_event_manager_send_event(kaa_event_manager_t *self, const char *fqn, const char *event_data, size_t event_data_size, kaa_endpoint_id_p target)
const uint8_t * kaa_endpoint_id_p
Definition: kaa_common.h:96
kaa_error_t kaa_event_handle_server_sync(kaa_event_manager_t *self, kaa_platform_message_reader_t *reader, uint16_t extension_options, size_t extension_length, size_t request_id)
kaa_error_t kaa_event_request_get_size(kaa_event_manager_t *self, size_t *expected_size)
Definition: kaa_status.h:36
struct kaa_event_manager_t kaa_event_manager_t
Definition: kaa_event.h:40
kaa_error_t kaa_event_manager_add_event_to_transaction(kaa_event_manager_t *self, kaa_event_block_id trx_id, const char *fqn, const char *event_data, size_t event_data_size, kaa_endpoint_id_p target)