source: tags/svn.1.5.4/ARBDB/gb_local.h

Last change on this file was 6656, checked in by westram, 15 years ago
  • removed unneeded 'struct' keyword
  • renamed several structs (especially things like 'blabla_struct')
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : gb_local.h                                        //
4//   Purpose   : declarations needed to include local prototypes   //
5//                                                                 //
6//   Institute of Microbiology (Technical University Munich)       //
7//   http://www.arb-home.de/                                       //
8//                                                                 //
9// =============================================================== //
10
11#ifndef GB_LOCAL_H
12#define GB_LOCAL_H
13
14#ifndef ARBDB_H
15#include <arbdb.h>
16#endif
17
18#define gb_assert(cond) arb_assert(cond)
19
20// ------------------
21//      constants
22
23#define GB_MAX_USERS 4
24
25#define GBTUM_MAGIC_NUMBER        0x17488400
26#define GBTUM_MAGIC_NUMBER_FILTER 0xffffff00
27#define GBTUM_MAGIC_REVERSED      0x00844817
28
29#define GB_SYSTEM_FOLDER   "__SYSTEM__"
30
31// ---------------------
32//      simple types
33
34typedef short GB_MAIN_IDX;      // random-index
35
36// ------------------------------
37//      forward declare types
38
39struct GBCONTAINER;
40struct GB_MAIN_TYPE;
41
42struct gb_transaction_save;
43struct gb_header_list;
44struct gb_index_files;
45
46struct GB_DICTIONARY;
47struct gb_compress_list;
48struct gb_compress_tree;
49
50struct gb_map_header;
51
52struct gb_scandir;
53
54struct gbcmc_comm;
55
56// -------------------
57//      enum types
58
59enum gb_undo_commands {
60    _GBCMC_UNDOCOM_REQUEST_NOUNDO_KILL,
61    _GBCMC_UNDOCOM_REQUEST_NOUNDO,
62    _GBCMC_UNDOCOM_REQUEST_UNDO,
63    _GBCMC_UNDOCOM_INFO_UNDO,
64    _GBCMC_UNDOCOM_INFO_REDO,
65    _GBCMC_UNDOCOM_UNDO,
66    _GBCMC_UNDOCOM_REDO,
67
68    _GBCMC_UNDOCOM_SET_MEM = 10000      // Minimum
69};
70
71enum GB_CHANGE {
72    GB_UNCHANGED         = 0,
73    GB_SON_CHANGED       = 2,
74    GB_NORMAL_CHANGE     = 4,
75    GB_CREATED           = 5,
76    GB_DELETED           = 6,
77    GB_DELETED_IN_MASTER = 7
78};
79
80enum GB_COMPRESSION_TYPES {
81    GB_COMPRESSION_NONE       = 0,
82    GB_COMPRESSION_RUNLENGTH  = 1,
83    GB_COMPRESSION_HUFFMANN   = 2,
84    GB_COMPRESSION_DICTIONARY = 4,
85    GB_COMPRESSION_SEQUENCE   = 8,
86    GB_COMPRESSION_SORTBYTES  = 16,
87    GB_COMPRESSION_BITS       = 32,
88    GB_COMPRESSION_LAST       = 128
89};
90
91enum GBCM_ServerResult {
92    GBCM_SERVER_OK      = 0,
93    GBCM_SERVER_FAULT   = 1,
94    GBCM_SERVER_ABORTED = 2,
95    GBCM_SERVER_OK_WAIT = 3, 
96};
97
98// ------------------------------------------------------
99//      include generated local prototypes and macros
100
101#ifndef GB_PROT_H
102#include "gb_prot.h"
103#endif
104
105
106#else
107#error gb_local.h included twice
108#endif // GB_LOCAL_H
Note: See TracBrowser for help on using the repository browser.