GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
Loading...
Searching...
No Matches
c_desc_table.c
Go to the documentation of this file.
1/*!
2 * \file db/dbmi_client/c_desc_table.c
3 *
4 * \brief DBMI Library (client) - 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 <grass/dbmi.h>
13#include "macros.h"
14
15/*!
16 \brief Describe table
17
18 \param driver db driver
19 \param name table name
20 \param[out] table pointer to dbTable structure
21
22 \return DB_OK on success
23 \return DB_FAILED on failure
24 */
26{
27 int ret_code;
28
29 /* start the procedure call */
32
33 /* send the argument(s) to the procedure */
35
36 /* get the return code for the procedure call */
38
39 if (ret_code != DB_OK)
40 return ret_code; /* ret_code SHOULD == DB_FAILED */
41
42 /* get the results */
44 return DB_OK;
45}
int db_describe_table(dbDriver *driver, dbString *name, dbTable **table)
Describe table.
Main header of GRASS DataBase Management Interface.
#define DB_PROC_DESCRIBE_TABLE
Definition dbmi.h:52
#define DB_OK
Definition dbmi.h:69
void db__set_protocol_fds(FILE *, FILE *)
?
#define DB_SEND_STRING(x)
Definition macros.h:24
#define DB_RECV_TABLE_DEFINITION(x)
Definition macros.h:142
#define DB_START_PROCEDURE_CALL(x)
Definition macros.h:2
#define DB_RECV_RETURN_CODE(x)
Definition macros.h:7
const char * name
Definition named_colr.c:6