GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
xdrtoken.c
Go to the documentation of this file.
1 /*!
2  \file lib/db/dbmi_base/xdrtoken.c
3 
4  \brief DBMI Library (base) - external data representation (token)
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 
17 /*!
18  \brief Send token
19 
20  \param token
21 
22  \return
23  */
25 {
26  return db__send_int(*token);
27 }
28 
29 /*!
30  \brief Receive token
31 
32  \param token
33 
34  \return
35  */
37 {
38  return db__recv_int(token);
39 }
int dbToken
Definition: dbmi.h:145
int db__send_int(int)
Send integer.
Definition: xdrint.c:24
int db__recv_int(int *)
Receive integer.
Definition: xdrint.c:44
int db__recv_token(dbToken *token)
Receive token.
Definition: xdrtoken.c:36
int db__send_token(dbToken *token)
Send token.
Definition: xdrtoken.c:24