X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/d1694464b875e336ac335741596b15361929f630..6c81eef9ce2587d03f6e180963adff14b96b0337:/server/trackdb-int.h diff --git a/server/trackdb-int.h b/server/trackdb-int.h index 81cd261..2b12c81 100644 --- a/server/trackdb-int.h +++ b/server/trackdb-int.h @@ -1,6 +1,6 @@ /* * 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 @@ -26,6 +26,7 @@ extern DB_ENV *trackdb_env; 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 */ @@ -87,6 +88,7 @@ int trackdb_scan(const char *root, * 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;