Updating ChangeLog for 4.22.10
[centerim.git] / firetalk / toc.h
blobefa43fedbe9238e6d6958873d7aa6ebd5cbe5f02
1 /*
2 toc.h - FireTalk TOC protocol declarations
3 Copyright (C) 2000 Ian Gulliver
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of version 2 of the GNU General Public License as
7 published by the Free Software Foundation.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifndef _TOC_H
19 #define _TOC_H
21 #include "firetalk.h"
22 #include "firetalk-int.h"
23 #include <unistd.h>
24 #include <sys/time.h>
26 /* AOL/TOC Functions */
27 client_t toc_create_handle();
28 void toc_destroy_handle(client_t c);
30 enum firetalk_error toc_compare_nicks(const char * const nick1, const char * const nick2);
31 enum firetalk_error toc_isprint(const int c);
32 enum firetalk_error toc_disconnect(client_t c);
33 enum firetalk_error toc_signon(client_t c, const char * const username);
35 enum firetalk_error toc_preselect(client_t c, fd_set *read, fd_set *write, fd_set *except, int *n);
36 enum firetalk_error toc_postselect(client_t c, fd_set *read, fd_set *write, fd_set *except);
38 enum firetalk_error toc_im_add_buddy(client_t c, const char * const nickname);
39 enum firetalk_error toc_im_remove_buddy(client_t c, const char * const nickname);
40 enum firetalk_error toc_im_add_deny(client_t c, const char * const nickname);
41 enum firetalk_error toc_im_remove_deny(client_t c, const char * const nickname);
42 enum firetalk_error toc_im_upload_buddies(client_t c);
43 enum firetalk_error toc_im_upload_denies(client_t c);
44 enum firetalk_error toc_im_send_message(client_t c, const char * const dest, const char * const message, const int auto_flag);
45 enum firetalk_error toc_im_send_action(client_t c, const char * const dest, const char * const message, const int auto_flag);
46 enum firetalk_error toc_im_evil(client_t c, const char * const who);
48 enum firetalk_error toc_chat_join(client_t c, const char * const room, const char * const password);
49 enum firetalk_error toc_chat_set_topic(client_t c, const char * const room, const char * const topic);
50 enum firetalk_error toc_chat_op(client_t c, const char * const room, const char * const who);
51 enum firetalk_error toc_chat_deop(client_t c, const char * const room, const char * const who);
52 enum firetalk_error toc_chat_kick(client_t c, const char * const room, const char * const who, const char * const reason);
53 enum firetalk_error toc_chat_send_message(client_t c, const char * const room, const char * const message, const int auto_flag);
54 enum firetalk_error toc_chat_send_action(client_t c, const char * const room, const char * const message, const int auto_flag);
55 enum firetalk_error toc_chat_invite(client_t c, const char * const room, const char * const who, const char * const message);
57 enum firetalk_error toc_subcode_send_request(client_t c, const char * const to, const char * const command, const char * const args);
58 enum firetalk_error toc_subcode_send_reply(client_t c, const char * const to, const char * const command, const char * const args);
60 enum firetalk_error toc_save_config(client_t c);
61 enum firetalk_error toc_get_info(client_t c, const char * const nickname);
62 enum firetalk_error toc_set_info(client_t c, const char * const info);
63 enum firetalk_error toc_set_away(client_t c, const char * const message);
64 enum firetalk_error toc_set_nickname(client_t c, const char * const nickname);
65 enum firetalk_error toc_set_password(client_t c, const char * const oldpass, const char * const newpass);
66 enum firetalk_error toc_got_data(client_t c, unsigned char * buffer, unsigned short * bufferpos);
67 enum firetalk_error toc_got_data_connecting(client_t c, unsigned char * buffer, unsigned short * bufferpos);
68 enum firetalk_error toc_periodic(firetalk_t c);
70 #endif