Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

qam_stub.c

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1996-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: qam_stub.c,v 12.1 2005/06/16 20:23:33 bostic Exp $
00008  */
00009 
00010 #include "db_config.h"
00011 
00012 #ifndef HAVE_QUEUE
00013 #ifndef NO_SYSTEM_INCLUDES
00014 #include <sys/types.h>
00015 #endif
00016 
00017 #include "db_int.h"
00018 #include "dbinc/db_page.h"
00019 #include "dbinc/qam.h"
00020 
00021 /*
00022  * If the library wasn't compiled with the Queue access method, various
00023  * routines aren't available.  Stub them here, returning an appropriate
00024  * error.
00025  */
00026 
00027 /*
00028  * __db_no_queue_am --
00029  *      Error when a Berkeley DB build doesn't include the access method.
00030  *
00031  * PUBLIC: int __db_no_queue_am __P((DB_ENV *));
00032  */
00033 int
00034 __db_no_queue_am(dbenv)
00035         DB_ENV *dbenv;
00036 {
00037         __db_err(dbenv,
00038     "library build did not include support for the Queue access method");
00039         return (DB_OPNOTSUP);
00040 }
00041 
00042 int
00043 __db_prqueue(dbp, flags)
00044         DB *dbp;
00045         u_int32_t flags;
00046 {
00047         COMPQUIET(flags, 0);
00048         return (__db_no_queue_am(dbp->dbenv));
00049 }
00050 
00051 int
00052 __qam_31_qammeta(dbp, real_name, buf)
00053         DB *dbp;
00054         char *real_name;
00055         u_int8_t *buf;
00056 {
00057         COMPQUIET(real_name, NULL);
00058         COMPQUIET(buf, NULL);
00059         return (__db_no_queue_am(dbp->dbenv));
00060 }
00061 
00062 int
00063 __qam_32_qammeta(dbp, real_name, buf)
00064         DB *dbp;
00065         char *real_name;
00066         u_int8_t *buf;
00067 {
00068         COMPQUIET(real_name, NULL);
00069         COMPQUIET(buf, NULL);
00070         return (__db_no_queue_am(dbp->dbenv));
00071 }
00072 
00073 int
00074 __qam_append(dbc, key, data)
00075         DBC *dbc;
00076         DBT *key, *data;
00077 {
00078         COMPQUIET(key, NULL);
00079         COMPQUIET(data, NULL);
00080         return (__db_no_queue_am(dbc->dbp->dbenv));
00081 }
00082 
00083 int
00084 __qam_c_dup(orig_dbc, new_dbc)
00085         DBC *orig_dbc, *new_dbc;
00086 {
00087         COMPQUIET(new_dbc, NULL);
00088         return (__db_no_queue_am(orig_dbc->dbp->dbenv));
00089 }
00090 
00091 int
00092 __qam_c_init(dbc)
00093         DBC *dbc;
00094 {
00095         return (__db_no_queue_am(dbc->dbp->dbenv));
00096 }
00097 
00098 int
00099 __qam_db_close(dbp, flags)
00100         DB *dbp;
00101         u_int32_t flags;
00102 {
00103         COMPQUIET(dbp, NULL);
00104         COMPQUIET(flags, 0);
00105         return (0);
00106 }
00107 
00108 int
00109 __qam_db_create(dbp)
00110         DB *dbp;
00111 {
00112         COMPQUIET(dbp, NULL);
00113         return (0);
00114 }
00115 
00116 int
00117 __qam_extent_names(dbenv, name, namelistp)
00118         DB_ENV *dbenv;
00119         char *name;
00120         char ***namelistp;
00121 {
00122         COMPQUIET(name, NULL);
00123         COMPQUIET(namelistp, NULL);
00124         return (__db_no_queue_am(dbenv));
00125 }
00126 
00127 int
00128 __qam_gen_filelist(dbp, filelistp)
00129         DB *dbp;
00130         QUEUE_FILELIST **filelistp;
00131 {
00132         COMPQUIET(filelistp, NULL);
00133         return (__db_no_queue_am(dbp->dbenv));
00134 }
00135 
00136 int
00137 __qam_init_print(dbenv, dtabp, dtabsizep)
00138         DB_ENV *dbenv;
00139         int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00140         size_t *dtabsizep;
00141 {
00142         COMPQUIET(dbenv, NULL);
00143         COMPQUIET(dtabp, NULL);
00144         COMPQUIET(dtabsizep, NULL);
00145         return (0);
00146 }
00147 
00148 int
00149 __qam_init_recover(dbenv, dtabp, dtabsizep)
00150         DB_ENV *dbenv;
00151         int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00152         size_t *dtabsizep;
00153 {
00154         COMPQUIET(dbenv, NULL);
00155         COMPQUIET(dtabp, NULL);
00156         COMPQUIET(dtabsizep, NULL);
00157         return (0);
00158 }
00159 
00160 int
00161 __qam_metachk(dbp, name, qmeta)
00162         DB *dbp;
00163         const char *name;
00164         QMETA *qmeta;
00165 {
00166         COMPQUIET(name, NULL);
00167         COMPQUIET(qmeta, NULL);
00168         return (__db_no_queue_am(dbp->dbenv));
00169 }
00170 
00171 int
00172 __qam_new_file(dbp, txn, fhp, name)
00173         DB *dbp;
00174         DB_TXN *txn;
00175         DB_FH *fhp;
00176         const char *name;
00177 {
00178         COMPQUIET(txn, NULL);
00179         COMPQUIET(fhp, NULL);
00180         COMPQUIET(name, NULL);
00181         return (__db_no_queue_am(dbp->dbenv));
00182 }
00183 
00184 int
00185 __qam_open(dbp, txn, name, base_pgno, mode, flags)
00186         DB *dbp;
00187         DB_TXN *txn;
00188         const char *name;
00189         db_pgno_t base_pgno;
00190         int mode;
00191         u_int32_t flags;
00192 {
00193         COMPQUIET(txn, NULL);
00194         COMPQUIET(name, NULL);
00195         COMPQUIET(base_pgno, 0);
00196         COMPQUIET(mode, 0);
00197         COMPQUIET(flags, 0);
00198         return (__db_no_queue_am(dbp->dbenv));
00199 }
00200 
00201 int
00202 __qam_pgin_out(dbenv, pg, pp, cookie)
00203         DB_ENV *dbenv;
00204         db_pgno_t pg;
00205         void *pp;
00206         DBT *cookie;
00207 {
00208         COMPQUIET(pg, 0);
00209         COMPQUIET(pp, NULL);
00210         COMPQUIET(cookie, NULL);
00211         return (__db_no_queue_am(dbenv));
00212 }
00213 
00214 int
00215 __qam_salvage(dbp, vdp, pgno, h, handle, callback, flags)
00216         DB *dbp;
00217         VRFY_DBINFO *vdp;
00218         db_pgno_t pgno;
00219         PAGE *h;
00220         void *handle;
00221         int (*callback) __P((void *, const void *));
00222         u_int32_t flags;
00223 {
00224         COMPQUIET(vdp, NULL);
00225         COMPQUIET(pgno, 0);
00226         COMPQUIET(h, NULL);
00227         COMPQUIET(handle, NULL);
00228         COMPQUIET(callback, NULL);
00229         COMPQUIET(flags, 0);
00230         return (__db_no_queue_am(dbp->dbenv));
00231 }
00232 
00233 int
00234 __qam_set_ext_data(dbp, name)
00235         DB *dbp;
00236         const char *name;
00237 {
00238         COMPQUIET(name, NULL);
00239         return (__db_no_queue_am(dbp->dbenv));
00240 }
00241 
00242 int
00243 __qam_stat(dbc, spp, flags)
00244         DBC *dbc;
00245         void *spp;
00246         u_int32_t flags;
00247 {
00248         COMPQUIET(spp, NULL);
00249         COMPQUIET(flags, 0);
00250         return (__db_no_queue_am(dbc->dbp->dbenv));
00251 }
00252 
00253 int
00254 __qam_stat_print(dbc, flags)
00255         DBC *dbc;
00256         u_int32_t flags;
00257 {
00258         COMPQUIET(flags, 0);
00259         return (__db_no_queue_am(dbc->dbp->dbenv));
00260 }
00261 
00262 int
00263 __qam_sync(dbp)
00264         DB *dbp;
00265 {
00266         return (__db_no_queue_am(dbp->dbenv));
00267 }
00268 
00269 int
00270 __qam_truncate(dbc, countp)
00271         DBC *dbc;
00272         u_int32_t *countp;
00273 {
00274         COMPQUIET(dbc, NULL);
00275         COMPQUIET(countp, NULL);
00276         return (__db_no_queue_am(dbc->dbp->dbenv));
00277 }
00278 
00279 int
00280 __qam_vrfy_data(dbp, vdp, h, pgno, flags)
00281         DB *dbp;
00282         VRFY_DBINFO *vdp;
00283         QPAGE *h;
00284         db_pgno_t pgno;
00285         u_int32_t flags;
00286 {
00287         COMPQUIET(vdp, NULL);
00288         COMPQUIET(h, NULL);
00289         COMPQUIET(pgno, 0);
00290         COMPQUIET(flags, 0);
00291         return (__db_no_queue_am(dbp->dbenv));
00292 }
00293 
00294 int
00295 __qam_vrfy_meta(dbp, vdp, meta, pgno, flags)
00296         DB *dbp;
00297         VRFY_DBINFO *vdp;
00298         QMETA *meta;
00299         db_pgno_t pgno;
00300         u_int32_t flags;
00301 {
00302         COMPQUIET(vdp, NULL);
00303         COMPQUIET(meta, NULL);
00304         COMPQUIET(pgno, 0);
00305         COMPQUIET(flags, 0);
00306         return (__db_no_queue_am(dbp->dbenv));
00307 }
00308 
00309 int
00310 __qam_vrfy_structure(dbp, vdp, flags)
00311         DB *dbp;
00312         VRFY_DBINFO *vdp;
00313         u_int32_t flags;
00314 {
00315         COMPQUIET(vdp, NULL);
00316         COMPQUIET(flags, 0);
00317         return (__db_no_queue_am(dbp->dbenv));
00318 }
00319 
00320 int
00321 __qam_vrfy_walkqueue(dbp, vdp, handle, callback, flags)
00322         DB *dbp;
00323         VRFY_DBINFO *vdp;
00324         void *handle;
00325         int (*callback) __P((void *, const void *));
00326         u_int32_t flags;
00327 {
00328         COMPQUIET(vdp, NULL);
00329         COMPQUIET(handle, NULL);
00330         COMPQUIET(callback, NULL);
00331         COMPQUIET(flags, 0);
00332         return (__db_no_queue_am(dbp->dbenv));
00333 }
00334 #endif  /* !HAVE_QUEUE */

Generated on Sun Dec 25 12:14:44 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2