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 */
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 */
39{
40 DB_RECV_STRING(&handle->dbName);
41 DB_RECV_STRING(&handle->dbSchema);
42
43 return DB_OK;
44}
Main header of GRASS DataBase Management Interface.
#define DB_OK
Definition dbmi.h:69
#define DB_SEND_STRING(x)
Definition macros.h:24
#define DB_RECV_STRING(x)
Definition macros.h:39
dbString dbSchema
Definition dbmi.h:172
dbString dbName
Definition dbmi.h:170
int db__send_handle(dbHandle *handle)
Send handle.
Definition xdrhandle.c:23
int db__recv_handle(dbHandle *handle)
Receive handle.
Definition xdrhandle.c:38