21 #ifndef _MW_SRVC_STORE_H
22 #define _MW_SRVC_STORE_H
35 #define mwService_STORAGE 0x00000018
53 #define LOTUS_RESERVED_LIMIT 0x186a0
57 #define KEY_IS_LOTUS_RESERVED(key) \
58 (((guint32) key) <= (LOTUS_RESERVED_LIMIT))
94 guint32 result,
struct mwStorageUnit *item,
170 struct mwStorageUnit *item,
172 gpointer
data, GDestroyNotify data_free);
186 struct mwStorageUnit *item,
188 gpointer
data, GDestroyNotify data_free);
guint32 mwStorageUnit_getKey(struct mwStorageUnit *)
get the key for the given storage unit
void mwServiceStorage_save(struct mwServiceStorage *srvc, struct mwStorageUnit *item, mwStorageCallback cb, gpointer data, GDestroyNotify data_free)
Initiates a store call to the storage service.
Last five Active messages, separated by semicolon.
Definition: mw_srvc_store.h:82
struct mwStorageUnit * mwStorageUnit_newString(guint32 key, const char *str)
creates a storage unit with the passed key, and an encapsulated string value.
gboolean mwStorageUnit_asBoolean(struct mwStorageUnit *, gboolean val)
attempts to obtain a boolean value from a storage unit.
guint32 mwStorageUnit_asInteger(struct mwStorageUnit *, guint32 val)
attempts to obtain a guint32 value from a storage unit.
void(* mwStorageCallback)(struct mwServiceStorage *srvc, guint32 result, struct mwStorageUnit *item, gpointer data)
Appropriate function type for load and store callbacks.
Definition: mw_srvc_store.h:93
Default text for meeting invitations.
Definition: mw_srvc_store.h:73
Represents a Sametime client session.
struct mwStorageUnit * mwStorageUnit_newOpaque(guint32 key, struct mwOpaque *data)
creates a storage unit with the passed key, and a copy of data.
Default text for chat invitations.
Definition: mw_srvc_store.h:70
struct mwStorageUnit * mwStorageUnit_new(guint32 key)
create an empty storage unit
Common data types and functions for handling those types.
The buddy list, in the Sametime .dat file format.
Definition: mw_srvc_store.h:67
struct mwServiceStorage * mwServiceStorage_new(struct mwSession *)
Allocates and initializes a storage service instance for use on the passed session.
mwStorageKey
Some common keys storage keys.
Definition: mw_srvc_store.h:64
Last five Away messages, separated by semicolon.
Definition: mw_srvc_store.h:76
char * mwStorageUnit_asString(struct mwStorageUnit *)
attempts to obtain a string value from a storage unit.
struct mwOpaque * mwStorageUnit_asOpaque(struct mwStorageUnit *)
direct access to the opaque data backing the storage unit
void mwServiceStorage_load(struct mwServiceStorage *srvc, struct mwStorageUnit *item, mwStorageCallback cb, gpointer data, GDestroyNotify data_free)
Initiates a load call to the storage service.
void mwStorageUnit_free(struct mwStorageUnit *)
clears and frees a storage unit
A length of binary data, not null-terminated.
Definition: mw_common.h:79
struct mwStorageUnit * mwStorageUnit_newInteger(guint32 key, guint32 val)
Last five Busy (DND) messages, separated by semicolon.
Definition: mw_srvc_store.h:79
guchar * data
data, normally with no NULL termination
Definition: mw_common.h:81
struct mwStorageUnit * mwStorageUnit_newBoolean(guint32 key, gboolean val)
creates a storage unit with the passed key, and an encapsulated boolean value