1*6030Sjb150015 /*
2*6030Sjb150015 * CDDL HEADER START
3*6030Sjb150015 *
4*6030Sjb150015 * The contents of this file are subject to the terms of the
5*6030Sjb150015 * Common Development and Distribution License (the "License").
6*6030Sjb150015 * You may not use this file except in compliance with the License.
7*6030Sjb150015 *
8*6030Sjb150015 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6030Sjb150015 * or http://www.opensolaris.org/os/licensing.
10*6030Sjb150015 * See the License for the specific language governing permissions
11*6030Sjb150015 * and limitations under the License.
12*6030Sjb150015 *
13*6030Sjb150015 * When distributing Covered Code, include this CDDL HEADER in each
14*6030Sjb150015 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6030Sjb150015 * If applicable, add the following below this CDDL HEADER, with the
16*6030Sjb150015 * fields enclosed by brackets "[]" replaced with your own identifying
17*6030Sjb150015 * information: Portions Copyright [yyyy] [name of copyright owner]
18*6030Sjb150015 *
19*6030Sjb150015 * CDDL HEADER END
20*6030Sjb150015 */
21*6030Sjb150015 /*
22*6030Sjb150015 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23*6030Sjb150015 * Use is subject to license terms.
24*6030Sjb150015 */
25*6030Sjb150015
26*6030Sjb150015 #ifndef _SMB_SQLITE_H
27*6030Sjb150015 #define _SMB_SQLITE_H
28*6030Sjb150015
29*6030Sjb150015 #pragma ident "%Z%%M% %I% %E% SMI"
30*6030Sjb150015
31*6030Sjb150015 #ifdef __cplusplus
32*6030Sjb150015 extern "C" {
33*6030Sjb150015 #endif
34*6030Sjb150015
35*6030Sjb150015 #include <sqlite/sqlite.h>
36*6030Sjb150015
37*6030Sjb150015 #ifdef _LP64
38*6030Sjb150015 /*
39*6030Sjb150015 * We cannot make 64-bit version of libsqlite because the code
40*6030Sjb150015 * has some problems.
41*6030Sjb150015 */
42*6030Sjb150015
43*6030Sjb150015 /*ARGSUSED*/
44*6030Sjb150015 sqlite *
sqlite_open(const char * filename,int mode,char ** errmsg)45*6030Sjb150015 sqlite_open(const char *filename, int mode, char **errmsg)
46*6030Sjb150015 {
47*6030Sjb150015 return (NULL);
48*6030Sjb150015 }
49*6030Sjb150015
50*6030Sjb150015 /*ARGSUSED*/
51*6030Sjb150015 void
sqlite_close(sqlite * db)52*6030Sjb150015 sqlite_close(sqlite *db)
53*6030Sjb150015 {
54*6030Sjb150015 }
55*6030Sjb150015
56*6030Sjb150015 /*ARGSUSED*/
57*6030Sjb150015 char *
sqlite_mprintf(const char * fmt,...)58*6030Sjb150015 sqlite_mprintf(const char *fmt, ...)
59*6030Sjb150015 {
60*6030Sjb150015 return (NULL);
61*6030Sjb150015 }
62*6030Sjb150015
63*6030Sjb150015 /*ARGSUSED*/
64*6030Sjb150015 void
sqlite_freemem(void * p)65*6030Sjb150015 sqlite_freemem(void *p)
66*6030Sjb150015 {
67*6030Sjb150015 }
68*6030Sjb150015
69*6030Sjb150015 /*ARGSUSED*/
70*6030Sjb150015 int
sqlite_compile(sqlite * db,const char * zSql,const char ** pzTail,sqlite_vm ** ppVm,char ** pzErrmsg)71*6030Sjb150015 sqlite_compile(sqlite *db, const char *zSql, const char **pzTail,
72*6030Sjb150015 sqlite_vm **ppVm, char **pzErrmsg)
73*6030Sjb150015 {
74*6030Sjb150015 return (SQLITE_ERROR);
75*6030Sjb150015 }
76*6030Sjb150015
77*6030Sjb150015 /*ARGSUSED*/
78*6030Sjb150015 void
sqlite_free_table(char ** res)79*6030Sjb150015 sqlite_free_table(char **res)
80*6030Sjb150015 {
81*6030Sjb150015 }
82*6030Sjb150015
83*6030Sjb150015 /*ARGSUSED*/
84*6030Sjb150015 int
sqlite_last_insert_rowid(sqlite * db)85*6030Sjb150015 sqlite_last_insert_rowid(sqlite *db)
86*6030Sjb150015 {
87*6030Sjb150015 return (-1);
88*6030Sjb150015 }
89*6030Sjb150015
90*6030Sjb150015 /*ARGSUSED*/
91*6030Sjb150015 void
sqlite_busy_timeout(sqlite * db,int ms)92*6030Sjb150015 sqlite_busy_timeout(sqlite *db, int ms)
93*6030Sjb150015 {
94*6030Sjb150015 }
95*6030Sjb150015
96*6030Sjb150015 /*ARGSUSED*/
97*6030Sjb150015 int
sqlite_get_table(sqlite * db,const char * zSql,char *** pazResult,int * pnRow,int * pnColumn,char ** pzErrMsg)98*6030Sjb150015 sqlite_get_table(sqlite *db, const char *zSql, char ***pazResult, int *pnRow,
99*6030Sjb150015 int *pnColumn, char **pzErrMsg)
100*6030Sjb150015 {
101*6030Sjb150015 return (SQLITE_ERROR);
102*6030Sjb150015 }
103*6030Sjb150015
104*6030Sjb150015 /*ARGSUSED*/
105*6030Sjb150015 int
sqlite_step(sqlite_vm * pVm,int * pN,const char *** pazValue,const char *** pazColName)106*6030Sjb150015 sqlite_step(sqlite_vm *pVm, int *pN, const char ***pazValue,
107*6030Sjb150015 const char ***pazColName)
108*6030Sjb150015 {
109*6030Sjb150015 return (SQLITE_ERROR);
110*6030Sjb150015 }
111*6030Sjb150015
112*6030Sjb150015 /*ARGSUSED*/
113*6030Sjb150015 int
sqlite_exec(sqlite * db,const char * zSql,sqlite_callback xCallback,void * pArg,char ** pzErrMsg)114*6030Sjb150015 sqlite_exec(sqlite *db, const char *zSql, sqlite_callback xCallback, void *pArg,
115*6030Sjb150015 char **pzErrMsg)
116*6030Sjb150015 {
117*6030Sjb150015 return (SQLITE_ERROR);
118*6030Sjb150015 }
119*6030Sjb150015
120*6030Sjb150015 /*ARGSUSED*/
121*6030Sjb150015 int
sqlite_finalize(sqlite_vm * pVm,char ** pzErrMsg)122*6030Sjb150015 sqlite_finalize(sqlite_vm *pVm, char **pzErrMsg)
123*6030Sjb150015 {
124*6030Sjb150015 return (SQLITE_ERROR);
125*6030Sjb150015 }
126*6030Sjb150015 #endif /* _LP64 */
127*6030Sjb150015
128*6030Sjb150015 #ifdef __cplusplus
129*6030Sjb150015 }
130*6030Sjb150015 #endif
131*6030Sjb150015
132*6030Sjb150015 #endif /* _SMB_SQLITE_H */
133