00001 00015 #include <grass/dbmi.h> 00016 #include "macros.h" 00017 00027 int db_drop_index(dbDriver * driver, dbString * name) 00028 { 00029 int ret_code; 00030 00031 /* start the procedure call */ 00032 db__set_protocol_fds(driver->send, driver->recv); 00033 DB_START_PROCEDURE_CALL(DB_PROC_DROP_INDEX); 00034 00035 /* send the argument(s) to the procedure */ 00036 DB_SEND_STRING(name); 00037 00038 /* get the return code for the procedure call */ 00039 DB_RECV_RETURN_CODE(&ret_code); 00040 00041 if (ret_code != DB_OK) 00042 return ret_code; /* ret_code SHOULD == DB_FAILED */ 00043 00044 /* no results */ 00045 return DB_OK; 00046 }