Tue, 19 Jul 2005 10:16:32 +0000
[gaim-migrate @ 13187]
Fixed warning messages
| 6591 | 1 | #include "module.h" |
| 2 | ||
| 11123 | 3 | /**********************XS Code for Conversation.xs*********************************/ |
| 4 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv::Window PREFIX = gaim_conv_window_ | |
| 6591 | 5 | PROTOTYPES: ENABLE |
| 6 | ||
| 11123 | 7 | void |
| 8 | gaim_conversations_set_win_ui_ops(ops) | |
| 9 | Gaim::ConvWindow::UiOps ops | |
| 10 | ||
| 11 | Gaim::ConvWindow::UiOps | |
| 12 | gaim_conversations_get_win_ui_ops() | |
| 13 | ||
| 6591 | 14 | void |
| 11123 | 15 | gaim_conv_window_get_conversations(win) |
| 16 | Gaim::ConvWindow win | |
| 17 | PREINIT: | |
| 18 | GList *l; | |
| 19 | PPCODE: | |
| 20 | for (l = gaim_conv_window_get_conversations(win); l != NULL; l = l->next) { | |
| 21 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 22 | } | |
| 23 | ||
| 24 | Gaim::ConvWindow | |
| 25 | gaim_conv_window_new() | |
| 26 | ||
| 27 | void | |
| 28 | gaim_conv_window_destroy(win) | |
| 29 | Gaim::ConvWindow win | |
| 30 | ||
| 31 | void | |
| 32 | gaim_conv_window_show(win) | |
| 33 | Gaim::ConvWindow win | |
| 34 | ||
| 35 | void | |
| 36 | gaim_conv_window_hide(win) | |
| 37 | Gaim::ConvWindow win | |
| 38 | ||
| 39 | void | |
| 40 | gaim_conv_window_raise(win) | |
| 41 | Gaim::ConvWindow win | |
| 42 | ||
| 43 | size_t | |
| 44 | gaim_conv_window_get_conversation_count(win) | |
| 45 | Gaim::ConvWindow win | |
| 46 | ||
| 47 | gboolean | |
| 48 | gaim_conv_window_has_focus(win) | |
| 49 | Gaim::ConvWindow win | |
| 50 | ||
| 51 | Gaim::ConvWindow::UiOps | |
| 52 | gaim_conv_window_get_ui_ops(win) | |
| 53 | Gaim::ConvWindow win | |
| 54 | ||
| 55 | Gaim::ConvWindow | |
| 56 | get_first_window_with_type(type) | |
| 57 | Gaim::ConversationType type | |
| 58 | CODE: | |
| 59 | RETVAL = gaim_get_first_window_with_type(type); | |
| 60 | OUTPUT: | |
| 61 | RETVAL | |
| 62 | ||
| 63 | Gaim::ConvWindow | |
| 64 | get_last_window_with_type(type) | |
| 65 | Gaim::ConversationType type | |
| 66 | CODE: | |
| 67 | RETVAL = gaim_get_last_window_with_type(type); | |
| 68 | OUTPUT: | |
| 69 | RETVAL | |
| 70 | ||
| 71 | ||
| 72 | ||
| 73 | ||
| 74 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv PREFIX = gaim_conversation_ | |
| 75 | PROTOTYPES: ENABLE | |
| 76 | ||
| 77 | void * | |
| 78 | gaim_conversations_get_handle() | |
| 79 | ||
| 80 | void | |
| 81 | gaim_conversations_init() | |
| 82 | ||
| 83 | void | |
| 84 | gaim_conversations_uninit() | |
| 85 | ||
| 86 | void | |
| 87 | gaim_conv_placement_get_options() | |
| 88 | PREINIT: | |
| 89 | GList *l; | |
| 90 | PPCODE: | |
| 91 | for (l = gaim_conv_placement_get_options(); l != NULL; l = l->next) { | |
| 92 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 93 | } | |
| 94 | ||
| 95 | ||
| 96 | void | |
| 97 | get_ims() | |
| 98 | PREINIT: | |
| 99 | GList *l; | |
| 100 | PPCODE: | |
| 101 | for (l = gaim_get_ims(); l != NULL; l = l->next) { | |
| 102 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 103 | } | |
| 104 | ||
| 105 | void | |
| 106 | get_conversations() | |
| 107 | PREINIT: | |
| 108 | GList *l; | |
| 109 | PPCODE: | |
| 110 | for (l = gaim_get_conversations(); l != NULL; l = l->next) { | |
| 111 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 112 | } | |
| 113 | ||
| 114 | void | |
| 115 | get_windows() | |
| 116 | PREINIT: | |
| 117 | GList *l; | |
| 118 | PPCODE: | |
| 119 | for (l = gaim_get_windows(); l != NULL; l = l->next) { | |
| 120 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 121 | } | |
| 122 | ||
| 123 | void | |
| 124 | get_chats() | |
| 125 | PREINIT: | |
| 126 | GList *l; | |
| 127 | PPCODE: | |
| 128 | for (l = gaim_get_chats(); l != NULL; l = l->next) { | |
| 129 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 130 | } | |
| 131 | ||
| 132 | void | |
| 133 | gaim_conversation_get_send_history(conv) | |
| 6591 | 134 | Gaim::Conversation conv |
| 11123 | 135 | PREINIT: |
| 136 | GList *l; | |
| 137 | PPCODE: | |
| 138 | for (l = gaim_conversation_get_send_history(conv); l != NULL; l = l->next) { | |
| 139 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 140 | } | |
| 141 | ||
| 142 | void | |
| 143 | gaim_conversation_destroy(conv) | |
| 144 | Gaim::Conversation conv | |
| 145 | ||
| 146 | Gaim::ConversationType | |
| 147 | gaim_conversation_get_type(conv) | |
| 148 | Gaim::Conversation conv | |
| 6591 | 149 | |
| 150 | Gaim::Account | |
| 151 | gaim_conversation_get_account(conv) | |
| 152 | Gaim::Conversation conv | |
| 153 | ||
| 154 | Gaim::Connection | |
| 155 | gaim_conversation_get_gc(conv) | |
| 156 | Gaim::Conversation conv | |
| 157 | ||
| 11123 | 158 | void |
| 159 | gaim_conversation_set_title(conv, title); | |
| 6591 | 160 | Gaim::Conversation conv |
| 11123 | 161 | const char * title |
| 6591 | 162 | |
| 11123 | 163 | const char * |
| 164 | gaim_conversation_get_title(conv) | |
| 165 | Gaim::Conversation conv | |
| 166 | ||
| 167 | void | |
| 6591 | 168 | gaim_conversation_autoset_title(conv) |
| 169 | Gaim::Conversation conv | |
| 170 | ||
| 11123 | 171 | Gaim::UnseenState |
| 172 | gaim_conversation_get_unseen(conv) | |
| 173 | Gaim::Conversation conv | |
| 174 | ||
| 175 | void | |
| 176 | gaim_conversation_set_name(conv, name) | |
| 177 | Gaim::Conversation conv | |
| 178 | const char *name | |
| 179 | ||
| 6591 | 180 | const char * |
| 181 | gaim_conversation_get_name(conv) | |
| 182 | Gaim::Conversation conv | |
| 11123 | 183 | |
| 184 | void | |
| 6591 | 185 | gaim_conversation_set_logging(conv, log) |
| 186 | Gaim::Conversation conv | |
| 187 | gboolean log | |
| 188 | ||
| 11123 | 189 | gboolean |
| 6591 | 190 | gaim_conversation_is_logging(conv) |
| 191 | Gaim::Conversation conv | |
| 192 | ||
| 11123 | 193 | |
| 6591 | 194 | Gaim::ConvWindow |
| 195 | gaim_conversation_get_window(conv) | |
| 196 | Gaim::Conversation conv | |
| 197 | ||
| 198 | Gaim::Conversation::IM | |
| 199 | gaim_conversation_get_im_data(conv) | |
| 200 | Gaim::Conversation conv | |
| 201 | ||
| 202 | Gaim::Conversation::Chat | |
| 203 | gaim_conversation_get_chat_data(conv) | |
| 204 | Gaim::Conversation conv | |
| 205 | ||
| 11123 | 206 | gpointer |
| 207 | gaim_conversation_get_data(conv, key) | |
| 208 | Gaim::Conversation conv | |
| 209 | const char * key | |
| 6591 | 210 | |
| 11123 | 211 | Gaim::ConnectionFlags |
| 212 | gaim_conversation_get_features(conv) | |
| 213 | Gaim::Conversation conv | |
| 214 | ||
| 215 | void | |
| 216 | gaim_conversation_update_progress(conv, percent) | |
| 217 | Gaim::Conversation conv | |
| 218 | float percent | |
| 219 | ||
| 220 | gboolean | |
| 221 | gaim_conversation_has_focus(conv) | |
| 222 | Gaim::Conversation conv | |
| 223 | ||
| 224 | void | |
| 225 | gaim_conversation_update(conv, type) | |
| 226 | Gaim::Conversation conv | |
| 227 | Gaim::ConvUpdateType type | |
| 228 | ||
| 229 | ||
| 230 | ||
| 231 | ||
| 232 | ||
| 233 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv::IM PREFIX = gaim_conv_im_ | |
| 234 | PROTOTYPES: ENABLE | |
| 235 | ||
| 236 | Gaim::Conversation | |
| 237 | gaim_conv_im_get_conversation(im) | |
| 238 | Gaim::Conversation::IM im | |
| 239 | ||
| 240 | void | |
| 241 | gaim_conv_im_set_icon(im, icon) | |
| 242 | Gaim::Conversation::IM im | |
| 243 | Gaim::Buddy::Icon icon | |
| 244 | ||
| 245 | Gaim::Buddy::Icon | |
| 246 | gaim_conv_im_get_icon(im) | |
| 247 | Gaim::Conversation::IM im | |
| 248 | ||
| 249 | void | |
| 250 | gaim_conv_im_set_typing_state(im, state) | |
| 251 | Gaim::Conversation::IM im | |
| 252 | Gaim::TypingState state | |
| 253 | ||
| 254 | Gaim::TypingState | |
| 255 | gaim_conv_im_get_typing_state(im) | |
| 256 | Gaim::Conversation::IM im | |
| 257 | ||
| 258 | void | |
| 259 | gaim_conv_im_start_typing_timeout(im, timeout) | |
| 260 | Gaim::Conversation::IM im | |
| 261 | int timeout | |
| 262 | ||
| 263 | void | |
| 264 | gaim_conv_im_stop_typing_timeout(im) | |
| 265 | Gaim::Conversation::IM im | |
| 266 | ||
| 267 | guint | |
| 268 | gaim_conv_im_get_typing_timeout(im) | |
| 269 | Gaim::Conversation::IM im | |
| 270 | ||
| 271 | void | |
| 272 | gaim_conv_im_set_type_again(im, val) | |
| 273 | Gaim::Conversation::IM im | |
| 274 | time_t val | |
| 275 | ||
| 276 | time_t | |
| 277 | gaim_conv_im_get_type_again(im) | |
| 278 | Gaim::Conversation::IM im | |
| 279 | ||
| 280 | void | |
| 281 | gaim_conv_im_start_type_again_timeout(im) | |
| 282 | Gaim::Conversation::IM im | |
| 283 | ||
| 284 | void | |
| 285 | gaim_conv_im_stop_type_again_timeout(im) | |
| 286 | Gaim::Conversation::IM im | |
| 287 | ||
| 288 | guint | |
| 289 | gaim_conv_im_get_type_again_timeout(im) | |
| 290 | Gaim::Conversation::IM im | |
| 291 | ||
| 292 | ||
| 293 | void | |
| 294 | gaim_conv_im_update_typing(im) | |
| 295 | Gaim::Conversation::IM im | |
| 296 | ||
| 297 | ||
| 298 | void | |
| 299 | gaim_conv_im_send(im, message) | |
| 300 | Gaim::Conversation::IM im | |
| 301 | const char *message | |
| 302 | ||
| 303 | ||
| 304 | ||
| 305 | ||
| 306 | ||
| 307 | ||
| 308 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv PREFIX = gaim_conv_ | |
| 309 | PROTOTYPES: ENABLE | |
| 310 | ||
| 311 | gboolean | |
| 312 | gaim_conv_present_error(who, account, what) | |
| 313 | const char *who | |
| 314 | Gaim::Account account | |
| 315 | const char *what | |
| 316 | ||
| 317 | void | |
| 318 | gaim_conv_custom_smiley_close(conv, smile) | |
| 319 | Gaim::Conversation conv | |
| 320 | const char *smile | |
| 321 | ||
| 322 | ||
| 323 | ||
| 324 | ||
| 325 | ||
| 326 | ||
| 327 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv::Chat PREFIX = gaim_conv_chat_ | |
| 6591 | 328 | PROTOTYPES: ENABLE |
| 329 | ||
| 330 | Gaim::Conversation | |
| 11123 | 331 | gaim_conv_chat_get_conversation(chat) |
| 332 | Gaim::Conversation::Chat chat | |
| 6591 | 333 | |
| 11123 | 334 | void |
| 335 | gaim_conv_chat_set_users(chat, users) | |
| 336 | Gaim::Conversation::Chat chat | |
| 337 | SV * users | |
| 338 | PREINIT: | |
| 339 | GList *l, *t_GL; | |
| 340 | int i, t_len; | |
| 341 | PPCODE: | |
| 342 | t_GL = NULL; | |
| 343 | t_len = av_len((AV *)SvRV(users)); | |
| 6591 | 344 | |
| 11123 | 345 | for (i = 0; i < t_len; i++) { |
| 346 | STRLEN t_sl; | |
| 347 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(users), i, 0), t_sl)); | |
| 348 | } | |
| 6591 | 349 | |
| 11123 | 350 | for (l = gaim_conv_chat_set_users(chat, t_GL); l != NULL; l = l->next) { |
| 351 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 352 | } | |
| 6591 | 353 | |
| 354 | void | |
| 11123 | 355 | gaim_conv_chat_get_users(chat) |
| 356 | Gaim::Conversation::Chat chat | |
| 357 | PREINIT: | |
| 358 | GList *l; | |
| 359 | PPCODE: | |
| 360 | for (l = gaim_conv_chat_get_users(chat); l != NULL; l = l->next) { | |
| 361 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 362 | } | |
| 363 | ||
| 364 | void | |
| 365 | gaim_conv_chat_ignore(chat, name) | |
| 366 | Gaim::Conversation::Chat chat | |
| 367 | const char *name | |
| 368 | ||
| 369 | void | |
| 370 | gaim_conv_chat_unignore(chat, name) | |
| 371 | Gaim::Conversation::Chat chat | |
| 372 | const char *name | |
| 373 | ||
| 374 | void | |
| 375 | gaim_conv_chat_set_ignored(chat, ignored) | |
| 376 | Gaim::Conversation::Chat chat | |
| 377 | SV * ignored | |
| 378 | PREINIT: | |
| 379 | GList *l, *t_GL; | |
| 380 | int i, t_len; | |
| 381 | PPCODE: | |
| 382 | t_GL = NULL; | |
| 383 | t_len = av_len((AV *)SvRV(ignored)); | |
| 384 | ||
| 385 | for (i = 0; i < t_len; i++) { | |
| 386 | STRLEN t_sl; | |
| 387 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(ignored), i, 0), t_sl)); | |
| 388 | } | |
| 389 | ||
| 390 | for (l = gaim_conv_chat_set_ignored(chat, t_GL); l != NULL; l = l->next) { | |
| 391 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 392 | } | |
| 393 | ||
| 394 | void | |
| 395 | gaim_conv_chat_get_ignored(chat) | |
| 396 | Gaim::Conversation::Chat chat | |
| 6591 | 397 | PREINIT: |
| 398 | GList *l; | |
| 399 | PPCODE: | |
| 11123 | 400 | for (l = gaim_conv_chat_get_ignored(chat); l != NULL; l = l->next) { |
| 401 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 402 | } | |
| 403 | ||
| 404 | const char * | |
| 405 | gaim_conv_chat_get_topic(chat) | |
| 406 | Gaim::Conversation::Chat chat | |
| 407 | ||
| 408 | ||
| 409 | ||
| 410 | void | |
| 411 | gaim_conv_chat_set_id(chat, id) | |
| 412 | Gaim::Conversation::Chat chat | |
| 413 | int id | |
| 414 | ||
| 415 | int | |
| 416 | gaim_conv_chat_get_id(chat) | |
| 417 | Gaim::Conversation::Chat chat | |
| 418 | ||
| 419 | void | |
| 420 | gaim_conv_chat_send(chat, message) | |
| 421 | Gaim::Conversation::Chat chat | |
| 422 | const char * message | |
| 423 | ||
| 424 | void | |
| 425 | gaim_conv_chat_add_users(chat, users, flags) | |
| 426 | Gaim::Conversation::Chat chat | |
| 427 | SV * users | |
| 428 | SV * flags | |
| 429 | PREINIT: | |
| 430 | GList *t_GL_users, *t_GL_flags; | |
| 431 | int i, t_len; | |
| 432 | PPCODE: | |
| 433 | t_GL_users = NULL; | |
| 434 | t_len = av_len((AV *)SvRV(users)); | |
| 435 | ||
| 436 | for (i = 0; i < t_len; i++) { | |
| 437 | STRLEN t_sl; | |
| 438 | t_GL_users = g_list_append(t_GL_users, SvPV(*av_fetch((AV *)SvRV(users), i, 0), t_sl)); | |
| 6591 | 439 | } |
| 11123 | 440 | |
| 441 | t_GL_flags = NULL; | |
| 442 | t_len = av_len((AV *)SvRV(flags)); | |
| 443 | ||
| 444 | for (i = 0; i < t_len; i++) { | |
| 445 | STRLEN t_sl; | |
| 446 | t_GL_flags = g_list_append(t_GL_flags, SvPV(*av_fetch((AV *)SvRV(flags), i, 0), t_sl)); | |
| 447 | } | |
| 448 | ||
| 449 | gaim_conv_chat_add_users(chat, t_GL_users, t_GL_flags); | |
| 450 | ||
| 451 | ||
| 452 | gboolean | |
| 453 | gaim_conv_chat_find_user(chat, user) | |
| 454 | Gaim::Conversation::Chat chat | |
| 455 | const char * user | |
| 456 | ||
| 457 | void gaim_conv_chat_clear_users(chat) | |
| 458 | Gaim::Conversation::Chat chat | |
| 459 | ||
| 460 | void gaim_conv_chat_set_nick(chat, nick) | |
| 461 | Gaim::Conversation::Chat chat | |
| 462 | const char * nick | |
| 463 | ||
| 464 | const char * | |
| 465 | gaim_conv_chat_get_nick(chat) | |
| 466 | Gaim::Conversation::Chat chat | |
| 467 | ||
| 468 | Gaim::Conversation | |
| 469 | gaim_find_chat(gc, id) | |
| 470 | Gaim::Connection gc | |
| 471 | int id | |
| 472 | ||
| 473 | void gaim_conv_chat_left(chat) | |
| 474 | Gaim::Conversation::Chat chat | |
| 475 | ||
| 476 | gboolean gaim_conv_chat_has_left(chat) | |
| 477 | Gaim::Conversation::Chat chat | |
| 478 | ||
| 479 | Gaim::Conversation::ChatBuddy | |
| 480 | gaim_conv_chat_cb_find(chat, name) | |
| 481 | Gaim::Conversation::Chat chat | |
| 482 | const char *name | |
| 483 | ||
| 484 | const char * | |
| 485 | gaim_conv_chat_cb_get_name(cb) | |
| 486 | Gaim::Conversation::ChatBuddy cb | |
| 487 | ||
| 488 | void | |
| 489 | gaim_conv_chat_cb_destroy(cb); | |
| 490 | Gaim::Conversation::ChatBuddy cb |