gobjectification.conversation: e1befba9: Allow setting flags of a message after c...
sadrul at pidgin.im
sadrul at pidgin.im
Sat Jul 24 23:10:48 EDT 2010
----------------------------------------------------------------------
Revision: e1befba98bfdb73b3a79ab345fa5472b2e368a3a
Parent: b11ba55bc3eb1f010888678023bc3bd3b83cfb3b
Author: sadrul at pidgin.im
Date: 07/23/10 16:34:23
Branch: im.pidgin.gobjectification.conversation
URL: http://d.pidgin.im/viewmtn/revision/info/e1befba98bfdb73b3a79ab345fa5472b2e368a3a
Changelog:
Allow setting flags of a message after creation, and destroying a message.
Changes against parent b11ba55bc3eb1f010888678023bc3bd3b83cfb3b
patched libpurple/conversation/conv-message.c
patched libpurple/conversation/conv-message.h
-------------- next part --------------
============================================================
--- libpurple/conversation/conv-message.c bdf605c33fb46ea094aa0fd205fd02377606b7a7
+++ libpurple/conversation/conv-message.c 3e04622f79afb8169dc2666c330625a39c0823f3
@@ -27,11 +27,10 @@ struct _PurpleMessage
struct _PurpleMessage
{
char *who;
+ char *alias;
char *what;
time_t when;
PurpleMessageFlags flags;
- PurpleConversation *conv;
- char *alias;
};
PurpleMessage *purple_message_new(const char *who,
@@ -82,3 +81,18 @@ purple_message_get_alias(PurpleMessage *
return msg->alias;
}
+void
+purple_message_set_flags(PurpleMessage *msg, PurpleMessageFlags flags)
+{
+ msg->flags = flags;
+}
+
+void
+purple_message_free(PurpleMessage *msg)
+{
+ g_free(msg->who);
+ g_free(msg->alias);
+ g_free(msg->what);
+ g_free(msg);
+}
+
============================================================
--- libpurple/conversation/conv-message.h 2121298f2499df7e6f0e53eeefaff7ae339ba8d6
+++ libpurple/conversation/conv-message.h 043a6d15afa5b2cfd7e41e0b019a26558a218e62
@@ -103,5 +103,9 @@ PurpleConversation * purple_message_get_
PurpleConversation * purple_message_get_conversation(PurpleMessage *msg);
+void purple_message_set_flags(PurpleMessage *msg, PurpleMessageFlags flags);
+
+void purple_message_free(PurpleMessage *msg);
+
#endif
More information about the Commits
mailing list