GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
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
}
_db_handle::dbName
dbString dbName
Definition:
dbmi.h:177
db__recv_handle
int db__recv_handle(dbHandle *handle)
Receive handle.
Definition:
xdrhandle.c:40
dbmi.h
macros.h
_db_handle
Definition:
dbmi.h:175
db__send_handle
int db__send_handle(dbHandle *handle)
Send handle.
Definition:
xdrhandle.c:25
DB_SEND_STRING
#define DB_SEND_STRING(x)
Definition:
macros.h:12
_db_handle::dbSchema
dbString dbSchema
Definition:
dbmi.h:179
DB_RECV_STRING
#define DB_RECV_STRING(x)
Definition:
macros.h:18
DB_OK
#define DB_OK
Definition:
dbmi.h:71
lib
db
dbmi_base
xdrhandle.c
Generated on Tue Feb 14 2023 05:56:02 for GRASS GIS 8 Programmer's Manual by
1.8.13