c_list_idx.c

Go to the documentation of this file.
00001 #include <grass/dbmi.h>
00002 #include "macros.h"
00003 
00010 int
00011 db_list_indexes (dbDriver *driver, dbString *table_name, dbIndex **list, int *count)
00012 {
00013     int ret_code;
00014 
00015 /* start the procedure call */
00016     db__set_protocol_fds (driver->send, driver->recv);
00017     DB_START_PROCEDURE_CALL(DB_PROC_LIST_INDEXES);
00018 
00019 /* arguments */
00020     DB_SEND_STRING (table_name);
00021 
00022 /* get the return code for the procedure call */
00023     DB_RECV_RETURN_CODE(&ret_code);
00024 
00025     if (ret_code != DB_OK)
00026         return ret_code; /* ret_code SHOULD == DB_FAILED */
00027 
00028 /* results */
00029     DB_RECV_INDEX_ARRAY (list, count);
00030 
00031     return DB_OK;
00032 }

Generated on Sun Apr 6 17:31:38 2008 for GRASS by  doxygen 1.5.5