| 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 |
225 |
| 226 GHashTable *plugin_data; /**< Plugin-specific data. */ |
226 GHashTable *data; /**< Plugin-specific data. */ |
| 227 }; |
227 }; |
| 228 |
228 |
| 229 typedef void (*gaim_conv_placement_fnc)(struct gaim_conversation *); |
229 typedef void (*gaim_conv_placement_fnc)(struct gaim_conversation *); |
| 230 |
230 |
| 231 /**************************************************************************/ |
231 /**************************************************************************/ |
| 653 const struct gaim_conversation *conv); |
653 const struct gaim_conversation *conv); |
| 654 |
654 |
| 655 #define GAIM_CHAT(c) (gaim_conversation_get_chat_data(c)) |
655 #define GAIM_CHAT(c) (gaim_conversation_get_chat_data(c)) |
| 656 |
656 |
| 657 /** |
657 /** |
| 658 * Sets a conversation's plugin-specific data. |
658 * Sets extra data for a conversation. |
| 659 * |
659 * |
| 660 * To minimize key conflicts, the key should be in the form of |
|
| 661 * @c pluginname/keyname. |
|
| 662 * |
|
| 663 * @param conv The conversation. |
660 * @param conv The conversation. |
| 664 * @param key The unique key. |
661 * @param key The unique key. |
| 665 * @param data The data to assign. |
662 * @param data The data to assign. |
| 666 */ |
663 */ |
| 667 void gaim_conversation_set_plugin_data(struct gaim_conversation *conv, |
664 void gaim_conversation_set_data(struct gaim_conversation *conv, |
| 668 const char *key, gpointer data); |
665 const char *key, gpointer data); |
| 669 |
666 |
| 670 /** |
667 /** |
| 671 * Returns a conversation's plugin-specific data. |
668 * Returns extra data in a conversation. |
| 672 * |
669 * |
| 673 * @param conv The conversation. |
670 * @param conv The conversation. |
| 674 * @param key The unqiue key. |
671 * @param key The unqiue key. |
| 675 * |
672 * |
| 676 * @return The data associated with the key. |
673 * @return The data associated with the key. |
| 677 */ |
674 */ |
| 678 gpointer gaim_conversation_get_plugin_data(struct gaim_conversation *conv, |
675 gpointer gaim_conversation_get_data(struct gaim_conversation *conv, |
| 679 const char *key); |
676 const char *key); |
| 680 |
677 |
| 681 /** |
678 /** |
| 682 * Returns a list of all conversations. |
679 * Returns a list of all conversations. |
| 683 * |
680 * |
| 684 * This list includes both IMs and chats. |
681 * This list includes both IMs and chats. |