grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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

◆ db__recv_return_code()

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, DB_RECV_STRING, and err_msg.

Referenced by db_start_driver().

◆ db__send_failure()

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().

◆ db__send_success()

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().