GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
c_list_idx.c
Go to the documentation of this file.
1
15
#include <grass/dbmi.h>
16
#include "
macros.h
"
17
29
int
db_list_indexes
(dbDriver *
driver
, dbString * table_name, dbIndex ** list,
30
int
*count)
31
{
32
int
ret_code;
33
34
/* start the procedure call */
35
db__set_protocol_fds
(driver->send, driver->recv);
36
DB_START_PROCEDURE_CALL
(DB_PROC_LIST_INDEXES);
37
38
/* arguments */
39
DB_SEND_STRING
(table_name);
40
41
/* get the return code for the procedure call */
42
DB_RECV_RETURN_CODE
(&ret_code);
43
44
if
(ret_code != DB_OK)
45
return
ret_code;
/* ret_code SHOULD == DB_FAILED */
46
47
/* results */
48
DB_RECV_INDEX_ARRAY
(list, count);
49
50
return
DB_OK;
51
}
lib
db
dbmi_client
c_list_idx.c
Generated on Wed Jun 6 2012 14:04:19 for GRASS Programmer's Manual by
1.8.1