X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..515cd2bb4f4ec548f464edeb5be7564fa5b0139f:/server/trackdb-int.h diff --git a/server/trackdb-int.h b/server/trackdb-int.h index 7e14fb7..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 */ @@ -82,11 +83,12 @@ int trackdb_scan(const char *root, DB_TXN *tid), void *u, DB_TXN *tid); -/* Call CALLBACK for each non-alias track below ROOT. Return 0 or - * DB_LOCK_DEADLOCK. CALLBACK should return 0 on success or EINTR to cancel - * the scan. */ +/* Call CALLBACK for each non-alias track below ROOT (or all tracks if ROOT is + * 0). Return 0 or DB_LOCK_DEADLOCK. CALLBACK should return 0 on success or + * 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; @@ -121,4 +123,3 @@ fill-column:79 indent-tabs-mode:nil End: */ -/* arch-tag:BJ2D2N4ftvK2bQRnaLuFIg */