summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h
blob: 46aa4ab7c5ecfcd2e40ef59e0b37f81fc87c00f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <sqlite3.h>

struct lsqlite3_private {
	char **options;
	const char *basedn;
        sqlite3 * sqlite;
        int lock_count;
	int last_rc;
        struct {
                sqlite3_stmt *begin;
                sqlite3_stmt *commit;
                sqlite3_stmt *rollback;
                sqlite3_stmt *newDN;
                sqlite3_stmt *renameDN;
                sqlite3_stmt *deleteDN;
                sqlite3_stmt *newObjectClass;
                sqlite3_stmt *assignObjectClass;
                sqlite3_stmt *newAttributeUseDefaults;
                sqlite3_stmt *newAttribute;
                sqlite3_stmt *addAttrValuePair;
                sqlite3_stmt *replaceAttrValuePairs;
                sqlite3_stmt *deleteAttrValuePairs;
                sqlite3_stmt *insertSubclass;
        } queries;
};

void
lsqlite3_base160(unsigned long val,
                 unsigned char result[5]);

char *
lsqlite3_base160Next(char base160[]);