c_list_tabs.c

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

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