GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-0824e8842e
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
(C) 1999-2009, 2011 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
12
\author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
13
*/
14
15
#include <
grass/dbmi.h
>
16
#include "
macros.h
"
17
18
/*!
19
\brief Send handle
20
21
\param handle
22
23
\return
24
*/
25
int
db__send_handle
(
dbHandle
*handle)
26
{
27
DB_SEND_STRING
(&handle->
dbName
);
28
DB_SEND_STRING
(&handle->
dbSchema
);
29
30
return
DB_OK
;
31
}
32
33
/*!
34
\brief Receive handle
35
36
\param handle
37
38
\return
39
*/
40
int
db__recv_handle
(
dbHandle
*handle)
41
{
42
DB_RECV_STRING
(&handle->
dbName
);
43
DB_RECV_STRING
(&handle->
dbSchema
);
44
45
return
DB_OK
;
46
}
dbmi.h
DB_OK
#define DB_OK
Definition:
dbmi.h:71
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:171
_db_handle::dbSchema
dbString dbSchema
Definition:
dbmi.h:174
_db_handle::dbName
dbString dbName
Definition:
dbmi.h:172
db__send_handle
int db__send_handle(dbHandle *handle)
Send handle.
Definition:
xdrhandle.c:25
db__recv_handle
int db__recv_handle(dbHandle *handle)
Receive handle.
Definition:
xdrhandle.c:40
lib
db
dbmi_base
xdrhandle.c
Generated on Sat Nov 2 2024 06:58:28 for GRASS GIS 8 Programmer's Manual by
1.9.1