21 #ifndef _MW_SRVC_AWARE_H 22 #define _MW_SRVC_AWARE_H 46 #define mwService_AWARE 0x00000011 144 guint32 key,
struct mwOpaque *opaque);
148 guint32 key, gboolean val);
152 guint32 key, guint32 val);
156 guint32 key,
const char *str);
243 gpointer data, GDestroyNotify cleanup);
void(* clear)(struct mwServiceAware *srvc)
Definition: mw_srvc_aware.h:96
struct mwAwareIdBlock id
Definition: mw_common.h:206
has speakers, gboolean
Definition: mw_srvc_aware.h:83
gpointer mwAwareList_getClientData(struct mwAwareList *list)
int mwAwareList_removeAllAware(struct mwAwareList *list)
Definition: mw_common.h:205
int mwServiceAware_unsetAttribute(struct mwServiceAware *srvc, guint32 key)
Unset an attribute for this session.
has a microphone, gboolean
Definition: mw_srvc_aware.h:82
mwAwareSnapshotHandler on_aware
handle aware updates
Definition: mw_srvc_aware.h:127
Key/Opaque pair indicating an identity's attribute.
Definition: mw_srvc_aware.h:68
void mwAwareList_setClientData(struct mwAwareList *list, gpointer data, GDestroyNotify cleanup)
supports file transfers, gboolean
Definition: mw_srvc_aware.h:85
A/V prefs specified, gboolean.
Definition: mw_srvc_aware.h:81
void(* mwAwareSnapshotHandler)(struct mwAwareList *list, struct mwAwareSnapshot *id)
Appropriate function type for the on-aware signal.
Definition: mw_srvc_aware.h:107
Definition: mw_srvc_aware.h:125
gboolean mwAwareAttribute_asBoolean(const struct mwAwareAttribute *attrib)
void(* mwAwareAttributeHandler)(struct mwServiceAware *srvc, struct mwAwareAttribute *attrib)
Definition: mw_srvc_aware.h:90
struct mwServiceAware * mwServiceAware_new(struct mwSession *session, struct mwAwareHandler *handler)
void mwServiceAware_setStatus(struct mwServiceAware *srvc, struct mwAwareIdBlock *user, struct mwUserStatus *stat)
trigger a got_aware event constructed from the passed user and status information.
int mwServiceAware_setAttributeString(struct mwServiceAware *srvc, guint32 key, const char *str)
int mwAwareList_unwatchAttributes(struct mwAwareList *list, guint32 key,...)
stop watching a NULL terminated list of keys
guint32 mwAwareAttribute_asInteger(const struct mwAwareAttribute *attrib)
struct mwAwareListHandler * mwAwareList_getHandler(struct mwAwareList *list)
Represents a Sametime client session.
int mwAwareList_removeAware(struct mwAwareList *list, GList *id_list)
Remove a collection of user IDs from an aware list.
Definition: mw_srvc_aware.h:94
const char * mwServiceAware_getText(struct mwServiceAware *srvc, struct mwAwareIdBlock *user)
look up the status description for a user
Common data types and functions for handling those types.
int mwAwareList_unwatchAttributeArray(struct mwAwareList *list, guint32 *keys)
stop watching a NULL terminated array of keys
guint32 * mwAwareList_getWatchedAttributes(struct mwAwareList *list)
guint32 mwAwareAttribute_getKey(const struct mwAwareAttribute *attrib)
int mwAwareList_watchAttributeArray(struct mwAwareList *list, guint32 *keys)
watch an NULL terminated array of keys
const struct mwAwareAttribute * mwServiceAware_getAttribute(struct mwServiceAware *srvc, struct mwAwareIdBlock *user, guint32 key)
look up the last known copy of an attribute for a user by the attribute's key
Instance of an Aware Service.
int mwServiceAware_setAttributeInteger(struct mwServiceAware *srvc, guint32 key, guint32 val)
mwAwareAttributeKeys
Predefined keys appropriate for a mwAwareAttribute.
Definition: mw_srvc_aware.h:80
Definition: mw_common.h:165
int mwAwareList_unwatchAllAttributes(struct mwAwareList *list)
remove all watched attributes
void mwAwareList_removeClientData(struct mwAwareList *list)
A length of binary data, not null-terminated.
Definition: mw_common.h:79
struct mwAwareList * mwAwareList_new(struct mwServiceAware *srvc, struct mwAwareListHandler *handler)
Allocate and initialize an aware list.
void(* mwAwareIdAttributeHandler)(struct mwAwareList *list, struct mwAwareIdBlock *id, struct mwAwareAttribute *attrib)
Appropriate function type for the on-option signal.
Definition: mw_srvc_aware.h:120
Instance of an Aware List.
Definition: mw_srvc_aware.h:56
mwAwareIdAttributeHandler on_attrib
handle attribute updates
Definition: mw_srvc_aware.h:130
mwAwareAttributeHandler on_attrib
Definition: mw_srvc_aware.h:95
int mwServiceAware_setAttributeBoolean(struct mwServiceAware *srvc, guint32 key, gboolean val)
void mwAwareList_free(struct mwAwareList *list)
Clean and free an aware list.
Definition: mw_common.h:196
int mwServiceAware_setAttribute(struct mwServiceAware *srvc, guint32 key, struct mwOpaque *opaque)
Set an attribute value for this session.
char * mwAwareAttribute_asString(const struct mwAwareAttribute *attrib)
Copy of attribute string, must be g_free'd.
int mwAwareList_watchAttributes(struct mwAwareList *list, guint32 key,...)
watch a NULL terminated list of keys
has a video camera, gboolean
Definition: mw_srvc_aware.h:84
int mwAwareList_addAware(struct mwAwareList *list, GList *id_list)
Add a collection of user IDs to an aware list.
const struct mwOpaque * mwAwareAttribute_asOpaque(const struct mwAwareAttribute *attrib)
Direct access to an attribute's underlying opaque.