GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
d_priv.c
Go to the documentation of this file.
1
15
#include <stdlib.h>
16
#include <grass/dbmi.h>
17
#include "
macros.h
"
18
#include "
dbstubs.h
"
19
26
int
db_d_grant_on_table
(
void
)
27
{
28
dbString tableName;
29
int
priv, to;
30
int
stat;
31
32
db_init_string
(&tableName);
33
34
/* get the arg(s) */
35
DB_RECV_STRING
(&tableName);
36
DB_RECV_INT
(&priv);
37
DB_RECV_INT
(&to);
38
39
/* call the procedure */
40
stat =
db_driver_grant_on_table
(&tableName, priv, to);
41
db_free_string
(&tableName);
42
43
/* send the return code */
44
if
(stat != DB_OK) {
45
DB_SEND_FAILURE
();
46
return
DB_OK;
47
}
48
DB_SEND_SUCCESS
();
49
50
/* no results */
51
52
return
DB_OK;
53
}
lib
db
dbmi_driver
d_priv.c
Generated on Sun Mar 16 2014 05:07:43 for GRASS Programmer's Manual by
1.8.1.2