Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo_doodle.h @ 20674:d6bcff4b4007
Fix yahoo doodling once again. This should hopefully be less prone to break as we now use the remote party's doodle IMV key.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 28 Sep 2007 04:37:27 +0000 |
parents | 44b4e8bd759b |
children | 1cdae196aac8 |
comparison
equal
deleted
inserted
replaced
20673:70c2ecd55dd8 | 20674:d6bcff4b4007 |
---|---|
29 * Includes | 29 * Includes |
30 *****************************************************************************/ | 30 *****************************************************************************/ |
31 #include "whiteboard.h" | 31 #include "whiteboard.h" |
32 #include "cmds.h" | 32 #include "cmds.h" |
33 | 33 |
34 #define DOODLE_IMV_KEY "doodle;103" | 34 #define DOODLE_IMV_KEY "doodle;106" |
35 | 35 |
36 /****************************************************************************** | 36 /****************************************************************************** |
37 * Defines | 37 * Defines |
38 *****************************************************************************/ | 38 *****************************************************************************/ |
39 /* Doodle communication commands */ | 39 /* Doodle communication commands */ |
92 *****************************************************************************/ | 92 *****************************************************************************/ |
93 typedef struct _doodle_session | 93 typedef struct _doodle_session |
94 { | 94 { |
95 int brush_size; /* Size of drawing brush */ | 95 int brush_size; /* Size of drawing brush */ |
96 int brush_color; /* Color of drawing brush */ | 96 int brush_color; /* Color of drawing brush */ |
97 gchar *imv_key; | |
97 } doodle_session; | 98 } doodle_session; |
98 | 99 |
99 /****************************************************************************** | 100 /****************************************************************************** |
100 * API | 101 * API |
101 *****************************************************************************/ | 102 *****************************************************************************/ |
102 | 103 |
103 PurpleCmdRet yahoo_doodle_purple_cmd_start(PurpleConversation *conv, const char *cmd, char **args, | 104 PurpleCmdRet yahoo_doodle_purple_cmd_start(PurpleConversation *conv, const char *cmd, char **args, |
104 char **error, void *data); | 105 char **error, void *data); |
105 | 106 |
106 void yahoo_doodle_process(PurpleConnection *gc, const char *me, const char *from, | 107 void yahoo_doodle_process(PurpleConnection *gc, const char *me, const char *from, |
107 const char *command, const char *message); | 108 const char *command, const char *message, const char *imv_key); |
108 void yahoo_doodle_initiate(PurpleConnection *gc, const char *to); | 109 void yahoo_doodle_initiate(PurpleConnection *gc, const char *to); |
109 | 110 |
110 void yahoo_doodle_command_got_shutdown(PurpleConnection *gc, const char *from); | 111 void yahoo_doodle_command_got_shutdown(PurpleConnection *gc, const char *from); |
111 | 112 |
112 void yahoo_doodle_command_send_request(PurpleConnection *gc, const char *to); | 113 void yahoo_doodle_command_send_request(PurpleConnection *gc, const char *to, const char *imv_key); |
113 void yahoo_doodle_command_send_ready(PurpleConnection *gc, const char *to); | 114 void yahoo_doodle_command_send_ready(PurpleConnection *gc, const char *to, const char *imv_key); |
114 void yahoo_doodle_command_send_draw(PurpleConnection *gc, const char *to, const char *message); | 115 void yahoo_doodle_command_send_draw(PurpleConnection *gc, const char *to, const char *message, const char *imv_key); |
115 void yahoo_doodle_command_send_clear(PurpleConnection *gc, const char *to); | 116 void yahoo_doodle_command_send_clear(PurpleConnection *gc, const char *to, const char *imv_key); |
116 void yahoo_doodle_command_send_extra(PurpleConnection *gc, const char *to, const char *message); | 117 void yahoo_doodle_command_send_extra(PurpleConnection *gc, const char *to, const char *message, const char *imv_key); |
117 void yahoo_doodle_command_send_confirm(PurpleConnection *gc, const char *to); | 118 void yahoo_doodle_command_send_confirm(PurpleConnection *gc, const char *to, const char *imv_key); |
118 void yahoo_doodle_command_send_shutdown(PurpleConnection *gc, const char *to); | 119 void yahoo_doodle_command_send_shutdown(PurpleConnection *gc, const char *to); |
119 | 120 |
120 void yahoo_doodle_start(PurpleWhiteboard *wb); | 121 void yahoo_doodle_start(PurpleWhiteboard *wb); |
121 void yahoo_doodle_end(PurpleWhiteboard *wb); | 122 void yahoo_doodle_end(PurpleWhiteboard *wb); |
122 void yahoo_doodle_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height); | 123 void yahoo_doodle_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height); |