GRASS 8 Programmer's Manual 8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
d_desc_table.c
Go to the documentation of this file.
1/*!
2 * \file db/dbmi_driver/d_desc_table.c
3 *
4 * \brief DBMI Library (driver) - describe table
5 *
6 * SPDX-FileCopyrightText: 1999-2008 GRASS Development Team
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 * \author Joel Jones (CERL/UIUC), Radim Blazek
10 */
11
12#include <stdlib.h>
13#include <grass/dbmi.h>
14#include "macros.h"
15#include "dbstubs.h"
16
17/*!
18 \brief Describe table
19
20 \return DB_OK on success
21 \return DB_FAILED on failure
22 */
24{
25 dbTable *table;
27 int stat;
28
30
31 /* get the arg(s) */
33
34 /* call the procedure */
36
37 /* send the return code */
38 if (stat != DB_OK) {
40 return DB_OK;
41 }
43
44 /* results */
47
49 db_free_table(table);
50 return DB_OK;
51}
int db_d_describe_table(void)
Describe table.
Main header of GRASS DataBase Management Interface.
#define DB_OK
Definition dbmi.h:69
int(* db_driver_describe_table)(dbString *, dbTable **)
void db_free_table(dbTable *)
Free the table.
void db_free_string(dbString *)
Free allocated space for dbString.
Definition string.c:148
char * db_get_string(const dbString *)
Get string.
Definition string.c:138
int db_set_table_name(dbTable *, const char *)
Set the name of the table.
void db_init_string(dbString *)
Initialize dbString.
Definition string.c:23
#define DB_SEND_TABLE_DEFINITION(x)
Definition macros.h:137
#define DB_SEND_SUCCESS()
Definition macros.h:13
#define DB_RECV_STRING(x)
Definition macros.h:39
#define DB_SEND_FAILURE()
Definition macros.h:18
const char * name
Definition named_colr.c:6