GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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

◆ NONE

#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

◆ db_drop_token()

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

◆ db_find_token()

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_close_cursor(), db_d_delete(), db_d_get_num_rows(), db_d_insert(), and db_d_update().

◆ db_new_token()

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.