CUBRID Engine  latest
transform_cl.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * transform_cl.h: Function declarations for the client side transformation
22  * routines.
23  */
24 
25 #ifndef _TRANSFORM_CL_H_
26 #define _TRANSFORM_CL_H_
27 
28 #ident "$Id$"
29 
30 #if defined (SERVER_MODE)
31 #error Does not belong to server module
32 #endif /* SERVER_MODE */
33 
34 #include "locator.h"
35 
36 // forward definition
37 struct or_buf;
38 
39 /*
40  * this should be an enumeration but define it as ints first to
41  * ease the integration
42  */
43 typedef int TF_STATUS;
44 
45 #define TF_SUCCESS (0)
46 #define TF_OUT_OF_SPACE (1)
47 #define TF_ERROR (2)
48 
49 
50 extern TF_STATUS tf_mem_to_disk (MOP classmop, MOBJ classobj, volatile MOBJ obj, RECDES * record, bool * index_flag);
51 
52 extern MOBJ tf_disk_to_mem (MOBJ classobj, RECDES * record, int *convertp);
53 
54 extern TF_STATUS tf_class_to_disk (MOBJ classobj, RECDES * record);
55 
56 extern MOBJ tf_disk_to_class (OID * oid, RECDES * record);
57 
58 extern int tf_object_size (MOBJ classobj, MOBJ obj);
59 #if defined(ENABLE_UNUSED_FUNCTION)
60 extern void tf_dump_class_size (MOBJ classobj);
61 #endif
62 
63 /* new hacks for bulk temporary OID upgrading */
64 extern OID *tf_need_permanent_oid (or_buf * buf, DB_OBJECT * obj);
65 #if defined(ENABLE_UNUSED_FUNCTION)
66 extern int tf_find_temporary_oids (LC_OIDSET * oidset, MOBJ classobj, MOBJ obj);
67 
68 /* Set packing for M */
69 extern int tf_set_size (DB_SET * set);
70 extern int tf_pack_set (DB_SET * set, char *buffer, int buffer_size, int *actual_bytes);
71 #endif /* ENABLE_UNUSED_FUNCTION */
72 
73 /* temporary integration kludge */
74 extern int tf_Allow_fixups;
75 
76 #endif /* _TRANSFORM_CL_H_ */
char * MOBJ
Definition: work_space.h:174
Definition: db_set.h:35
int TF_STATUS
Definition: transform_cl.h:37
MOBJ tf_disk_to_mem(MOBJ classobj, RECDES *record, int *convertp)
int tf_object_size(MOBJ classobj, MOBJ obj)
TF_STATUS tf_class_to_disk(MOBJ classobj, RECDES *record)
MOBJ tf_disk_to_class(OID *oid, RECDES *record)
OID * tf_need_permanent_oid(or_buf *buf, DB_OBJECT *obj)
Definition: transform_cl.c:513
TF_STATUS tf_mem_to_disk(MOP classmop, MOBJ classobj, volatile MOBJ obj, RECDES *record, bool *index_flag)
Definition: transform_cl.c:767
int tf_Allow_fixups
Definition: transform_cl.c:70