API - SmartSlog KP Library
|
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ss_multisib.h"
Data Structures | |
struct | msib_name_s |
Property structure, represents OWL property. More... | |
struct | msib_thread_s |
Property structure, represents OWL property. More... |
Typedefs | |
typedef struct msib_name_s | msib_name_t |
Property structure, represents OWL property. | |
typedef struct msib_thread_s | msib_thread_t |
Property structure, represents OWL property. |
Functions | |
SSLOG_EXTERN int | sslog_ss_init_new_session (const char *name_id) |
Adds new SIB to the global list and discover it. | |
SSLOG_EXTERN int | sslog_ss_init_new_session_with_parameters (const char *space_id, const char *ss_address, int ss_port, const char *name_id) |
Adds new SIB to the global list and discover it with given access. | |
SSLOG_EXTERN int | sslog_switch_sib (const char *name_id) |
Set current SIB pointer to SIB with given name. | |
SSLOG_EXTERN int | ss_leave_by_name (const char *name_id) |
Leaves SIB with given name. | |
SSLOG_EXTERN int | sslog_ss_leave_session_all () |
Inserts given individual to SS. | |
SSLOG_EXTERN int | sslog_ss_leave_session (ss_info_t *ss_info) |
SSLOG_EXTERN ss_info_t * | sslog_get_ss_info () |
typedef struct msib_name_s msib_name_t |
Property structure, represents OWL property.
typedef struct msib_thread_s msib_thread_t |
Property structure, represents OWL property.
int ss_leave_by_name | ( | const char * | name_id | ) |
Leaves SIB with given name.
Tries to find SIB with given name in global list and leaves it. If it was current SIB, current SIB would be swithed to first founded or to deafult. Function sets global SmartSlog KP Library's errno.
[in] | const | char * name_id. Pointer to the local name of the SIB. |
SSLOG_EXTERN ss_info_t* sslog_get_ss_info | ( | ) |
int sslog_ss_init_new_session | ( | const char * | name_id | ) |
Adds new SIB to the global list and discover it.
Creates new structure with ss_info and given name if it not already exists and adds it to global list and discover. Pointer to current SIB would be set to new SIB. Function sets global SmartSlog KP Library's errno.
[in] | const | char * name_id. Pointer to the local name of the new SIB. |
int sslog_ss_init_new_session_with_parameters | ( | const char * | space_id, |
const char * | ss_address, | ||
int | ss_port, | ||
const char * | name_id | ||
) |
Adds new SIB to the global list and discover it with given access.
Creates new structure with ss_info and given name if it not already exists and adds it to global list and discover with given access. Pointer to current SIB would be set to new SIB. Function sets global SmartSlog KP Library's errno.
[in] | const | char * space_id. Pointer to the Smart Space ID. |
[in] | const | char * ss_address. Pointer to the Smart Space IP address. |
[in] | int | ss_port. Pointer to the Smart Space TCP port. |
[in] | const | char * name_id. Pointer to the local name of the new SIB. |
SSLOG_EXTERN int sslog_ss_leave_session | ( | ss_info_t * | ss_info | ) |
int sslog_ss_leave_session_all | ( | ) |
Inserts given individual to SS.
Checks individual correctness: cardinality, property values limitation, and converts the individual to triplets, which will be placed to SS. Function sets global SmartSlog KP Library's errno.
int sslog_switch_sib | ( | const char * | name_id | ) |
Set current SIB pointer to SIB with given name.
Tries to find SIB with given name in global list and set current SIB pointer to it . Function sets global SmartSlog KP Library's errno.
[in] | const | char * name_id. Pointer to the local name of the SIB. |