GRASS 8 Programmer's Manual
8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
d_version.c
Go to the documentation of this file.
1
/*!
2
* \file db/dbmi_driver/d_version.c
3
*
4
* \brief DBMI Library (driver) - version info
5
*
6
* SPDX-FileCopyrightText: 1999-2008 GRASS Development Team
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*
9
* \author Joel Jones (CERL/UIUC), Radim Blazek
10
*/
11
12
#include <
grass/dbmi.h
>
13
#include "
macros.h
"
14
15
/*!
16
\brief Get version info
17
18
\return DB_OK on success
19
\return DB_FAILED on failure
20
*/
21
int
db_d_version
(
void
)
22
{
23
/* no arg(s) */
24
25
/* send the return code */
26
DB_SEND_SUCCESS
();
27
28
/* send version */
29
DB_SEND_C_STRING
(
DB_VERSION
);
30
return
DB_OK
;
31
}
db_d_version
int db_d_version(void)
Get version info.
Definition
d_version.c:21
dbmi.h
Main header of GRASS DataBase Management Interface.
DB_VERSION
#define DB_VERSION
Definition
dbmi.h:16
DB_OK
#define DB_OK
Definition
dbmi.h:69
macros.h
DB_SEND_SUCCESS
#define DB_SEND_SUCCESS()
Definition
macros.h:13
DB_SEND_C_STRING
#define DB_SEND_C_STRING(x)
Definition
macros.h:34
lib
db
dbmi_driver
d_version.c
Generated on Wed Sep 9 2026 06:57:42 for GRASS 8 Programmer's Manual by
1.9.8