Mercurial > pidgin.yaz
comparison src/conversation.h @ 4876:9567b13d0e98
[gaim-migrate @ 5206]
Added gaim_conversation_(set|get)_plugin_data(), which sets and gets
plugin-specific data. It just wraps a hashtable, and it will be replaced
sometime down the road if we move to an object framework. However, the
function will still exist as a wrapper around g_object_(set|get)_data().
I've said too much.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 23 Mar 2003 21:56:18 +0000 |
parents | 3196d9044a45 |
children | 249382064693 |
comparison
equal
deleted
inserted
replaced
4875:26837f462a66 | 4876:9567b13d0e98 |
---|---|
220 | 220 |
221 } u; | 221 } u; |
222 | 222 |
223 struct gaim_conversation_ui_ops *ui_ops; /**< UI-specific operations. */ | 223 struct gaim_conversation_ui_ops *ui_ops; /**< UI-specific operations. */ |
224 void *ui_data; /**< UI-specific data. */ | 224 void *ui_data; /**< UI-specific data. */ |
225 | |
226 GHashTable *plugin_data; /**< Plugin-specific data. */ | |
225 }; | 227 }; |
226 | 228 |
227 typedef void (*gaim_conv_placement_fnc)(struct gaim_conversation *); | 229 typedef void (*gaim_conv_placement_fnc)(struct gaim_conversation *); |
228 | 230 |
229 /**************************************************************************/ | 231 /**************************************************************************/ |
649 */ | 651 */ |
650 struct gaim_chat *gaim_conversation_get_chat_data( | 652 struct gaim_chat *gaim_conversation_get_chat_data( |
651 const struct gaim_conversation *conv); | 653 const struct gaim_conversation *conv); |
652 | 654 |
653 #define GAIM_CHAT(c) (gaim_conversation_get_chat_data(c)) | 655 #define GAIM_CHAT(c) (gaim_conversation_get_chat_data(c)) |
656 | |
657 /** | |
658 * Sets a conversation's plugin-specific data. | |
659 * | |
660 * To minimize key conflicts, the key should be in the form of | |
661 * @c pluginname/keyname. | |
662 * | |
663 * @param conv The conversation. | |
664 * @param key The unique key. | |
665 * @param data The data to assign. | |
666 */ | |
667 void gaim_conversation_set_plugin_data(struct gaim_conversation *conv, | |
668 const char *key, gpointer data); | |
669 | |
670 /** | |
671 * Returns a conversation's plugin-specific data. | |
672 * | |
673 * @param conv The conversation. | |
674 * @param key The unqiue key. | |
675 * | |
676 * @return The data associated with the key. | |
677 */ | |
678 gpointer gaim_conversation_get_plugin_data(struct gaim_conversation *conv, | |
679 const char *key); | |
654 | 680 |
655 /** | 681 /** |
656 * Returns a list of all conversations. | 682 * Returns a list of all conversations. |
657 * | 683 * |
658 * This list includes both IMs and chats. | 684 * This list includes both IMs and chats. |