GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bceeab9228
c_version.c File Reference

DBMI Library (client) - version info. More...

#include <grass/dbmi.h>
#include "macros.h"
Include dependency graph for c_version.c:

Go to the source code of this file.

Functions

int db_gversion (dbDriver *driver, dbString *client_version, dbString *driver_version)
 Get version info. More...
 

Detailed Description

DBMI Library (client) - version info.

(C) 1999-2008 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

Definition in file c_version.c.

Function Documentation

◆ db_gversion()

int db_gversion ( dbDriver driver,
dbString client_version,
dbString driver_version 
)

Get version info.

Note: renamed from db_version to db_gversion to avoid name conflict with Berkeley DB etc.

Parameters
driverdb driver
[out]client_versionclient version
[out]driver_versiondriver version
Returns
DB_OK on success
DB_FAILED on failure

Definition at line 31 of file c_version.c.

References db__set_protocol_fds(), db_init_string(), DB_OK, DB_PROC_VERSION, DB_RECV_RETURN_CODE, DB_RECV_STRING, db_set_string(), DB_START_PROCEDURE_CALL, and DB_VERSION.