GRASS 8 Programmer's Manual 8.6.0dev(2026)-d2adb3a889
Loading...
Searching...
No Matches
c_list_idx.c
Go to the documentation of this file.
1/*!
2 * \file db/dbmi_client/c_list_idx.c
3 *
4 * \brief DBMI Library (client) - list indexes
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 List indexes
17
18 \param driver db driver
19 \param table_name table name
20 \param[out] list list of db indexes
21 \param[out] count number of items in the list
22
23 \return DB_OK on success
24 \return DB_FAILED on failure
25 */
27 int *count)
28{
29 int ret_code;
30
31 /* start the procedure call */
34
35 /* arguments */
36 DB_SEND_STRING(table_name);
37
38 /* get the return code for the procedure call */
40
41 if (ret_code != DB_OK)
42 return ret_code; /* ret_code SHOULD == DB_FAILED */
43
44 /* results */
46
47 return DB_OK;
48}
int db_list_indexes(dbDriver *driver, dbString *table_name, dbIndex **list, int *count)
List indexes.
Definition c_list_idx.c:26
Main header of GRASS DataBase Management Interface.
#define DB_PROC_LIST_INDEXES
Definition dbmi.h:60
#define DB_OK
Definition dbmi.h:69
void db__set_protocol_fds(FILE *, FILE *)
?
int count
#define DB_SEND_STRING(x)
Definition macros.h:24
#define DB_START_PROCEDURE_CALL(x)
Definition macros.h:2
#define DB_RECV_RETURN_CODE(x)
Definition macros.h:7
#define DB_RECV_INDEX_ARRAY(x, n)
Definition macros.h:240
Definition manage.h:4