Fix wrong check for ignoring Freenode info messages.
[vomak.git] / socket.h
blob4991036b001c8c0e25b4305285163c63c76b4043
1 /*
2 * socket.h - - this file is part of vomak - a very simple IRC bot
4 * Copyright 2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef SOCKET_H
23 #define SOCKET_H 1
26 typedef struct
28 gchar *file_name;
29 GIOChannel *read_ioc;
30 gint lock_socket;
31 gint lock_socket_tag;
32 } socket_info_t;
35 void socket_init (socket_info_t *si, const gchar *filename);
36 gint socket_fd_close(gint sock);
37 gint socket_fd_gets (gint sock, gchar *buf, gint len);
38 gint socket_finalize(socket_info_t *si);
41 #endif