Internalfunctions - SmartSlog KP Library
Main Page
Modules
Data Structures
Files
File List
Globals
subscription_internal.h
Go to the documentation of this file.
1
37
#ifndef SS_SUBSCRIPTION_INTERNAL_H
38
#define SS_SUBSCRIPTION_INTERNAL_H
39
40
41
#include "
structures.h
"
42
#include "
subscription.h
"
43
44
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
49
53
#define KPLIB_SBCR_UNSUBSCRIBE_ATTEMPTS 10
54
63
#define KPLIB_SBCR_ASYNC_WAITING_TIMEOUT 100
64
68
#define KPLIB_SBCR_SYNC_WAITING_TIMEOUT 1000
69
73
#define KPLIB_SBCR_UNSBCR_WAITING_TIMEOUT 500
74
78
#define KPLIB_SBCR_ASYNC_PROCESS_SLEEP 100
79
81
/******************************************************************************/
82
/****************************** Structures list *******************************/
83
85
91
typedef
struct
subscription_data_s
{
92
individual_t
*
ind
;
93
list_t *
properties
;
94
}
subscription_data_t
;
95
96
102
struct
subscription_s
{
103
int
rtti
;
109
list_t
sbrc_data
;
110
list_t
sbrc_classes
;
112
bool
is_active
;
113
bool
is_asynchronous
;
114
bool
is_stopped
;
116
ss_subs_info_t
info
;
117
ss_info_t
ss_info
;
122
subscription_changes_data_t
*
last_changes
;
123
127
void (*
changed_handler
)(
subscription_t
*sender);
128
132
void (*
unsubscription_handler
)(
subscription_t
*sender);
133
};
134
136
137
138
139
/******************************************************************************/
140
/****************************** Functions list ********************************/
142
155
subscription_data_t
*
new_subscription_data
(
individual_t
*individual,
156
list_t *properties);
157
168
void
free_subscription_data
(
subscription_data_t
*data,
bool
free_prop_list);
169
171
172
173
#ifdef __cplusplus
174
}
175
#endif
176
177
#endif
/* SS_SUBSCRIPTION_INTERNAL_H */
178
Generated on Mon Dec 17 2012 16:22:49 for Internalfunctions - SmartSlog KP Library by
1.8.1.1