GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
d_list_tabs.c
Go to the documentation of this file.
1
15
#include <grass/dbmi.h>
16
#include "
macros.h
"
17
#include "
dbstubs.h
"
18
25
int
db_d_list_tables
(
void
)
26
{
27
dbString *names;
28
int
count
;
29
int
system;
30
int
stat
;
31
32
/* arg(s) */
33
DB_RECV_INT
(&system);
34
35
/* call the procedure */
36
stat =
db_driver_list_tables
(&names, &count, system);
37
38
/* send the return code */
39
if
(stat != DB_OK) {
40
DB_SEND_FAILURE
();
41
return
DB_OK;
42
}
43
DB_SEND_SUCCESS
();
44
45
/* send results */
46
DB_SEND_STRING_ARRAY
(names, count);
47
48
return
DB_OK;
49
}
db_driver_list_tables
int(* db_driver_list_tables)()
DB_RECV_INT
#define DB_RECV_INT(x)
Definition:
macros.h:39
count
int count
macros.h
stat
int stat
Definition:
g3dcolor.c:369
DB_SEND_FAILURE
#define DB_SEND_FAILURE()
Definition:
macros.h:9
dbstubs.h
DB_SEND_SUCCESS
#define DB_SEND_SUCCESS()
Definition:
macros.h:7
db_d_list_tables
int db_d_list_tables(void)
List available tables for given connection.
Definition:
d_list_tabs.c:25
DB_SEND_STRING_ARRAY
#define DB_SEND_STRING_ARRAY(x, n)
Definition:
macros.h:14
lib
db
dbmi_driver
d_list_tabs.c
Generated on Sat Jan 2 2016 01:46:47 for GRASS Programmer's Manual by
1.8.5