Internalfunctions - SmartSlog KP Library
Main Page
Modules
Data Structures
Files
File List
Globals
subscription.h
Go to the documentation of this file.
1
76
#ifdef KPI_LOW
77
#include <kpilow/kpi_low.h>
78
#else
79
#include <ckpi/ckpi.h>
80
#endif
81
82
83
#include <stdio.h>
84
85
#include "
structures.h
"
86
#include "
subscription_changes.h
"
87
88
#include "utils/list.h"
89
90
91
#ifndef _SS_SUBSCRIBE_H
92
#define _SS_SUBSCRIBE_H
93
94
#if defined(WIN32) || defined(WINCE) || defined(SMARTSLOG_WIN_EXPORTS)
95
#define SSLOG_EXTERN __declspec(dllexport)
96
#else
97
#define SSLOG_EXTERN
98
#endif
99
100
101
#ifdef __cplusplus
102
extern
"C"
{
103
#endif
104
105
106
/******************************************************************************/
107
/****************************** Structures list *******************************/
108
110
111
// It is needed only for doxygen, to generate stract docs without
112
// internal fields and internal *.h files.
113
#ifdef DOXY_EXTERNAL_ONLY_DATA
114
118
struct
subscription_s
{
119
};
120
#endif
121
126
typedef
struct
subscription_s
subscription_t
;
127
129
130
/******************************************************************************/
131
/****************************** Functions list ********************************/
132
134
150
SSLOG_EXTERN
subscription_t
*
sslog_new_subscription
(
bool
is_asynchronous
);
151
162
SSLOG_EXTERN
void
sslog_free_subscription
(
subscription_t
*subscription);
163
164
182
SSLOG_EXTERN
bool
sslog_sbcr_is_active
(
subscription_t
*subscription);
183
199
SSLOG_EXTERN
const
char
*
sslog_sbcr_get_id
(
subscription_t
*subscription);
200
222
SSLOG_EXTERN
subscription_changes_data_t
*
sslog_sbcr_get_changes_last
(
subscription_t
*subscription);
223
224
244
SSLOG_EXTERN
void
sslog_sbcr_set_changed_handler
(
subscription_t
*subscription,
245
void
(*handler)(
subscription_t
*));
246
247
274
SSLOG_EXTERN
void
sslog_sbcr_set_unsubscription_handler
(
subscription_t
*subscription,
275
void
(*handler)(
subscription_t
*));
276
277
296
SSLOG_EXTERN
int
sslog_sbcr_add_individual
(
subscription_t
*subscription,
297
individual_t
*individual, list_t *properties);
298
318
SSLOG_EXTERN
int
sslog_sbcr_add_class
(
subscription_t
*subscription,
class_t
*ont_class);
319
320
351
SSLOG_EXTERN
int
sslog_sbcr_subscribe
(
subscription_t
*subscription);
352
379
SSLOG_EXTERN
int
sslog_sbcr_unsubscribe
(
subscription_t
*subscription);
380
395
SSLOG_EXTERN
void
sslog_sbcr_unsubscribe_all
(
bool
with_free);
396
397
425
SSLOG_EXTERN
int
sslog_sbcr_wait
(
subscription_t
*subscription);
426
441
SSLOG_EXTERN
void
sslog_sbcr_stop
(
subscription_t
*subscription);
442
456
SSLOG_EXTERN
void
sslog_sbcr_stop_all
();
457
459
460
461
#ifdef __cplusplus
462
}
463
#endif
464
465
#endif
/* _SS_SUBSCRIBE_H */
Generated on Mon Dec 17 2012 16:22:49 for Internalfunctions - SmartSlog KP Library by
1.8.1.1