-
-
Notifications
You must be signed in to change notification settings - Fork 291
/
xdrhandle.c
46 lines (33 loc) · 898 Bytes
/
xdrhandle.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*!
\file lib/db/dbmi_base/xdrhandle.c
\brief DBMI Library (base) - external data representation (handle)
(C) 1999-2009, 2011 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
\author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
\author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
*/
#include <grass/dbmi.h>
#include "macros.h"
/*!
\brief Send handle
\param handle
\return
*/
int db__send_handle(dbHandle * handle)
{
DB_SEND_STRING(&handle->dbName);
DB_SEND_STRING(&handle->dbSchema);
return DB_OK;
}
/*!
\brief Receive handle
\param handle
\return
*/
int db__recv_handle(dbHandle * handle)
{
DB_RECV_STRING(&handle->dbName);
DB_RECV_STRING(&handle->dbSchema);
return DB_OK;
}