987
|
1 /*
|
|
2 * gaim - IRC Protocol Plugin
|
|
3 *
|
|
4 * Copyright (C) 2000, Rob Flynn <rob@tgflinux.com>
|
|
5 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
|
|
6 *
|
|
7 * This program is free software; you can redistribute it and/or modify
|
|
8 * it under the terms of the GNU General Public License as published by
|
|
9 * the Free Software Foundation; either version 2 of the License, or
|
|
10 * (at your option) any later version.
|
|
11 *
|
|
12 * This program is distributed in the hope that it will be useful,
|
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 * GNU General Public License for more details.
|
|
16 *
|
|
17 * You should have received a copy of the GNU General Public License
|
|
18 * along with this program; if not, write to the Free Software
|
|
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
20 *
|
|
21 */
|
|
22
|
|
23 #ifdef HAVE_CONFIG_H
|
|
24 #include "../config.h"
|
|
25 #endif
|
|
26
|
|
27
|
|
28 #include <netdb.h>
|
|
29 #include <gtk/gtk.h>
|
|
30 #include <unistd.h>
|
|
31 #include <errno.h>
|
|
32 #include <netinet/in.h>
|
|
33 #include <arpa/inet.h>
|
|
34 #include <string.h>
|
|
35 #include <stdlib.h>
|
|
36 #include <stdio.h>
|
|
37 #include <time.h>
|
|
38 #include <sys/socket.h>
|
|
39 #include <sys/stat.h>
|
|
40 #include "multi.h"
|
|
41 #include "prpl.h"
|
|
42 #include "gaim.h"
|
|
43 #include "aim.h"
|
|
44 #include "gnome_applet_mgr.h"
|
|
45
|
|
46 #include "pixmaps/cancel.xpm"
|
|
47 #include "pixmaps/ok.xpm"
|
|
48
|
|
49 struct prpl *irc_init() {
|
|
50 struct prpl *ret = g_new0(struct prpl, 1);
|
|
51
|
|
52 ret->protocol = NULL;
|
|
53 ret->name = NULL;
|
|
54 ret->login = NULL;
|
|
55 ret->close = NULL;
|
|
56 ret->send_im = NULL;
|
|
57 ret->set_info = NULL;
|
|
58 ret->get_info = NULL;
|
|
59 ret->set_away = NULL;
|
|
60 ret->get_away_msg = NULL;
|
|
61 ret->set_dir = NULL;
|
|
62 ret->get_dir = NULL;
|
|
63 ret->dir_search = NULL;
|
|
64 ret->set_idle = NULL;
|
|
65 ret->change_passwd = NULL;
|
|
66 ret->add_buddy = NULL;
|
|
67 ret->add_buddies = NULL;
|
|
68 ret->remove_buddy = NULL;
|
|
69 ret->add_permit = NULL;
|
|
70 ret->add_deny = NULL;
|
|
71 ret->warn = NULL;
|
|
72 ret->accept_chat = NULL;
|
|
73 ret->join_chat = NULL;
|
|
74 ret->chat_invite = NULL;
|
|
75 ret->chat_leave = NULL;
|
|
76 ret->chat_whisper = NULL;
|
|
77 ret->chat_send = NULL;
|
|
78 ret->keepalive = NULL;
|
|
79
|
|
80 return ret;
|
|
81 }
|
|
82
|
|
83 int gaim_plugin_init(void *handle) {
|
|
84 protocols = g_slist_append(protocols, irc_init());
|
|
85 return 0;
|
|
86 }
|