ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
metaframework
session_recovery.h
Go to the documentation of this file.
1
/* Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
2
==================================================
3
Copyright 2014.
4
Siemens Product Lifecycle Management Software Inc.
5
All Rights Reserved.
6
==================================================
7
Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved. */
8
9
30
#ifndef SESSION_RECOVERY_H
31
#define SESSION_RECOVERY_H
32
33
#include <
unidefs.h
>
34
35
#include <metaframework/libmetaframework_exports.h>
36
40
typedef
int(*
ReconstructFn
)(
41
const
char
* recipe,
42
tag_t
* bus_obj_tag
43
);
44
48
typedef
char
*(*RecoverableKeyFn)(
49
const
char
* recipe_uid
50
);
51
52
#ifdef __cplusplus
53
extern
"C"
{
54
#endif
55
56
68
extern
METAFRAMEWORK_API
int
BO_get_recoverable_object_tag
(
69
const
char
* uid ,
70
logical
persist_recipe,
71
tag_t
* tag
72
);
73
87
extern
METAFRAMEWORK_API
int
BO_lookup_recoverable_object_tag
(
88
const
char
* uid ,
89
logical
persist_recipe,
90
tag_t
* tag
91
);
92
102
extern
METAFRAMEWORK_API
int
BO_get_recoverable_object_uid
(
103
tag_t
bus_obj_tag,
104
logical
persist_recipe,
105
char
** uid
106
);
107
108
118
extern
METAFRAMEWORK_API
int
BO_is_recoverable
(
119
tag_t
obj_tag,
120
logical
*is_recoverable,
121
logical
*persist_recipe
123
);
124
125
134
extern
METAFRAMEWORK_API
int
BO_register_recoverable_business_object
(
135
const
char
* name,
136
ReconstructFn
fn,
137
RecoverableKeyFn
key_function
138
);
139
140
149
extern
METAFRAMEWORK_API
int
BO_remove_recoverable_business_object
(
150
const
char
* uid
151
);
152
153
154
#ifdef __cplusplus
155
}
156
#endif
157
158
#include <metaframework/libmetaframework_undef.h>
159
#endif