GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
macros.h
Go to the documentation of this file.
1
#define DB_RETURN_ERR return (db_get_error_code());
2
#define DB_START_PROCEDURE_CALL(x) \
3
{ \
4
if (db__start_procedure_call(x) != DB_OK) \
5
DB_RETURN_ERR \
6
}
7
#define DB_RECV_RETURN_CODE(x) \
8
{ \
9
if (db__recv_return_code(x) != DB_OK) \
10
DB_RETURN_ERR \
11
}
12
13
#define DB_SEND_SUCCESS() \
14
{ \
15
if (db__send_success() != DB_OK) \
16
DB_RETURN_ERR \
17
}
18
#define DB_SEND_FAILURE() \
19
{ \
20
if (db__send_failure() != DB_OK) \
21
DB_RETURN_ERR \
22
}
23
24
#define DB_SEND_STRING(x) \
25
{ \
26
if (db__send_string(x) != DB_OK) \
27
DB_RETURN_ERR \
28
}
29
#define DB_SEND_STRING_ARRAY(x, n) \
30
{ \
31
if (db__send_string_array(x, n) != DB_OK) \
32
DB_RETURN_ERR \
33
}
34
#define DB_SEND_C_STRING(x) \
35
{ \
36
if (db__send_Cstring(x) != DB_OK) \
37
DB_RETURN_ERR \
38
}
39
#define DB_RECV_STRING(x) \
40
{ \
41
if (db__recv_string(x) != DB_OK) \
42
DB_RETURN_ERR \
43
}
44
#define DB_RECV_STRING_ARRAY(x, n) \
45
{ \
46
if (db__recv_string_array(x, n) != DB_OK) \
47
DB_RETURN_ERR \
48
}
49
50
#define DB_SEND_CHAR(x) \
51
{ \
52
if (db__send_char(x) != DB_OK) \
53
DB_RETURN_ERR \
54
}
55
#define DB_RECV_CHAR(x) \
56
{ \
57
if (db__recv_char(x) != DB_OK) \
58
DB_RETURN_ERR \
59
}
60
61
#define DB_SEND_SHORT(x) \
62
{ \
63
if (db__send_short(x) != DB_OK) \
64
DB_RETURN_ERR \
65
}
66
#define DB_RECV_SHORT(x) \
67
{ \
68
if (db__recv_short(x) != DB_OK) \
69
DB_RETURN_ERR \
70
}
71
#define DB_SEND_SHORT_ARRAY(x, n) \
72
{ \
73
if (db__send_short_array(x, n) != DB_OK) \
74
DB_RETURN_ERR \
75
}
76
#define DB_RECV_SHORT_ARRAY(x, n) \
77
{ \
78
if (db__recv_short_array(x, n) != DB_OK) \
79
DB_RETURN_ERR \
80
}
81
82
#define DB_SEND_INT(x) \
83
{ \
84
if (db__send_int(x) != DB_OK) \
85
DB_RETURN_ERR \
86
}
87
#define DB_RECV_INT(x) \
88
{ \
89
if (db__recv_int(x) != DB_OK) \
90
DB_RETURN_ERR \
91
}
92
93
#define DB_SEND_FLOAT(x) \
94
{ \
95
if (db__send_float(x) != DB_OK) \
96
DB_RETURN_ERR \
97
}
98
#define DB_RECV_FLOAT(x) \
99
{ \
100
if (db__recv_float(x) != DB_OK) \
101
DB_RETURN_ERR \
102
}
103
104
#define DB_SEND_DOUBLE(x) \
105
{ \
106
if (db__send_double(x) != DB_OK) \
107
DB_RETURN_ERR \
108
}
109
#define DB_RECV_DOUBLE(x) \
110
{ \
111
if (db__recv_double(x) != DB_OK) \
112
DB_RETURN_ERR \
113
}
114
115
#define DB_SEND_DATETIME(x) \
116
{ \
117
if (db__send_datetime(x) != DB_OK) \
118
DB_RETURN_ERR \
119
}
120
#define DB_RECV_DATETIME(x) \
121
{ \
122
if (db__recv_datetime(x) != DB_OK) \
123
DB_RETURN_ERR \
124
}
125
126
#define DB_SEND_HANDLE(x) \
127
{ \
128
if (db__send_handle(x) != DB_OK) \
129
DB_RETURN_ERR \
130
}
131
#define DB_RECV_HANDLE(x) \
132
{ \
133
if (db__recv_handle(x) != DB_OK) \
134
DB_RETURN_ERR \
135
}
136
137
#define DB_SEND_TABLE_DEFINITION(x) \
138
{ \
139
if (db__send_table_definition(x) != DB_OK) \
140
DB_RETURN_ERR \
141
}
142
#define DB_RECV_TABLE_DEFINITION(x) \
143
{ \
144
if (db__recv_table_definition(x) != DB_OK) \
145
DB_RETURN_ERR \
146
}
147
148
#define DB_SEND_TABLE_DATA(x) \
149
{ \
150
if (db__send_table_data(x) != DB_OK) \
151
DB_RETURN_ERR \
152
}
153
#define DB_RECV_TABLE_DATA(x) \
154
{ \
155
if (db__recv_table_data(x) != DB_OK) \
156
DB_RETURN_ERR \
157
}
158
159
#define DB_SEND_TABLE_PRIV(x) \
160
{ \
161
if (db__send_table_priv(x) != DB_OK) \
162
DB_RETURN_ERR \
163
}
164
#define DB_RECV_TABLE_PRIV(x) \
165
{ \
166
if (db__recv_table_priv(x) != DB_OK) \
167
DB_RETURN_ERR \
168
}
169
170
#define DB_SEND_COLUMN_PRIVS(x) \
171
{ \
172
if (db__send_column_privs(x) != DB_OK) \
173
DB_RETURN_ERR \
174
}
175
#define DB_RECV_COLUMN_PRIVS(x) \
176
{ \
177
if (db__recv_column_privs(x) != DB_OK) \
178
DB_RETURN_ERR \
179
}
180
181
#define DB_SEND_COLUMN_DEFINITION(x) \
182
{ \
183
if (db__send_column_definition(x) != DB_OK) \
184
DB_RETURN_ERR \
185
}
186
#define DB_RECV_COLUMN_DEFINITION(x) \
187
{ \
188
if (db__recv_column_definition(x) != DB_OK) \
189
DB_RETURN_ERR \
190
}
191
192
#define DB_SEND_COLUMN_VALUE(x) \
193
{ \
194
if (db__send_column_value(x) != DB_OK) \
195
DB_RETURN_ERR \
196
}
197
#define DB_RECV_COLUMN_VALUE(x) \
198
{ \
199
if (db__recv_column_value(x) != DB_OK) \
200
DB_RETURN_ERR \
201
}
202
203
#define DB_SEND_COLUMN_DEFAULT_VALUE(x) \
204
{ \
205
if (db__send_column_default_value(x) != DB_OK) \
206
DB_RETURN_ERR \
207
}
208
#define DB_RECV_COLUMN_DEFAULT_VALUE(x) \
209
{ \
210
if (db__recv_column_default_value(x) != DB_OK) \
211
DB_RETURN_ERR \
212
}
213
214
#define DB_SEND_TOKEN(x) \
215
{ \
216
if (db__send_token(x) != DB_OK) \
217
DB_RETURN_ERR \
218
}
219
#define DB_RECV_TOKEN(x) \
220
{ \
221
if (db__recv_token(x) != DB_OK) \
222
DB_RETURN_ERR \
223
}
224
225
#define DB_SEND_INDEX(x) \
226
{ \
227
if (db__send_index(x) != DB_OK) \
228
DB_RETURN_ERR \
229
}
230
#define DB_SEND_INDEX_ARRAY(x, n) \
231
{ \
232
if (db__send_index_array(x, n) != DB_OK) \
233
DB_RETURN_ERR \
234
}
235
#define DB_RECV_INDEX(x) \
236
{ \
237
if (db__recv_index(x) != DB_OK) \
238
DB_RETURN_ERR \
239
}
240
#define DB_RECV_INDEX_ARRAY(x, n) \
241
{ \
242
if (db__recv_index_array(x, n) != DB_OK) \
243
DB_RETURN_ERR \
244
}
245
246
#define DB_SEND_FK(x) \
247
{ \
248
if (db__send_fk(x) != DB_OK) \
249
DB_RETURN_ERR \
250
}
251
#define DB_SEND_FK_ARRAY(x, n) \
252
{ \
253
if (db__send_fk_array(x, n) != DB_OK) \
254
DB_RETURN_ERR \
255
}
256
#define DB_RECV_FK(x) \
257
{ \
258
if (db__recv_fk(x) != DB_OK) \
259
DB_RETURN_ERR \
260
}
261
#define DB_RECV_FK_ARRAY(x, n) \
262
{ \
263
if (db__recv_fk_array(x, n) != DB_OK) \
264
DB_RETURN_ERR \
265
}
lib
db
dbmi_base
macros.h
Generated on Thu Nov 21 2024 07:03:28 for GRASS GIS 8 Programmer's Manual by
1.9.1