GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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

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_RECV_RETURN_CODE, DB_RECV_STRING, db_set_string(), and DB_START_PROCEDURE_CALL.