Overview
| SHA1 Hash: | cbd8fddf3b4cde840279502e1e9b151bb4bd42f0 |
|---|---|
| Date: | 2012-10-29 14:27:26 |
| User: | drh |
| Comment: | Make the multiplexor and the IntArray extensions callable from C++. |
Tags And Properties
- branch=trunk inherited from [704b122e53]
- sym-trunk inherited from [704b122e53]
Changes
Changes to src/test_intarray.h
72 ** virtual table is dropped. Since the virtual tables are created in the 72 ** virtual table is dropped. Since the virtual tables are created in the 73 ** TEMP database, they are automatically dropped when the database connection 73 ** TEMP database, they are automatically dropped when the database connection 74 ** closes so the application does not normally need to take any special 74 ** closes so the application does not normally need to take any special 75 ** action to free the intarray objects. 75 ** action to free the intarray objects. 76 */ 76 */ 77 #include "sqlite3.h" 77 #include "sqlite3.h" 78 78 > 79 /* > 80 ** Make sure we can call this stuff from C++. > 81 */ > 82 #ifdef __cplusplus > 83 extern "C" { > 84 #endif > 85 79 /* 86 /* 80 ** An sqlite3_intarray is an abstract type to stores an instance of 87 ** An sqlite3_intarray is an abstract type to stores an instance of 81 ** an integer array. 88 ** an integer array. 82 */ 89 */ 83 typedef struct sqlite3_intarray sqlite3_intarray; 90 typedef struct sqlite3_intarray sqlite3_intarray; 84 91 85 /* 92 /* ................................................................................................................................................................................ 108 */ 115 */ 109 int sqlite3_intarray_bind( 116 int sqlite3_intarray_bind( 110 sqlite3_intarray *pIntArray, /* The intarray object to bind to */ 117 sqlite3_intarray *pIntArray, /* The intarray object to bind to */ 111 int nElements, /* Number of elements in the intarray */ 118 int nElements, /* Number of elements in the intarray */ 112 sqlite3_int64 *aElements, /* Content of the intarray */ 119 sqlite3_int64 *aElements, /* Content of the intarray */ 113 void (*xFree)(void*) /* How to dispose of the intarray when done */ 120 void (*xFree)(void*) /* How to dispose of the intarray when done */ 114 ); 121 ); > 122 > 123 #ifdef __cplusplus > 124 } /* End of the 'extern "C"' block */ > 125 #endif
Changes to src/test_multiplex.h
42 ** This file control is used to set the maximum number of chunks 42 ** This file control is used to set the maximum number of chunks 43 ** allowed to be used for a mutliplex file set. 43 ** allowed to be used for a mutliplex file set. 44 */ 44 */ 45 #define MULTIPLEX_CTRL_ENABLE 214014 45 #define MULTIPLEX_CTRL_ENABLE 214014 46 #define MULTIPLEX_CTRL_SET_CHUNK_SIZE 214015 46 #define MULTIPLEX_CTRL_SET_CHUNK_SIZE 214015 47 #define MULTIPLEX_CTRL_SET_MAX_CHUNKS 214016 47 #define MULTIPLEX_CTRL_SET_MAX_CHUNKS 214016 48 48 > 49 #ifdef __cplusplus > 50 extern "C" { > 51 #endif > 52 49 /* 53 /* 50 ** CAPI: Initialize the multiplex VFS shim - sqlite3_multiplex_initialize() 54 ** CAPI: Initialize the multiplex VFS shim - sqlite3_multiplex_initialize() 51 ** 55 ** 52 ** Use the VFS named zOrigVfsName as the VFS that does the actual work. 56 ** Use the VFS named zOrigVfsName as the VFS that does the actual work. 53 ** Use the default if zOrigVfsName==NULL. 57 ** Use the default if zOrigVfsName==NULL. 54 ** 58 ** 55 ** The multiplex VFS shim is named "multiplex". It will become the default 59 ** The multiplex VFS shim is named "multiplex". It will become the default ................................................................................................................................................................................ 83 ** All SQLite database connections must be closed before calling this 87 ** All SQLite database connections must be closed before calling this 84 ** routine. 88 ** routine. 85 ** 89 ** 86 ** THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once while 90 ** THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once while 87 ** shutting down in order to free all remaining multiplex groups. 91 ** shutting down in order to free all remaining multiplex groups. 88 */ 92 */ 89 extern int sqlite3_multiplex_shutdown(void); 93 extern int sqlite3_multiplex_shutdown(void); 90 94 > 95 #ifdef __cplusplus > 96 } /* End of the 'extern "C"' block */ 91 #endif 97 #endif > 98 > 99 #endif