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

DBMI Library (base) - tokens management. More...

#include <grass/dbmi.h>
Include dependency graph for db/dbmi_base/token.c:

Go to the source code of this file.

Macros

#define NONE   ( (dbAddress) NULL )
 

Functions

dbAddress db_find_token (dbToken token)
 Find token. More...
 
void db_drop_token (dbToken token)
 Drop token. More...
 
dbToken db_new_token (dbAddress address)
 Add new token. More...
 

Detailed Description

DBMI Library (base) - tokens management.

(C) 1999-2009 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 db/dbmi_base/token.c.

Macro Definition Documentation

#define NONE   ( (dbAddress) NULL )

Definition at line 17 of file db/dbmi_base/token.c.

Referenced by db_drop_token(), db_find_token(), and db_new_token().

Function Documentation

void db_drop_token ( dbToken  token)

Drop token.

Parameters
tokenpointer to dbToken

Definition at line 42 of file db/dbmi_base/token.c.

References count, and NONE.

Referenced by db_d_close_cursor().

dbAddress db_find_token ( dbToken  token)

Find token.

Parameters
tokenpointer to dbToken
Returns
dbAddress
NULL if no token found

Definition at line 30 of file db/dbmi_base/token.c.

References count, and NONE.

Referenced by db_d_bind_update(), db_d_close_cursor(), db_d_delete(), db_d_fetch(), db_d_get_num_rows(), db_d_insert(), and db_d_update().

dbToken db_new_token ( dbAddress  address)

Add new token.

Parameters
addressdbAddress of token to be added
Returns
dbToken

Definition at line 55 of file db/dbmi_base/token.c.

References count, db_realloc(), list, NONE, and NULL.

Referenced by db_d_open_insert_cursor(), db_d_open_select_cursor(), and db_d_open_update_cursor().