Mercurial > pidgin
diff libpurple/protocols/msn/object.h @ 30318:76049fde7ad2
Add support for Url/Url1 in MSN objects, which are used for buddy
icons when you're on the website.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 31 Jul 2010 23:39:40 +0000 |
parents | 462cb893521b |
children | 23be655cc688 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/object.h Sat Jul 31 20:47:31 2010 +0000 +++ b/libpurple/protocols/msn/object.h Sat Jul 31 23:39:40 2010 +0000 @@ -50,6 +50,8 @@ char *friendly; char *sha1d; char *sha1c; + char *url; + char *url1; } MsnObject; /** @@ -155,6 +157,20 @@ void msn_object_set_image(MsnObject *obj, PurpleStoredImage *img); /** + * Sets the url field in a MsnObject. + * + * @param url The url value. + */ +void msn_object_set_url(MsnObject *obj, const char *url); + +/** + * Sets the url1 field in a MsnObject. + * + * @param url1 The url1 value. + */ +void msn_object_set_url1(MsnObject *obj, const char *url); + +/** * Returns a MsnObject's creator value. * * @param obj The object. @@ -235,6 +251,24 @@ */ PurpleStoredImage *msn_object_get_image(const MsnObject *obj); +/** + * Returns a MsnObject's url value. + * + * @param obj The object. + * + * @return The url value. + */ +const char *msn_object_get_url(const MsnObject *obj); + +/** + * Returns a MsnObject's url1 value. + * + * @param obj The object. + * + * @return The url1 value. + */ +const char *msn_object_get_url1(const MsnObject *obj); + void msn_object_set_local(MsnObject *obj); #endif /* MSN_OBJECT_H */