Lines Matching refs:pArg

1176   int (*xFileControl)(sqlite3_file*, int op, void *pArg);
1205 ** into an integer that the pArg argument points to.
1419 ** pointed to by the pArg argument. This capability is used during testing
6816 ** ^The fourth argument, pArg, is an application data pointer that is passed
6827 ** ^The collating function callback is invoked with a copy of the pArg
6852 ** with the addition that the xDestroy callback is invoked on pArg when
6873 void *pArg,
6880 void *pArg,
6888 void *pArg,
7276 ** ^The pArg argument is passed through to the callback.
9495 ** method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^
9628 void *pArg;
9650 void *pArg;
11609 SQLITE_API int sqlite3session_object_config(sqlite3_session*, int op, void *pArg);
11621 ** pArg must point to a value of type (int). If the value is initially
13314 ** pointed to by pArg is set to the final value of the streaming interface
13321 SQLITE_API int sqlite3session_config(int op, void *pArg);
18492 ** LIKEFUNC(zName, nArg, pArg, flags)
18495 ** function likeFunc. Argument pArg is cast to a (void *) and made
18538 #define STR_FUNCTION(zName, nArg, pArg, bNC, xFunc) \
18541 pArg, 0, xFunc, 0, 0, 0, #zName, }
26665 SQLITE_PRIVATE int sqlite3OsFileControl(sqlite3_file *id, int op, void *pArg){
26691 return id->pMethods->xFileControl(id, op, pArg);
26693 SQLITE_PRIVATE void sqlite3OsFileControlHint(sqlite3_file *id, int op, void *pArg){
26694 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
30802 void(*xCallback)(void *pArg, sqlite3_int64 used,int N),
30803 void *pArg,
30807 (void)pArg;
34758 void *pArg /* IN: Pointer to the SQLiteThread structure */
34760 SQLiteThread *p = (SQLiteThread *)pArg;
37937 static int kvvfsFileControlDb(sqlite3_file*, int op, void *pArg);
37938 static int kvvfsFileControlJrnl(sqlite3_file*, int op, void *pArg);
38635 static int kvvfsFileControlJrnl(sqlite3_file *pProtoFile, int op, void *pArg){
38639 static int kvvfsFileControlDb(sqlite3_file *pProtoFile, int op, void *pArg){
42799 ** If *pArg is initially negative then this is a query. Set *pArg to
42802 ** If *pArg is 0 or 1, then clear or set the mask bit of pFile->ctrlFlags.
42804 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
42805 if( *pArg<0 ){
42806 *pArg = (pFile->ctrlFlags & mask)!=0;
42807 }else if( (*pArg)==0 ){
42823 static int unixFileControl(sqlite3_file *id, int op, void *pArg){
42847 *(int*)pArg = pFile->eFileLock;
42851 *(int*)pArg = pFile->lastErrno;
42855 pFile->szChunk = *(int *)pArg;
42861 rc = fcntlSizeHint(pFile, *(i64 *)pArg);
42866 unixModeBit(pFile, UNIXFILE_PERSIST_WAL, (int*)pArg);
42870 unixModeBit(pFile, UNIXFILE_PSOW, (int*)pArg);
42874 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
42881 *(char**)pArg = zTFile;
42886 *(int*)pArg = fileHasMoved(pFile);
42892 int iNew = *(int*)pArg;
42896 pFile->iBusyTimeout = !!(*(int*)pArg);
42900 *(int*)pArg = iOld;
42904 int iNew = *(int*)pArg;
42911 i64 newLimit = *(i64*)pArg;
42924 *(i64*)pArg = pFile->mmapSizeMax;
42949 return proxyFileControl(id,op,pArg);
42955 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
42957 *(int*)pArg = 0;
46775 static int proxyFileControl(sqlite3_file *id, int op, void *pArg){
46783 *(const char **)pArg = pCtx->lockProxyPath;
46785 *(const char **)pArg = ":auto: (not held)";
46788 *(const char **)pArg = NULL;
46796 if( pArg==NULL || (const char *)pArg==0 ){
46808 const char *proxyPath = (const char *)pArg;
46812 if( !strcmp(pArg, ":auto:")
50915 ** If *pArg is initially negative then this is a query. Set *pArg to
50918 ** If *pArg is 0 or 1, then clear or set the mask bit of pFile->ctrlFlags.
50920 static void winModeBit(winFile *pFile, unsigned char mask, int *pArg){
50921 if( *pArg<0 ){
50922 *pArg = (pFile->ctrlFlags & mask)!=0;
50923 }else if( (*pArg)==0 ){
50939 static int winFileControl(sqlite3_file *id, int op, void *pArg){
50941 OSTRACE(("FCNTL file=%p, op=%d, pArg=%p\n", pFile->h, op, pArg));
50944 *(int*)pArg = pFile->locktype;
50949 *(int*)pArg = (int)pFile->lastErrno;
50954 pFile->szChunk = *(int *)pArg;
50963 sqlite3_int64 newSz = *(sqlite3_int64*)pArg;
50977 winModeBit(pFile, WINFILE_PERSIST_WAL, (int*)pArg);
50982 winModeBit(pFile, WINFILE_PSOW, (int*)pArg);
50987 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
50992 int *a = (int*)pArg;
51007 LPHANDLE phFile = (LPHANDLE)pArg;
51014 LPHANDLE phFile = (LPHANDLE)pArg;
51032 *(char**)pArg = zTFile;
51039 i64 newLimit = *(i64*)pArg;
51052 *(i64*)pArg = pFile->mmapSizeMax;
51068 int iNew = *(int*)pArg;
51076 *(int*)pArg = iOld;
51080 int iNew = *(int*)pArg;
53928 static int memdbFileControl(sqlite3_file*, int op, void *pArg);
54278 static int memdbFileControl(sqlite3_file *pFile, int op, void *pArg){
54283 *(char**)pArg = sqlite3_mprintf("memdb(%p,%lld)", p->aData, p->sz);
54287 sqlite3_int64 iLimit = *(sqlite3_int64*)pArg;
54296 *(sqlite3_int64*)pArg = iLimit;
55476 return sqlite3GlobalConfig.pcache2.xInit(sqlite3GlobalConfig.pcache2.pArg);
55481 sqlite3GlobalConfig.pcache2.xShutdown(sqlite3GlobalConfig.pcache2.pArg);
57303 0, /* pArg */
57541 SQLITE_PRIVATE void sqlite3RowSetClear(void *pArg){
57542 RowSet *p = (RowSet*)pArg;
57561 SQLITE_PRIVATE void sqlite3RowSetDelete(void *pArg){
57562 sqlite3RowSetClear(pArg);
57563 sqlite3DbFree(((RowSet*)pArg)->db, pArg);
64443 void *pArg = (void*)zSuper;
64444 rc = sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC, pArg);
74053 static int btreeInvokeBusyHandler(void *pArg){
74054 BtShared *pBt = (BtShared*)pArg;
88138 SQLITE_PRIVATE void sqlite3VdbeFrameMemDel(void *pArg){
88139 VdbeFrame *pFrame = (VdbeFrame*)pArg;
114821 Expr *pArg = pFarg->a[0].pExpr;
114822 if( pArg->op==TK_COLUMN && pArg->iTable>=0 ){
114823 sqlite3VdbeAddOp3(v, OP_Offset, pArg->iTable, pArg->iColumn, target);
122813 void *pArg
122820 db->pAuthArg = pArg;
124403 static void sqlite3DeleteReturning(sqlite3 *db, void *pArg){
124404 Returning *pRet = (Returning*)pArg;
132479 Mem *pArg = (Mem *)argv[0];
132486 if( sqlite3_value_type(pArg)==SQLITE_NULL ){
132501 cmp = sqlite3MemCompare(pBest, pArg, pColl);
132503 sqlite3VdbeMemCopy(pBest, pArg);
132509 sqlite3VdbeMemCopy(pBest, pArg);
138233 ** the xCallback() function is called. pArg becomes the first
138241 void *pArg, /* First argument to xCallback() */
138305 if( xCallback(pArg, nCol, azVals, azCols) ){
152031 static void agginfoFree(sqlite3 *db, void *pArg){
152032 AggInfo *p = (AggInfo*)pArg;
153704 static int sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv){
153705 TabResult *p = (TabResult*)pArg; /* Result accumulator */
158095 Token *pArg = &pParse->sArg;
158096 if( pArg->z==0 ){
158097 pArg->z = p->z;
158098 pArg->n = p->n;
158100 assert(pArg->z <= p->z);
158101 pArg->n = (int)(&p->z[p->n] - pArg->z);
158716 void *pArg = 0;
158749 rc = pMod->xFindFunction(pVtab, nArg, pDef->zName, &xSFunc, &pArg);
158765 pNew->pUserData = pArg;
168321 void *pArg = (void*)&pParse->pIdxPartExpr;
168322 sqlite3ParserAddCleanup(pParse, whereIndexedExprCleanup, pArg);
171014 void *pArg = (void*)&pParse->pIdxEpr;
171015 sqlite3ParserAddCleanup(pParse, whereIndexedExprCleanup, pArg);
184418 void *pArg
184425 db->busyHandler.pBusyArg = pArg;
184445 void *pArg
184457 db->pProgressArg = pArg;
184709 FuncDestructor *pArg = 0;
184718 pArg = (FuncDestructor *)sqlite3Malloc(sizeof(FuncDestructor));
184719 if( !pArg ){
184724 pArg->nRef = 0;
184725 pArg->xDestroy = xDestroy;
184726 pArg->pUserData = p;
184729 xSFunc, xStep, xFinal, xValue, xInverse, pArg
184731 if( pArg && pArg->nRef==0 ){
184734 sqlite3_free(pArg);
184877 ** Register a trace function. The pArg from the previously registered trace
184885 SQLITE_API void *sqlite3_trace(sqlite3 *db, void(*xTrace)(void*,const char*), void *pArg){
184898 db->pTraceArg = pArg;
184910 void *pArg /* Context */
184922 db->pTraceArg = pArg;
184929 ** Register a profile function. The pArg from the previously registered
184939 void *pArg
184952 db->pProfileArg = pArg;
184969 void *pArg /* Argument to the function */
184982 db->pCommitArg = pArg;
184994 void *pArg /* Argument to the function */
185007 db->pUpdateArg = pArg;
185019 void *pArg /* Argument to the function */
185032 db->pRollbackArg = pArg;
185046 void *pArg /* First callback argument */
185058 db->pPreUpdateArg = pArg;
185071 void *pArg, /* Argument to the function */
185072 void (*xDestructor)(void*) /* Destructor for pArg */
185076 if( xDestructor ) xDestructor(pArg);
185085 db->pAutovacPagesArg = pArg;
185149 void *pArg /* First argument passed to xCallback() */
185162 db->pWalArg = pArg;
186265 void *pArg = sqlite3GlobalConfig.pSqllogArg;
186266 sqlite3GlobalConfig.xSqllog(pArg, db, zFilename, 0);
186738 SQLITE_API int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){
186756 *(sqlite3_file**)pArg = fd;
186759 *(sqlite3_vfs**)pArg = sqlite3PagerVfs(pPager);
186762 *(sqlite3_file**)pArg = sqlite3PagerJrnlFile(pPager);
186765 *(unsigned int*)pArg = sqlite3PagerDataVersion(pPager);
186768 int iNew = *(int*)pArg;
186769 *(int*)pArg = sqlite3BtreeGetRequestedReserve(pBtree);
186779 rc = sqlite3OsFileControl(fd, op, pArg);
187925 void *pArg
187946 xNotify(&pArg, 1);
187956 db->pUnlockArg = pArg;
208314 ** Search for a cached translation the json text supplied by pArg. Return
208326 sqlite3_value *pArg /* Function argument containing SQL text */
208333 if( sqlite3_value_type(pArg)!=SQLITE_TEXT ){
208336 zJson = (const char*)sqlite3_value_text(pArg);
208338 nJson = sqlite3_value_bytes(pArg);
211157 ** pArg is a function argument that might be an SQL value or a JSON
211167 ** or a value obtained from sqlite3_value_blob(pArg).
211175 sqlite3_value *pArg,
211178 int eType = sqlite3_value_type(pArg);
211189 if( !jsonArgIsJsonb(pArg, pParse) ){
211196 const char *zJson = (const char*)sqlite3_value_text(pArg);
211197 int nJson = sqlite3_value_bytes(pArg);
211199 if( sqlite3_value_subtype(pArg)==JSON_SUBTYPE ){
211214 double r = sqlite3_value_double(pArg);
211218 int n = sqlite3_value_bytes(pArg);
211219 const char *z = (const char*)sqlite3_value_text(pArg);
211232 int n = sqlite3_value_bytes(pArg);
211233 const char *z = (const char*)sqlite3_value_text(pArg);
211338 ** If pArg is a blob that seems like a JSONB blob, then initialize
211339 ** p to point to that JSONB and return TRUE. If pArg does not seem like
211365 static int jsonArgIsJsonb(sqlite3_value *pArg, JsonParse *p){
211368 if( sqlite3_value_type(pArg)!=SQLITE_BLOB ) return 0;
211369 p->aBlob = (u8*)sqlite3_value_blob(pArg);
211370 p->nBlob = (u32)sqlite3_value_bytes(pArg);
211390 ** from the SQL function argument pArg. Return a pointer to the new
211399 ** returns NULL. This routine also returns NULL if the pArg argument
211406 sqlite3_value *pArg,
211409 int eType; /* Datatype of pArg */
211415 eType = sqlite3_value_type(pArg);
211419 pFromCache = jsonCacheSearch(ctx, pArg);
211444 if( jsonArgIsJsonb(pArg,p) ){
211463 p->zJson = (char*)sqlite3_value_text(pArg);
211464 p->nJson = sqlite3_value_bytes(pArg);
211477 int isRCStr = sqlite3ValueIsOfClass(pArg, sqlite3RCStrUnref);
219655 static void rtreeMatchArgFree(void *pArg){
219657 RtreeMatchArg *p = (RtreeMatchArg*)pArg;
221285 ** argument (pArg) passed to this function. The second is the full path
221297 void *pArg,
221298 int (*xRename)(void *pArg, const char *zOld, const char *zNew)
225697 static int xDefaultRename(void *pArg, const char *zOld, const char *zNew){
225699 UNUSED_PARAMETER(pArg);
225731 void *pArg,
225732 int (*xRename)(void *pArg, const char *zOld, const char *zNew)
225736 pRbu->pRenameArg = pArg;
226150 static int rbuVfsFileControl(sqlite3_file *pFile, int op, void *pArg){
226159 sqlite3rbu *pRbu = (sqlite3rbu*)pArg;
226164 rc = xControl(p->pReal, op, pArg);
226185 sqlite3rbu *pRbu = (sqlite3rbu*)pArg;
226191 rc = xControl(p->pReal, op, pArg);
226194 char *zIn = *(char**)pArg;
226196 *(char**)pArg = zOut;
226558 void *pArg,
226562 return pRealVfs->xDlSym(pRealVfs, pArg, zSym);
231408 SQLITE_API int sqlite3session_object_config(sqlite3_session *pSession, int op, void *pArg){
231412 int iArg = *(int*)pArg;
231420 *(int*)pArg = pSession->bEnableSize;
231425 int iArg = *(int*)pArg;
231433 *(int*)pArg = pSession->bImplicitPK;
234730 SQLITE_API int sqlite3session_config(int op, void *pArg){
234734 int *pInt = (int*)pArg;