GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
Loading...
Searching...
No Matches
d_list_tabs.c
Go to the documentation of this file.
1/*!
2 * \file db/dbmi_driver/d_list_tabs.c
3 *
4 * \brief DBMI Library (driver) - list tables
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#include "dbstubs.h"
15
16/*!
17 \brief List available tables for given connection
18
19 \return DB_OK on success
20 \return DB_FAILED on failure
21 */
23{
24 dbString *names;
25 int count;
26 int system;
27 int stat;
28
29 /* arg(s) */
31
32 /* call the procedure */
34
35 /* send the return code */
36 if (stat != DB_OK) {
38 return DB_OK;
39 }
41
42 /* send results */
44
45 return DB_OK;
46}
int db_d_list_tables(void)
List available tables for given connection.
Definition d_list_tabs.c:22
Main header of GRASS DataBase Management Interface.
#define DB_OK
Definition dbmi.h:69
int(* db_driver_list_tables)(dbString **, int *, int)
int count
#define DB_SEND_STRING_ARRAY(x, n)
Definition macros.h:29
#define DB_RECV_INT(x)
Definition macros.h:87
#define DB_SEND_SUCCESS()
Definition macros.h:13
#define DB_SEND_FAILURE()
Definition macros.h:18