Internalfunctions - SmartSlog KP Library
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 {
93  list_t *properties;
95 
96 
103  int rtti;
109  list_t sbrc_data;
110  list_t sbrc_classes;
112  bool is_active;
114  bool is_stopped;
116  ss_subs_info_t info;
117  ss_info_t ss_info;
123 
127  void (*changed_handler)(subscription_t *sender);
128 
133 };
134 
136 
137 
138 
139 /******************************************************************************/
140 /****************************** Functions list ********************************/
142 
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