API -&nbspSmartSlog KP Library
ss_func.h
Go to the documentation of this file.
1 /*
2  * ss_func.h - interface for functions for work with SS.
3  * This file is part of PetrSU KP library.
4  *
5  * Copyright (C) 2009 - Alexandr A. Lomov. All rights reserved.
6  *
7  * PetrSU KP library is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * PetrSU KP library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with PetrSU KP library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301 USA
21  */
22 
23 #ifdef KPI_LOW
24  #include <kpilow/kpi_low.h>
25 #else
26  #include <ckpi/ckpi.h>
27 #endif
28 
29 #include "utils/check_func.h"
30 #include "ss_multisib.h"
31 #include <time.h>
32 
33 #ifndef _SS_FUNC_H
34 #define _SS_FUNC_H
35 
36 #if defined(WIN32) || defined(WINCE) || defined(SMARTSLOG_WIN_EXPORTS)
37 #define SSLOG_EXTERN __declspec(dllexport)
38 #else
39 #define SSLOG_EXTERN
40 #endif
41 
45 #ifndef RDF_TYPE
46 #define RDF_TYPE "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
47 #endif
48 
52 #define KPLIB_UUID_MAX_LEN 64
53 
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
59 //ss_info_t* sslog_get_ss_info();
61 
63 SSLOG_EXTERN char* sslog_generate_uuid(class_t *ont_class);
64 
66 SSLOG_EXTERN int sslog_ss_init_session_with_parameters(const char *space_id, const char *ss_address, int ss_port);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* _SS_FUNC_H */
73