Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / main / std_includes / sfd / include / interfaces / sqlite3.h
blob7208ee1afcd0f4f87af6c5764a9c61991005390a
1 #ifndef SQLITE3_INTERFACE_DEF_H
2 #define SQLITE3_INTERFACE_DEF_H
4 /*
5 ** This file was machine generated by idltool 52.1.
6 ** Do not edit
7 */
9 #ifndef EXEC_TYPES_H
10 #include <exec/types.h>
11 #endif
12 #ifndef EXEC_EXEC_H
13 #include <exec/exec.h>
14 #endif
15 #ifndef EXEC_INTERFACES_H
16 #include <exec/interfaces.h>
17 #endif
19 #ifndef SQLITE3_H
20 #include <sqlite3.h>
21 #endif
23 struct SQLite3IFace
25 struct InterfaceData Data;
27 uint32 APICALL (*Obtain)(struct SQLite3IFace *Self);
28 uint32 APICALL (*Release)(struct SQLite3IFace *Self);
29 void APICALL (*Expunge)(struct SQLite3IFace *Self);
30 struct Interface * APICALL (*Clone)(struct SQLite3IFace *Self);
31 LONG APICALL (*SQLite3Close)(struct SQLite3IFace *Self, sqlite3 * db);
32 LONG APICALL (*SQLite3Exec)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR sql, sqlite3_callback xCallback, APTR pArg, STRPTR * errmsg);
33 LONG APICALL (*SQLite3Changes)(struct SQLite3IFace *Self, sqlite3 * db);
34 LONG APICALL (*SQLite3TotalChanges)(struct SQLite3IFace *Self, sqlite3 * db);
35 VOID APICALL (*SQLite3Interrupt)(struct SQLite3IFace *Self, sqlite3 * db);
36 LONG APICALL (*SQLite3Complete)(struct SQLite3IFace *Self, CONST_STRPTR sql);
37 LONG APICALL (*SQLite3BusyHandler)(struct SQLite3IFace *Self, sqlite3 * db, LONG (*callback)(APTR userdata, LONG l), APTR userdata);
38 LONG APICALL (*SQLite3BusyTimeout)(struct SQLite3IFace *Self, sqlite3 * db, LONG ms);
39 LONG APICALL (*SQLite3GetTable)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR sql, STRPTR ** presult, LONG * nrow, LONG * ncolumn, STRPTR * errmsg);
40 VOID APICALL (*SQLite3FreeTable)(struct SQLite3IFace *Self, STRPTR * result);
41 VOID APICALL (*SQLite3Free)(struct SQLite3IFace *Self, STRPTR z);
42 APTR APICALL (*SQLite3Trace)(struct SQLite3IFace *Self, sqlite3 * db, VOID (*xTrace)(APTR p, CONST_STRPTR z), APTR parg);
43 VOID APICALL (*SQLite3ProgressHandler)(struct SQLite3IFace *Self, sqlite3 * db, LONG nOps, LONG (*xProgress)(APTR p), APTR pArg);
44 APTR APICALL (*SQLite3CommitHook)(struct SQLite3IFace *Self, sqlite3 * db, LONG (*xCallback)(APTR p), APTR pArg);
45 LONG APICALL (*SQLite3Open)(struct SQLite3IFace *Self, CONST_STRPTR filename, sqlite3 ** ppDb);
46 LONG APICALL (*SQLite3Errcode)(struct SQLite3IFace *Self, sqlite3 * db);
47 CONST_STRPTR APICALL (*SQLite3Errmsg)(struct SQLite3IFace *Self, sqlite3 * db);
48 LONG APICALL (*SQLite3Prepare)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zSql, LONG nBytes, sqlite3_stmt ** ppStmt, CONST_STRPTR * pzTail);
49 LONG APICALL (*SQLite3BindBlob)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i, CONST_APTR zData, LONG nData, VOID (*xDel)(APTR p));
50 LONG APICALL (*SQLite3BindInt)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i, LONG iValue);
51 LONG APICALL (*SQLite3BindNull)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i);
52 LONG APICALL (*SQLite3BindText)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i, CONST_STRPTR zData, LONG nData, VOID (*xDel)(APTR p));
53 LONG APICALL (*SQLite3BindValue)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i, CONST sqlite3_value * pVal);
54 LONG APICALL (*SQLite3BindParameterCount)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
55 CONST_STRPTR APICALL (*SQLite3BindParameterName)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i);
56 LONG APICALL (*SQLite3BindParameterIndex)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, CONST_STRPTR zName);
57 LONG APICALL (*SQLite3ClearBindings)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
58 LONG APICALL (*SQLite3ColumnCount)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
59 CONST_STRPTR APICALL (*SQLite3ColumnName)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i);
60 CONST_STRPTR APICALL (*SQLite3ColumnDecltype)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i);
61 LONG APICALL (*SQLite3Step)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
62 LONG APICALL (*SQLite3DataCount)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
63 CONST_APTR APICALL (*SQLite3ColumnBlob)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
64 LONG APICALL (*SQLite3ColumnBytes)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
65 LONG APICALL (*SQLite3ColumnInt)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
66 CONST_STRPTR APICALL (*SQLite3ColumnText)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
67 LONG APICALL (*SQLite3ColumnType)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
68 LONG APICALL (*SQLite3Finalize)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
69 LONG APICALL (*SQLite3Reset)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
70 LONG APICALL (*SQLite3AggregateCount)(struct SQLite3IFace *Self, sqlite3_context * pCtx);
71 CONST_APTR APICALL (*SQLite3ValueBlob)(struct SQLite3IFace *Self, sqlite3_value * pVal);
72 LONG APICALL (*SQLite3ValueBytes)(struct SQLite3IFace *Self, sqlite3_value * pVal);
73 LONG APICALL (*SQLite3ValueInt)(struct SQLite3IFace *Self, sqlite3_value * pVal);
74 CONST_STRPTR APICALL (*SQLite3ValueText)(struct SQLite3IFace *Self, sqlite3_value * pVal);
75 LONG APICALL (*SQLite3ValueType)(struct SQLite3IFace *Self, sqlite3_value * pVal);
76 APTR APICALL (*SQLite3Aggregate_context)(struct SQLite3IFace *Self, sqlite3_context * pCtx, LONG nBytes);
77 APTR APICALL (*SQLite3UserData)(struct SQLite3IFace *Self, sqlite3_context * pCtx);
78 APTR APICALL (*SQLite3GetAuxdata)(struct SQLite3IFace *Self, sqlite3_context * pCtx, LONG iArg);
79 VOID APICALL (*SQLite3SetAuxdata)(struct SQLite3IFace *Self, sqlite3_context * pCtx, LONG iARg, APTR pAux, VOID (*xDelete)(APTR p));
80 VOID APICALL (*SQLite3ResultBlob)(struct SQLite3IFace *Self, sqlite3_context * pCtx, CONST_APTR z, LONG n, VOID (*xDelete)(APTR p));
81 VOID APICALL (*SQLite3ResultError)(struct SQLite3IFace *Self, sqlite3_context * pCtx, CONST_STRPTR z, LONG n);
82 VOID APICALL (*SQLite3ResultInt)(struct SQLite3IFace *Self, sqlite3_context * pCtx, LONG iVal);
83 VOID APICALL (*SQLite3ResultNull)(struct SQLite3IFace *Self, sqlite3_context * pCtx);
84 VOID APICALL (*SQLite3ResultText)(struct SQLite3IFace *Self, sqlite3_context * pCtx, CONST_STRPTR z, LONG n, VOID (*xDelete)(APTR p));
85 VOID APICALL (*SQLite3ResultValue)(struct SQLite3IFace *Self, sqlite3_context * pCtx, sqlite3_value * pValue);
86 LONG APICALL (*SQLite3CreateCollation)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zName, LONG eTextRep, APTR pCtx, LONG (*xCompare)(APTR p, LONG i, CONST_APTR p2, LONG j, CONST_APTR p3));
87 LONG APICALL (*SQLite3CollationNeeded)(struct SQLite3IFace *Self, sqlite3 * db, APTR pCollNeededArg, VOID (*xCollNeeded)(APTR p, sqlite3 *dv, LONG eTextRep, CONST_STRPTR z));
88 LONG APICALL (*SQLite3Sleep)(struct SQLite3IFace *Self, LONG ms);
89 LONG APICALL (*SQLite3Expired)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
90 LONG APICALL (*SQLite3TransferBindings)(struct SQLite3IFace *Self, sqlite3_stmt * pFromStmt, sqlite3_stmt * pToStmt);
91 LONG APICALL (*SQLite3GlobalRecover)(struct SQLite3IFace *Self);
92 LONG APICALL (*SQLite3GetAutocommit)(struct SQLite3IFace *Self, sqlite3 * db);
93 sqlite3 * APICALL (*SQLite3DbHandle)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt);
94 APTR APICALL (*SQLite3RollbackHook)(struct SQLite3IFace *Self, sqlite3 * db, VOID (*callback)(APTR pUserData), APTR pUserData);
95 LONG APICALL (*SQLite3EnableSharedCache)(struct SQLite3IFace *Self, BOOL enable);
96 LONG APICALL (*SQLite3ReleaseMemory)(struct SQLite3IFace *Self, LONG bytesCount);
97 VOID APICALL (*SQLite3SoftHeapLimit)(struct SQLite3IFace *Self, LONG maxBytes);
98 VOID APICALL (*SQLite3ThreadCleanup)(struct SQLite3IFace *Self);
99 LONG APICALL (*SQLite3PrepareV2)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zSql, LONG nBytes, sqlite3_stmt ** ppStmt, CONST_STRPTR * pzTail);
100 LONG APICALL (*SQLite3CreateFunction)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zFunctionName, LONG nArg, LONG eTextRep, APTR userdata, VOID (*xFunc)(sqlite3_context *pCtx, LONG i, sqlite3_value **pVal), VOID (*xStep)(sqlite3_context *pCtx, LONG i, sqlite3_value **pVal), VOID (*xFinal)(sqlite3_context *pCtx));
101 LONG APICALL (*SQLite3CreateModule)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zName, CONST sqlite3_module * methods, APTR clientData);
102 LONG APICALL (*SQLite3DeclareVtab)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zCreateTable);
103 LONG APICALL (*SQLite3OverloadFunction)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zFuncName, LONG nArg);
104 LONG APICALL (*SQLite3BlobOpen)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zDb, CONST_STRPTR zTable, CONST_STRPTR zColumn, LONG iRow, LONG flags, sqlite3_blob ** ppBlob);
105 LONG APICALL (*SQLite3BlobClose)(struct SQLite3IFace *Self, sqlite3_blob * blob);
106 LONG APICALL (*SQLite3BlobBytes)(struct SQLite3IFace *Self, sqlite3_blob * blob);
107 LONG APICALL (*SQLite3BlobRead)(struct SQLite3IFace *Self, sqlite3_blob * blob, APTR z, LONG n, LONG iOffset);
108 LONG APICALL (*SQLite3BlobWrite)(struct SQLite3IFace *Self, sqlite3_blob * blob, CONST_APTR z, LONG n, LONG iOffset);
109 LONG APICALL (*SQLite3ExtendedResultCodes)(struct SQLite3IFace *Self, sqlite3 * db, LONG onoff);
110 LONG APICALL (*SQLite3BindZeroBlob)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG i, LONG n);
111 CONST_STRPTR APICALL (*SQLite3ColumnDatabaseName)(struct SQLite3IFace *Self, sqlite3_stmt * stmt, LONG n);
112 CONST_STRPTR APICALL (*SQLite3ColumnTableName)(struct SQLite3IFace *Self, sqlite3_stmt * stmt, LONG n);
113 CONST_STRPTR APICALL (*SQLite3ColumnOriginName)(struct SQLite3IFace *Self, sqlite3_stmt * stmt, LONG n);
114 sqlite3_value * APICALL (*SQLite3ColumnValue)(struct SQLite3IFace *Self, sqlite3_stmt * pStmt, LONG iCol);
115 LONG APICALL (*SQLite3CreateCollationV2)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zName, LONG eTextRep, APTR pCtx, LONG (*xCompare)(APTR p, LONG i, CONST_APTR p2, LONG j, CONST_APTR p3), VOID (*xDestroy)(APTR));
116 CONST_STRPTR APICALL (*SQLite3LibVersion)(struct SQLite3IFace *Self);
117 LONG APICALL (*SQLite3LibversionNumber)(struct SQLite3IFace *Self);
118 VOID APICALL (*SQLite3ResultErrorToobig)(struct SQLite3IFace *Self, sqlite3_context * pCtx);
119 VOID APICALL (*SQLite3ResultZeroBlob)(struct SQLite3IFace *Self, sqlite3_context * pCtx, LONG n);
120 LONG APICALL (*SQLite3ValueNumericType)(struct SQLite3IFace *Self, sqlite3_value * pVal);
121 LONG APICALL (*SQLite3ConfigV)(struct SQLite3IFace *Self, LONG op, APTR ap);
122 LONG APICALL (*SQLite3Config)(struct SQLite3IFace *Self, LONG op, ...);
123 LONG APICALL (*SQLlite3DbConfigV)(struct SQLite3IFace *Self, sqlite3 * db, LONG op, APTR ap);
124 LONG APICALL (*SQLlite3DbConfig)(struct SQLite3IFace *Self, sqlite3 * db, LONG op, ...);
125 sqlite3_vfs * APICALL (*SQLite3VfsFind)(struct SQLite3IFace *Self, CONST_STRPTR zVfsName);
126 LONG APICALL (*SQLite3VfsRegister)(struct SQLite3IFace *Self, sqlite3_vfs * vfs, LONG makeDflt);
127 LONG APICALL (*SQLite3VfsUnregister)(struct SQLite3IFace *Self, sqlite3_vfs * vfs);
128 LONG APICALL (*SQLite3FileControl)(struct SQLite3IFace *Self, sqlite3 * db, CONST_STRPTR zDbName, LONG op, void * arg);
129 LONG APICALL (*SQLite3Status)(struct SQLite3IFace *Self, LONG op, LONG * pCurrent, LONG * pHighwater, LONG resetFlag);
130 LONG APICALL (*SQLite3DbStatus)(struct SQLite3IFace *Self, sqlite3 * db, LONG op, LONG * pCur, LONG * pHiwtr, LONG resetFlg);
133 #endif /* SQLITE3_INTERFACE_DEF_H */