client-c  0.9.0
kaa_status.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 
17 #ifndef KAA_STATUS_H_
18 #define KAA_STATUS_H_
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "kaa_error.h"
25 #include "kaa_common.h"
26 #include "collections/kaa_list.h"
27 #include "platform/ext_sha.h"
28 
29 typedef struct {
30  uint64_t topic_id;
31  uint32_t sqn_number;
33 
34 #ifndef KAA_STATUS_T
35 # define KAA_STATUS_T
36 typedef struct
37 {
38  uint32_t event_seq_n;
41  bool is_updated;
48  int32_t topic_list_hash;
50  bool has_update;
51 } kaa_status_t;
52 
53 #endif
54 
55 
56 #ifdef __cplusplus
57 } // extern "C"
58 #endif
59 #endif /* KAA_STATUS_H_ */
bool is_attached
Definition: kaa_status.h:40
unsigned char kaa_digest[SHA_1_DIGEST_LENGTH]
Definition: ext_sha.h:34
bool is_registered
Definition: kaa_status.h:39
bool has_update
Definition: kaa_status.h:50
Common C EP SDK definitions and small utilities.
uint64_t topic_id
Definition: kaa_status.h:30
char * endpoint_access_token
Definition: kaa_status.h:49
struct kaa_list_t kaa_list_t
Definition: kaa_list.h:30
kaa_list_t * topic_states
Definition: kaa_status.h:46
Kaa error codes.
uint32_t sqn_number
Definition: kaa_status.h:31
kaa_list_t * topics
Definition: kaa_status.h:47
int32_t topic_list_hash
Definition: kaa_status.h:48
bool profile_needs_resync
Definition: kaa_status.h:44
kaa_digest profile_hash
Definition: kaa_status.h:43
uint32_t event_seq_n
Definition: kaa_status.h:38
kaa_digest endpoint_public_key_hash
Definition: kaa_status.h:42
bool is_updated
Definition: kaa_status.h:41