From: Michael Vrable Date: Thu, 18 Nov 2010 03:39:00 +0000 (-0800) Subject: Add a lookup_last method to the multi-store backend. X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=commitdiff_plain;h=24d7c56795e253e6b6052b8d5c512bbda6c92b7f Add a lookup_last method to the multi-store backend. --- 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)