Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones
Referencia del Archivo src/qt/src/3rdparty/sqlite/pager.c
#include "os.h"
#include "sqliteInt.h"
#include "pager.h"
#include <assert.h>
#include <string.h>

Clases

struct  PgHdr
struct  Pager
struct  PageRecord

'defines'

#define SET_PAGER(X)
#define CLR_PAGER(X)
#define TRACE1(X)
#define TRACE2(X, Y)
#define TRACE3(X, Y, Z)
#define SQLITE_UNLOCK   0
#define SQLITE_READLOCK   1
#define SQLITE_WRITELOCK   2
#define CODEC(P, D, N, X)
#define PGHDR_TO_DATA(P)   ((void*)(&(P)[1]))
#define DATA_TO_PGHDR(D)   (&((PgHdr*)(D))[-1])
#define PGHDR_TO_EXTRA(P)   ((void*)&((char*)(&(P)[1]))[SQLITE_PAGE_SIZE])
#define N_PG_HASH   2048
#define pager_hash(PN)   ((PN)&(N_PG_HASH-1))
#define PAGER_ERR_FULL   0x01
#define PAGER_ERR_MEM   0x02
#define PAGER_ERR_LOCK   0x04
#define PAGER_ERR_CORRUPT   0x08
#define PAGER_ERR_DISK   0x10
#define JOURNAL_FORMAT_1   1
#define JOURNAL_FORMAT_2   2
#define JOURNAL_FORMAT_3   3
#define journal_format   3
#define JOURNAL_HDR_SZ(X)   (sizeof(aJournalMagic1) + sizeof(Pgno) + ((X)>=3)*2*sizeof(u32))
#define JOURNAL_PG_SZ(X)   (SQLITE_PAGE_SIZE + sizeof(Pgno) + ((X)>=3)*sizeof(u32))
#define REFINFO(X)
#define page_ref(P)   ((P)->nRef==0?_page_ref(P):(void)(P)->nRef++)

'typedefs'

typedef struct PgHdr PgHdr
typedef struct PageRecord PageRecord

Funciones

void sqlitepager_set_cachesize (Pager *pPager, int mxPage)
void sqlitepager_set_safety_level (Pager *pPager, int level)
int sqlitepager_open (Pager **ppPager, const char *zFilename, int mxPage, int nExtra, int useJournal)
void sqlitepager_set_destructor (Pager *pPager, void(*xDesc)(void *))
int sqlitepager_pagecount (Pager *pPager)
int sqlitepager_truncate (Pager *pPager, Pgno nPage)
int sqlitepager_close (Pager *pPager)
Pgno sqlitepager_pagenumber (void *pData)
int sqlitepager_ref (void *pData)
int sqlitepager_get (Pager *pPager, Pgno pgno, void **ppPage)
void * sqlitepager_lookup (Pager *pPager, Pgno pgno)
int sqlitepager_unref (void *pData)
int sqlitepager_begin (void *pData)
int sqlitepager_write (void *pData)
int sqlitepager_iswriteable (void *pData)
int sqlitepager_overwrite (Pager *pPager, Pgno pgno, void *pData)
void sqlitepager_dont_write (Pager *pPager, Pgno pgno)
void sqlitepager_dont_rollback (void *pData)
int sqlitepager_commit (Pager *pPager)
int sqlitepager_rollback (Pager *pPager)
int sqlitepager_isreadonly (Pager *pPager)
intsqlitepager_stats (Pager *pPager)
int sqlitepager_ckpt_begin (Pager *pPager)
int sqlitepager_ckpt_commit (Pager *pPager)
int sqlitepager_ckpt_rollback (Pager *pPager)
const char * sqlitepager_filename (Pager *pPager)
void sqlitepager_set_codec (Pager *pPager, void(*xCodec)(void *, void *, Pgno, int), void *pCodecArg)

Documentación de los 'defines'

#define CLR_PAGER (   X)
#define CODEC (   P,
  D,
  N,
 
)
#define DATA_TO_PGHDR (   D)    (&((PgHdr*)(D))[-1])
#define journal_format   3
#define JOURNAL_FORMAT_1   1
#define JOURNAL_FORMAT_2   2
#define JOURNAL_FORMAT_3   3
#define JOURNAL_HDR_SZ (   X)    (sizeof(aJournalMagic1) + sizeof(Pgno) + ((X)>=3)*2*sizeof(u32))
#define JOURNAL_PG_SZ (   X)    (SQLITE_PAGE_SIZE + sizeof(Pgno) + ((X)>=3)*sizeof(u32))
#define N_PG_HASH   2048
#define page_ref (   P)    ((P)->nRef==0?_page_ref(P):(void)(P)->nRef++)
#define PAGER_ERR_CORRUPT   0x08
#define PAGER_ERR_DISK   0x10
#define PAGER_ERR_FULL   0x01
#define PAGER_ERR_LOCK   0x04
#define PAGER_ERR_MEM   0x02
#define pager_hash (   PN)    ((PN)&(N_PG_HASH-1))
#define PGHDR_TO_DATA (   P)    ((void*)(&(P)[1]))
#define PGHDR_TO_EXTRA (   P)    ((void*)&((char*)(&(P)[1]))[SQLITE_PAGE_SIZE])
#define REFINFO (   X)
#define SET_PAGER (   X)
#define SQLITE_READLOCK   1
#define SQLITE_UNLOCK   0
#define SQLITE_WRITELOCK   2
#define TRACE1 (   X)
#define TRACE2 (   X,
 
)
#define TRACE3 (   X,
  Y,
 
)

Documentación de los 'typedefs'

typedef struct PageRecord PageRecord
typedef struct PgHdr PgHdr

Documentación de las funciones

int sqlitepager_begin ( void *  pData)
int sqlitepager_ckpt_begin ( Pager pPager)
int sqlitepager_ckpt_commit ( Pager pPager)
int sqlitepager_ckpt_rollback ( Pager pPager)
int sqlitepager_close ( Pager pPager)
int sqlitepager_commit ( Pager pPager)
void sqlitepager_dont_rollback ( void *  pData)
void sqlitepager_dont_write ( Pager pPager,
Pgno  pgno 
)
const char* sqlitepager_filename ( Pager pPager)
int sqlitepager_get ( Pager pPager,
Pgno  pgno,
void **  ppPage 
)
int sqlitepager_isreadonly ( Pager pPager)
int sqlitepager_iswriteable ( void *  pData)
void* sqlitepager_lookup ( Pager pPager,
Pgno  pgno 
)
int sqlitepager_open ( Pager **  ppPager,
const char *  zFilename,
int  mxPage,
int  nExtra,
int  useJournal 
)
int sqlitepager_overwrite ( Pager pPager,
Pgno  pgno,
void *  pData 
)
int sqlitepager_pagecount ( Pager pPager)
Pgno sqlitepager_pagenumber ( void *  pData)
int sqlitepager_ref ( void *  pData)
int sqlitepager_rollback ( Pager pPager)
void sqlitepager_set_cachesize ( Pager pPager,
int  mxPage 
)
void sqlitepager_set_codec ( Pager pPager,
void(*)(void *, void *, Pgno, int xCodec,
void *  pCodecArg 
)
void sqlitepager_set_destructor ( Pager pPager,
void(*)(void *)  xDesc 
)
void sqlitepager_set_safety_level ( Pager pPager,
int  level 
)
int* sqlitepager_stats ( Pager pPager)
int sqlitepager_truncate ( Pager pPager,
Pgno  nPage 
)
int sqlitepager_unref ( void *  pData)
int sqlitepager_write ( void *  pData)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'