Commit ff97537a authored by John P. Willis's avatar John P. Willis
Browse files

Add freem_set_namespace and freem_set_environment to libfreem interface

parent 8c70bf7c
Pipeline #741 passed with stage
in 1 minute and 22 seconds
......@@ -120,23 +120,25 @@ typedef struct freem_ent_t {
extern "C" {
#endif
extern pid_t freem_init(char *environment_name, char *namespace_name);
extern short freem_version(char *result);
extern short freem_set(freem_ref_t *ref);
extern short freem_get(freem_ref_t *ref);
extern short freem_kill(freem_ref_t *ref);
extern short freem_data(freem_ref_t *ref);
extern short freem_order(freem_ref_t *ref);
extern short freem_query(freem_ref_t *ref);
extern short freem_lock(freem_ref_t *ref, long timeout);
extern short freem_unlock(freem_ref_t *ref);
extern short freem_tstart(char *tp_id, short serial, short restartable, char **sym_save);
extern short freem_trestart(void);
extern short freem_trollback(int tp_levels);
extern short freem_tcommit(void);
extern int freem_tlevel(void);
extern short freem_function(freem_ent_t *ent);
extern short freem_procedure(freem_ent_t *ent);
extern pid_t freem_init(char *environment_name, char *namespace_name);
extern short freem_set_environment(char *environment_name);
extern short freem_set_namespace(char *namespace_name);
extern short freem_version(char *result);
extern short freem_set(freem_ref_t *ref);
extern short freem_get(freem_ref_t *ref);
extern short freem_kill(freem_ref_t *ref);
extern short freem_data(freem_ref_t *ref);
extern short freem_order(freem_ref_t *ref);
extern short freem_query(freem_ref_t *ref);
extern short freem_lock(freem_ref_t *ref, long timeout);
extern short freem_unlock(freem_ref_t *ref);
extern short freem_tstart(char *tp_id, short serial, short restartable, char **sym_save);
extern short freem_trestart(void);
extern short freem_trollback(int tp_levels);
extern short freem_tcommit(void);
extern int freem_tlevel(void);
extern short freem_function(freem_ent_t *ent);
extern short freem_procedure(freem_ent_t *ent);
#ifdef __cplusplus
}
......
......@@ -127,6 +127,18 @@ pid_t freem_init(char *environment_name, char *namespace_name)
}
}
short freem_set_environment(char *environment_name)
{
return OK;
}
short freem_set_namespace(char *namespace_name)
{
set_namespace (namespace_name, FALSE);
return OK;
}
short freem_version(char *result)
{
strncpy(result, FREEM_VERSION_ID, 255);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment