d_create_idx.c

Go to the documentation of this file.
00001 #include <stdlib.h>
00002 #include <grass/dbmi.h>
00003 #include "macros.h"
00004 #include "dbstubs.h"
00005 
00012 int
00013 db_d_create_index()
00014 {
00015     dbIndex index;
00016     int stat;
00017 
00018 /* get the arg(s) */
00019     db_init_index (&index);
00020     DB_RECV_INDEX(&index);
00021     
00022 /* call the procedure */
00023     stat = db_driver_create_index (&index);
00024 
00025 /* send the return code */
00026     if (stat != DB_OK)
00027     {
00028         db_free_index (&index);
00029         DB_SEND_FAILURE();
00030         return DB_OK;
00031     }
00032     DB_SEND_SUCCESS();
00033 
00034 /* send results */
00035     DB_SEND_STRING(&index.indexName);
00036     db_free_index (&index);
00037     return DB_OK;
00038 }

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