GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71793
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ret_codes.c File Reference

DBMI Library (base) - return codes (internal use only) More...

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

Go to the source code of this file.

Functions

int db__send_success ()
 Send success code. More...
 
int db__send_failure ()
 Send failure code. More...
 
int db__recv_return_code (int *ret_code)
 Receive return code. More...
 

Detailed Description

DBMI Library (base) - return codes (internal use only)

Todo:
Are we as restrictive here as for vector names?

(C) 1999-2009, 2011 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
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file ret_codes.c.

Function Documentation

int db__recv_return_code ( int ret_code)

Receive return code.

Parameters
[out]ret_codereturn code
Returns
DB_OK on success

Definition at line 51 of file ret_codes.c.

References db_error(), DB_FAILED, db_free_string(), db_get_string(), db_init_string(), DB_OK, DB_PROTOCOL_ERR, db_protocol_error(), DB_RECV_INT, and DB_RECV_STRING.

Referenced by db_start_driver().

int db__send_failure ( )

Send failure code.

Returns
DB_OK

Definition at line 37 of file ret_codes.c.

References DB_FAILED, db_get_error_msg(), DB_OK, DB_SEND_C_STRING, and DB_SEND_INT.

Referenced by db_driver().

int db__send_success ( )

Send success code.

Returns
DB_OK

Definition at line 26 of file ret_codes.c.

References DB_OK, and DB_SEND_INT.

Referenced by db_driver().