GRASS 8 Programmer's Manual
8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
xdrhandle.c
Go to the documentation of this file.
1
/*!
2
\file lib/db/dbmi_base/xdrhandle.c
3
4
\brief DBMI Library (base) - external data representation (handle)
5
6
SPDX-FileCopyrightText: 1999-2009, 2011 GRASS Development Team
7
SPDX-License-Identifier: GPL-2.0-or-later
8
9
\author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
10
\author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
11
*/
12
13
#include <
grass/dbmi.h
>
14
#include "
macros.h
"
15
16
/*!
17
\brief Send handle
18
19
\param handle
20
21
\return
22
*/
23
int
db__send_handle
(
dbHandle
*handle)
24
{
25
DB_SEND_STRING
(&handle->
dbName
);
26
DB_SEND_STRING
(&handle->
dbSchema
);
27
28
return
DB_OK
;
29
}
30
31
/*!
32
\brief Receive handle
33
34
\param handle
35
36
\return
37
*/
38
int
db__recv_handle
(
dbHandle
*handle)
39
{
40
DB_RECV_STRING
(&handle->
dbName
);
41
DB_RECV_STRING
(&handle->
dbSchema
);
42
43
return
DB_OK
;
44
}
dbmi.h
Main header of GRASS DataBase Management Interface.
DB_OK
#define DB_OK
Definition
dbmi.h:69
macros.h
DB_SEND_STRING
#define DB_SEND_STRING(x)
Definition
macros.h:24
DB_RECV_STRING
#define DB_RECV_STRING(x)
Definition
macros.h:39
_db_handle
Definition
dbmi.h:169
_db_handle::dbSchema
dbString dbSchema
Definition
dbmi.h:172
_db_handle::dbName
dbString dbName
Definition
dbmi.h:170
db__send_handle
int db__send_handle(dbHandle *handle)
Send handle.
Definition
xdrhandle.c:23
db__recv_handle
int db__recv_handle(dbHandle *handle)
Receive handle.
Definition
xdrhandle.c:38
lib
db
dbmi_base
xdrhandle.c
Generated on Thu Sep 10 2026 06:57:36 for GRASS 8 Programmer's Manual by
1.9.8