Lines Matching refs:tcadb
37 TCADB *tcadb; member
40 DBA_OPEN_FUNC(tcadb) in DBA_OPEN_FUNC() argument
43 TCADB *tcadb = tcadbnew(); in DBA_OPEN_FUNC() local
45 if (tcadb) { in DBA_OPEN_FUNC()
60 tcadbdel(tcadb); in DBA_OPEN_FUNC()
64 if (!tcadbopen(tcadb, path_string)) { in DBA_OPEN_FUNC()
66 tcadbdel(tcadb); in DBA_OPEN_FUNC()
74 ((dba_tcadb_data *) info->dbf)->tcadb = tcadb; in DBA_OPEN_FUNC()
81 DBA_CLOSE_FUNC(tcadb) in DBA_CLOSE_FUNC() argument
85 tcadbclose(dba->tcadb); in DBA_CLOSE_FUNC()
89 DBA_FETCH_FUNC(tcadb) in DBA_FETCH_FUNC() argument
95 value = tcadbget(dba->tcadb, key, keylen, &value_size); in DBA_FETCH_FUNC()
107 DBA_UPDATE_FUNC(tcadb) in DBA_UPDATE_FUNC() argument
114 if (tcadbvsiz(dba->tcadb, key, keylen) > -1) { in DBA_UPDATE_FUNC()
119 result = tcadbput(dba->tcadb, key, keylen, val, vallen); in DBA_UPDATE_FUNC()
129 DBA_EXISTS_FUNC(tcadb) in DBA_EXISTS_FUNC() argument
135 value = tcadbget(dba->tcadb, key, keylen, &value_len); in DBA_EXISTS_FUNC()
144 DBA_DELETE_FUNC(tcadb) in DBA_DELETE_FUNC() argument
148 return tcadbout(dba->tcadb, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
151 DBA_FIRSTKEY_FUNC(tcadb) in DBA_FIRSTKEY_FUNC() argument
157 tcadbiterinit(dba->tcadb); in DBA_FIRSTKEY_FUNC()
159 value = tcadbiternext(dba->tcadb, &value_size); in DBA_FIRSTKEY_FUNC()
171 DBA_NEXTKEY_FUNC(tcadb) in DBA_NEXTKEY_FUNC() argument
177 value = tcadbiternext(dba->tcadb, &value_size); in DBA_NEXTKEY_FUNC()
189 DBA_OPTIMIZE_FUNC(tcadb) in DBA_OPTIMIZE_FUNC() argument
194 return tcadboptimize(dba->tcadb, NULL) ? SUCCESS : FAILURE; in DBA_OPTIMIZE_FUNC()
200 DBA_SYNC_FUNC(tcadb) in DBA_SYNC_FUNC() argument
204 return tcadbsync(dba->tcadb) ? SUCCESS : FAILURE; in DBA_SYNC_FUNC()
207 DBA_INFO_FUNC(tcadb) in DBA_INFO_FUNC() argument