17b59d02dSjb150015 /* 27b59d02dSjb150015 * CDDL HEADER START 37b59d02dSjb150015 * 47b59d02dSjb150015 * The contents of this file are subject to the terms of the 57b59d02dSjb150015 * Common Development and Distribution License (the "License"). 67b59d02dSjb150015 * You may not use this file except in compliance with the License. 77b59d02dSjb150015 * 87b59d02dSjb150015 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97b59d02dSjb150015 * or http://www.opensolaris.org/os/licensing. 107b59d02dSjb150015 * See the License for the specific language governing permissions 117b59d02dSjb150015 * and limitations under the License. 127b59d02dSjb150015 * 137b59d02dSjb150015 * When distributing Covered Code, include this CDDL HEADER in each 147b59d02dSjb150015 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157b59d02dSjb150015 * If applicable, add the following below this CDDL HEADER, with the 167b59d02dSjb150015 * fields enclosed by brackets "[]" replaced with your own identifying 177b59d02dSjb150015 * information: Portions Copyright [yyyy] [name of copyright owner] 187b59d02dSjb150015 * 197b59d02dSjb150015 * CDDL HEADER END 207b59d02dSjb150015 */ 217b59d02dSjb150015 /* 227b59d02dSjb150015 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237b59d02dSjb150015 * Use is subject to license terms. 247b59d02dSjb150015 */ 257b59d02dSjb150015 267b59d02dSjb150015 #ifndef _SMB_SQLITE_H 277b59d02dSjb150015 #define _SMB_SQLITE_H 287b59d02dSjb150015 297b59d02dSjb150015 #ifdef __cplusplus 307b59d02dSjb150015 extern "C" { 317b59d02dSjb150015 #endif 327b59d02dSjb150015 33*91d7f85eSGordon Ross #include <sqlite-sys/sqlite.h> 347b59d02dSjb150015 357b59d02dSjb150015 #ifdef _LP64 367b59d02dSjb150015 /* 377b59d02dSjb150015 * We cannot make 64-bit version of libsqlite because the code 387b59d02dSjb150015 * has some problems. 397b59d02dSjb150015 */ 407b59d02dSjb150015 417b59d02dSjb150015 /*ARGSUSED*/ 427b59d02dSjb150015 sqlite * 437b59d02dSjb150015 sqlite_open(const char *filename, int mode, char **errmsg) 447b59d02dSjb150015 { 457b59d02dSjb150015 return (NULL); 467b59d02dSjb150015 } 477b59d02dSjb150015 487b59d02dSjb150015 /*ARGSUSED*/ 497b59d02dSjb150015 void 507b59d02dSjb150015 sqlite_close(sqlite *db) 517b59d02dSjb150015 { 527b59d02dSjb150015 } 537b59d02dSjb150015 547b59d02dSjb150015 /*ARGSUSED*/ 557b59d02dSjb150015 char * 567b59d02dSjb150015 sqlite_mprintf(const char *fmt, ...) 577b59d02dSjb150015 { 587b59d02dSjb150015 return (NULL); 597b59d02dSjb150015 } 607b59d02dSjb150015 617b59d02dSjb150015 /*ARGSUSED*/ 627b59d02dSjb150015 void 637b59d02dSjb150015 sqlite_freemem(void *p) 647b59d02dSjb150015 { 657b59d02dSjb150015 } 667b59d02dSjb150015 677b59d02dSjb150015 /*ARGSUSED*/ 687b59d02dSjb150015 int 697b59d02dSjb150015 sqlite_compile(sqlite *db, const char *zSql, const char **pzTail, 707b59d02dSjb150015 sqlite_vm **ppVm, char **pzErrmsg) 717b59d02dSjb150015 { 727b59d02dSjb150015 return (SQLITE_ERROR); 737b59d02dSjb150015 } 747b59d02dSjb150015 757b59d02dSjb150015 /*ARGSUSED*/ 767b59d02dSjb150015 void 777b59d02dSjb150015 sqlite_free_table(char **res) 787b59d02dSjb150015 { 797b59d02dSjb150015 } 807b59d02dSjb150015 817b59d02dSjb150015 /*ARGSUSED*/ 827b59d02dSjb150015 int 837b59d02dSjb150015 sqlite_last_insert_rowid(sqlite *db) 847b59d02dSjb150015 { 857b59d02dSjb150015 return (-1); 867b59d02dSjb150015 } 877b59d02dSjb150015 887b59d02dSjb150015 /*ARGSUSED*/ 897b59d02dSjb150015 void 907b59d02dSjb150015 sqlite_busy_timeout(sqlite *db, int ms) 917b59d02dSjb150015 { 927b59d02dSjb150015 } 937b59d02dSjb150015 947b59d02dSjb150015 /*ARGSUSED*/ 957b59d02dSjb150015 int 967b59d02dSjb150015 sqlite_get_table(sqlite *db, const char *zSql, char ***pazResult, int *pnRow, 977b59d02dSjb150015 int *pnColumn, char **pzErrMsg) 987b59d02dSjb150015 { 997b59d02dSjb150015 return (SQLITE_ERROR); 1007b59d02dSjb150015 } 1017b59d02dSjb150015 1027b59d02dSjb150015 /*ARGSUSED*/ 1037b59d02dSjb150015 int 1047b59d02dSjb150015 sqlite_step(sqlite_vm *pVm, int *pN, const char ***pazValue, 1057b59d02dSjb150015 const char ***pazColName) 1067b59d02dSjb150015 { 1077b59d02dSjb150015 return (SQLITE_ERROR); 1087b59d02dSjb150015 } 1097b59d02dSjb150015 1107b59d02dSjb150015 /*ARGSUSED*/ 1117b59d02dSjb150015 int 1127b59d02dSjb150015 sqlite_exec(sqlite *db, const char *zSql, sqlite_callback xCallback, void *pArg, 1137b59d02dSjb150015 char **pzErrMsg) 1147b59d02dSjb150015 { 1157b59d02dSjb150015 return (SQLITE_ERROR); 1167b59d02dSjb150015 } 1177b59d02dSjb150015 1187b59d02dSjb150015 /*ARGSUSED*/ 1197b59d02dSjb150015 int 1207b59d02dSjb150015 sqlite_finalize(sqlite_vm *pVm, char **pzErrMsg) 1217b59d02dSjb150015 { 1227b59d02dSjb150015 return (SQLITE_ERROR); 1237b59d02dSjb150015 } 1247b59d02dSjb150015 #endif /* _LP64 */ 1257b59d02dSjb150015 1267b59d02dSjb150015 #ifdef __cplusplus 1277b59d02dSjb150015 } 1287b59d02dSjb150015 #endif 1297b59d02dSjb150015 1307b59d02dSjb150015 #endif /* _SMB_SQLITE_H */ 131