chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync with disorder.dev
[disorder]
/
server
/
trackdb-int.h
diff --git
a/server/trackdb-int.h
b/server/trackdb-int.h
index 81cd261332fb3365bb46466095d6d6a7ae45d573..f728e0ae887b13e3292e490215a10364c9b585d4 100644
(file)
--- a/
server/trackdb-int.h
+++ b/
server/trackdb-int.h
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2005 Richard Kettlewell
+ * Copyright (C) 2005
, 2007
Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-26,6
+26,7
@@
extern DB_ENV *trackdb_env;
extern DB *trackdb_tracksdb;
extern DB *trackdb_prefsdb;
extern DB *trackdb_searchdb;
extern DB *trackdb_tracksdb;
extern DB *trackdb_prefsdb;
extern DB *trackdb_searchdb;
+extern DB *trackdb_noticeddb;
DBC *trackdb_opencursor(DB *db, DB_TXN *tid);
/* open a transaction */
DBC *trackdb_opencursor(DB *db, DB_TXN *tid);
/* open a transaction */
@@
-87,6
+88,7
@@
int trackdb_scan(const char *root,
* EINTR to cancel the scan. */
/* fill KEY in with S, returns KEY */
* EINTR to cancel the scan. */
/* fill KEY in with S, returns KEY */
+
static inline DBT *make_key(DBT *key, const char *s) {
memset(key, 0, sizeof *key);
key->data = (void *)s;
static inline DBT *make_key(DBT *key, const char *s) {
memset(key, 0, sizeof *key);
key->data = (void *)s;
@@
-111,6
+113,13
@@
static inline DBT *encode_data(DBT *data, const struct kvp *k) {
return data;
}
return data;
}
+int trackdb_set_global_tid(const char *name,
+ const char *value,
+ DB_TXN *tid);
+int trackdb_get_global_tid(const char *name,
+ DB_TXN *tid,
+ const char **rp);
+
#endif /* TRACKDB_INT_H */
/*
#endif /* TRACKDB_INT_H */
/*