client-c
0.7.0
Main Page
Classes
Files
File List
File Members
kaa_platform_protocol.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014 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
25
#ifndef KAA_PLATFORM_PROTOCOL_H_
26
#define KAA_PLATFORM_PROTOCOL_H_
27
28
#include "
kaa_error.h
"
29
#include "
kaa_context.h
"
30
#include "
kaa_common.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
39
#ifndef KAA_PLATFORM_PRTOCOL_T
40
# define KAA_PLATFORM_PRTOCOL_T
41
typedef
struct
kaa_platform_protocol_t
kaa_platform_protocol_t
;
42
#endif
43
47
typedef
char
* (*kaa_buffer_alloc_fn)(
void
*context,
size_t
buffer_size);
48
52
typedef
struct
{
53
kaa_service_t
*
services
;
54
size_t
services_count
;
55
kaa_buffer_alloc_fn
allocator
;
56
void
*
allocator_context
;
57
}
kaa_serialize_info_t
;
58
74
kaa_error_t
kaa_platform_protocol_serialize_client_sync
(
kaa_platform_protocol_t
*
self
75
,
const
kaa_serialize_info_t
*info
76
,
char
**buffer
77
,
size_t
*buffer_size);
78
88
kaa_error_t
kaa_platform_protocol_process_server_sync
(
kaa_platform_protocol_t
*
self
89
,
const
char
*buffer
90
,
size_t
buffer_size);
91
92
#ifdef __cplusplus
93
}
/* extern "C" */
94
#endif
95
#endif
/* KAA_PLATFORM_PROTOCOL_H_ */
kaa_buffer_alloc_fn
char *(* kaa_buffer_alloc_fn)(void *context, size_t buffer_size)
Definition:
kaa_platform_protocol.h:47
kaa_platform_protocol_serialize_client_sync
kaa_error_t kaa_platform_protocol_serialize_client_sync(kaa_platform_protocol_t *self, const kaa_serialize_info_t *info, char **buffer, size_t *buffer_size)
Constructs a sync request for the specified list of services based on the current state of Kaa contex...
kaa_common.h
Common C EP SDK definitions and small utilities.
kaa_error_t
kaa_error_t
Definition:
kaa_error.h:31
kaa_service_t
kaa_service_t
Types of Kaa platform services.
Definition:
kaa_common.h:57
kaa_serialize_info_t::allocator_context
void * allocator_context
Definition:
kaa_platform_protocol.h:56
kaa_context.h
Kaa endpoint context definition.
kaa_error.h
Kaa error codes.
kaa_serialize_info_t::services_count
size_t services_count
Definition:
kaa_platform_protocol.h:54
kaa_serialize_info_t
Definition:
kaa_platform_protocol.h:52
kaa_serialize_info_t::allocator
kaa_buffer_alloc_fn allocator
Definition:
kaa_platform_protocol.h:55
kaa_serialize_info_t::services
kaa_service_t * services
Definition:
kaa_platform_protocol.h:53
kaa_platform_protocol_t
struct kaa_platform_protocol_t kaa_platform_protocol_t
Definition:
kaa_context.h:38
kaa_platform_protocol_process_server_sync
kaa_error_t kaa_platform_protocol_process_server_sync(kaa_platform_protocol_t *self, const char *buffer, size_t buffer_size)
Processes downstream data received from Operations server.
var
lib
jenkins
workspace
kaa_stable
client
client-multi
client-c
src
kaa
kaa_platform_protocol.h
Generated on Tue Mar 31 2015 13:20:49 for client-c by
1.8.7