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  */
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  */
41 {
42  DB_RECV_STRING(&handle->dbName);
43  DB_RECV_STRING(&handle->dbSchema);
44 
45  return DB_OK;
46 }
#define DB_OK
Definition: dbmi.h:71
#define DB_SEND_STRING(x)
Definition: macros.h:24
#define DB_RECV_STRING(x)
Definition: macros.h:39
dbString dbSchema
Definition: dbmi.h:174
dbString dbName
Definition: dbmi.h:172
int db__send_handle(dbHandle *handle)
Send handle.
Definition: xdrhandle.c:25
int db__recv_handle(dbHandle *handle)
Receive handle.
Definition: xdrhandle.c:40