Lines Matching defs:s3
881 sqlite3_instance_t *s3 = NULL;
899 s3 = calloc(1, sizeof(sqlite3_instance_t));
900 if (s3 == NULL)
902 memset(s3, 0, sizeof(sqlite3_instance_t));
907 b9_add_helper(s3, helper_name, va_arg(ap, void*));
912 s3->log(ISC_LOG_DEBUG(1), "SQLite3 module: running multithreaded");
915 s3->log(ISC_LOG_DEBUG(1), "SQLite3 module: running single threaded");
920 s3->log(ISC_LOG_ERROR,
928 s3->log(ISC_LOG_ERROR,
935 s3->dbname = get_parameter_value(argv[1], "dbname=");
936 if (s3->dbname == NULL) {
937 s3->log(ISC_LOG_ERROR,
951 s3->log(ISC_LOG_ERROR,
962 s3->db = calloc(1, sizeof(db_list_t));
963 if (s3->db == NULL) {
969 DLZ_LIST_INIT(*(s3->db));
981 &dbi, s3->log);
986 &dbi, s3->log);
991 &dbi, s3->log);
996 &dbi, s3->log);
1001 &dbi, s3->log);
1009 s3->log(ISC_LOG_ERROR,
1019 s3->log(ISC_LOG_ERROR,
1026 ret = sqlite3_open(s3->dbname, &dbc);
1028 s3->log(ISC_LOG_ERROR,
1030 "open '%s'.", s3->dbname);
1038 DLZ_LIST_APPEND(*(s3->db), dbi, link);
1044 s3->db = dbi;
1055 *dbdata = s3;
1059 dlz_destroy(s3);