00001 /* 00002 * ss_func.h - interface for functions for work with SS. 00003 * This file is part of PetrSU KP library. 00004 * 00005 * Copyright (C) 2009 - Alexandr A. Lomov. All rights reserved. 00006 * 00007 * PetrSU KP library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * PetrSU KP library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with PetrSU KP library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, 00020 * Boston, MA 02110-1301 USA 00021 */ 00022 00023 00024 #include "utils/check_func.h" 00025 #include "kpi_low.h" 00026 #include <time.h> 00027 00028 #ifndef _SS_FUNC_H 00029 #define _SS_FUNC_H 00030 00034 #define RDF_TYPE "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 00035 00039 #define KPLIB_UUID_MAX_LEN 25 00040 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 ss_info_t* get_ss_info(); 00047 void reset_ss_errno(); 00048 00049 char* generate_uuid(); 00050 00051 int init_ss(); 00052 int init_ss_with_parameters(const char *space_id, const char *ss_address, int ss_port); 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif 00057 00058 #endif /* _SS_FUNC_H */ 00059