]> jfr.im git - irc/thales.git/blob - src/ffi/definitions.h
Write Guile interface for libircclient.
[irc/thales.git] / src / ffi / definitions.h
1 /* Copyright (C) 2012 Free Software Foundation, Inc.
2 *
3 * This file is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public License
5 * as published by the Free Software Foundation; either version 3 of
6 * the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301 USA
17 */
18 #ifndef DEFINITIONS_H
19 #define DEFINITIONS_H
20 #include <guile/2.0/libguile.h>
21 #include <libguile.h>
22 #include <libircclient/libircclient.h>
23 struct scm_t_irc_session
24 {
25 irc_session_t *session;
26 SCM event_dispatcher;
27 SCM numeric_dispatcher;
28 SCM closure; /* third level of indirection */
29 };
30
31 void scm_throw_from_irc_session (irc_session_t * session);
32 char* guarded_scm_to_ascii_string (SCM string_or_false);
33 irc_session_t* scm_to_irc_session(SCM scm_session);
34
35 #endif