diff options
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r-- | camel/camel-store.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h index adffedfa31..3a7676340d 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -164,7 +164,6 @@ typedef struct { CamelException *ex); } CamelStoreClass; - /* Standard Camel function */ CamelType camel_store_get_type (void); @@ -231,6 +230,20 @@ int camel_store_folder_uri_equal (CamelStore *store, const char *uri0, const char *uri1); +typedef struct _CamelISubscribe CamelISubscribe; +struct _CamelISubscribe { + CamelInterface iface; + + gboolean (*subscribed)(CamelStore *store, const char *folder_name); + void (*subscribe)(CamelStore *store, const char *folder_name, CamelException *ex); + void (*unsubscribe)(CamelStore *store, const char *folder_name, CamelException *ex); +}; + +CamelType camel_isubscribe_get_type (void); +gboolean camel_isubscribe_subscribed(CamelStore *store, const char *name); +void camel_isubscribe_subscribe(CamelStore *store, const char *folder_name, CamelException *ex); +void camel_isubscribe_unsubscribe(CamelStore *store, const char *folder_name, CamelException *ex); + #ifdef __cplusplus } #endif /* __cplusplus */ |