X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky-private.h;h=9ca0658f69134e5f24983e9c3d2be84d9914bc12;hb=6443fe537efa35cdad192b2d35ea0398cce56c17;hp=7f5e64615ae1e986331970332f3d03846253261c;hpb=c513d64c6a1f7c2ff2bad97db69e2f40ef642167;p=bluesky.git diff --git a/bluesky/bluesky-private.h b/bluesky/bluesky-private.h index 7f5e646..9ca0658 100644 --- a/bluesky/bluesky-private.h +++ b/bluesky/bluesky-private.h @@ -51,6 +51,8 @@ typedef struct { GMutex *lock; GCond *completion_cond; /* Used to wait for operation to complete. */ + gint refcount; /* Reference count for destruction. */ + BlueSkyAsyncStatus status; BlueSkyStoreOp op; @@ -82,8 +84,12 @@ void bluesky_store_register(const BlueSkyStoreImplementation *impl, const gchar *name); BlueSkyStoreAsync *bluesky_store_async_new(BlueSkyStore *store); +void bluesky_store_async_ref(BlueSkyStoreAsync *async); +void bluesky_store_async_unref(BlueSkyStoreAsync *async); void bluesky_store_async_wait(BlueSkyStoreAsync *async); void bluesky_store_async_mark_complete(BlueSkyStoreAsync *async); +void bluesky_store_async_submit(BlueSkyStoreAsync *async); +void bluesky_store_sync(BlueSkyStore *store); #ifdef __cplusplus }