From 24d7c56795e253e6b6052b8d5c512bbda6c92b7f Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 17 Nov 2010 19:39:00 -0800 Subject: [PATCH] Add a lookup_last method to the multi-store backend. --- bluesky/store-multi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bluesky/store-multi.c b/bluesky/store-multi.c index 5687de7..f6009ba 100644 --- a/bluesky/store-multi.c +++ b/bluesky/store-multi.c @@ -104,6 +104,12 @@ static void multistore_submit(gpointer store, BlueSkyStoreAsync *async) } } +static char *multistore_lookup_last(gpointer store, const char *prefix) +{ + BlueSkyStore *base = (BlueSkyStore *)store; + return bluesky_store_lookup_last(base, prefix); +} + static void multistore_cleanup(gpointer store, BlueSkyStoreAsync *async) { } @@ -113,6 +119,7 @@ static BlueSkyStoreImplementation store_impl = { .destroy = multistore_destroy, .submit = multistore_submit, .cleanup = multistore_cleanup, + .lookup_last = multistore_lookup_last, }; void bluesky_store_init_multi(void) -- 2.20.1