config.h   config.h 
/* include/config.h. Generated by configure. */ /* include/config.h. Generated from config.h.in by configure. */
/* include/config.h.in. Generated from configure.in by autoheader. */ /* include/config.h.in. Generated from configure.in by autoheader. */
/* Define to 1 if you have the `getaddrinfo' function. */
/* #undef HAVE_GETADDRINFO */
/* Define to 1 if you have the `gethostbyname_r' function. */ /* Define to 1 if you have the `gethostbyname_r' function. */
#define HAVE_GETHOSTBYNAME_R 1 #define HAVE_GETHOSTBYNAME_R 1
/* Define to 1 if you have the `inet_ntoa' function. */ /* Define to 1 if you have the `inet_ntoa' function. */
#define HAVE_INET_NTOA 1 #define HAVE_INET_NTOA 1
/* Define to 1 if you have the `inet_pton' function. */
/* #undef HAVE_INET_PTON */
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `localtime_r' function. */ /* Define to 1 if you have the `localtime_r' function. */
#define HAVE_LOCALTIME_R 1 #define HAVE_LOCALTIME_R 1
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */ to 0 otherwise. */
#define HAVE_MALLOC 1 #define HAVE_MALLOC 1
skipping to change at line 68 skipping to change at line 74
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
/* Define to 1 if the system has the type `_Bool'. */ /* Define to 1 if the system has the type `_Bool'. */
#define HAVE__BOOL 1 #define HAVE__BOOL 1
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */ slash. */
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "tim@krasnogorsk.ru" #define PACKAGE_BUGREPORT "gyunaev@ulduzsoft.com"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "libircclient" #define PACKAGE_NAME "libircclient"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "libircclient 1.2" #define PACKAGE_STRING "libircclient 1.3"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "libircclient" #define PACKAGE_TARNAME "libircclient"
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.2" #define PACKAGE_VERSION "1.3"
/* Define to the type of arg 1 for `select'. */ /* Define to the type of arg 1 for `select'. */
#define SELECT_TYPE_ARG1 int #define SELECT_TYPE_ARG1 int
/* Define to the type of args 2, 3 and 4 for `select'. */ /* Define to the type of args 2, 3 and 4 for `select'. */
#define SELECT_TYPE_ARG234 (fd_set *) #define SELECT_TYPE_ARG234 (fd_set *)
/* Define to the type of arg 5 for `select'. */ /* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *) #define SELECT_TYPE_ARG5 (struct timeval *)
skipping to change at line 103 skipping to change at line 109
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1 #define TIME_WITH_SYS_TIME 1
/* Define to empty if `const' does not conform to ANSI C. */ /* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */ /* #undef const */
/* Define to rpl_malloc if the replacement function should be used. */ /* Define to rpl_malloc if the replacement function should be used. */
/* #undef malloc */ /* #undef malloc */
/* Define to `unsigned' if <sys/types.h> does not define. */ /* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */ /* #undef size_t */
 End of changes. 7 change blocks. 
5 lines changed or deleted 11 lines changed or added


 libirc_dcc.h   libirc_dcc.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_dcc.h 18 2004-09-14 19:50:10Z gyunaev $
*/ */
#ifndef INCLUDE_IRC_DCC_H #ifndef INCLUDE_IRC_DCC_H
#define INCLUDE_IRC_DCC_H #define INCLUDE_IRC_DCC_H
#ifndef IN_INCLUDE_LIBIRC_H #ifndef IN_INCLUDE_LIBIRC_H
#error This file should not be included directly, include just libir client.h #error This file should not be included directly, include just libir client.h
#endif #endif
/* /*
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_doc.h   libirc_doc.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_doc.h 42 2004-10-10 16:16:15Z gyunaev $
*/ */
/*! /*!
* \file libirc_doc.h * \file libirc_doc.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file contains Doxygen modules. * \brief This file contains Doxygen modules.
*/ */
skipping to change at line 78 skipping to change at line 76
* *
* Documentation is not installed with \a make \a install; you should copy it * Documentation is not installed with \a make \a install; you should copy it
* somewhere by hand. * somewhere by hand.
* There is html documentation (in \a doc/html) and manual pages (\a doc/ma n). * There is html documentation (in \a doc/html) and manual pages (\a doc/ma n).
* It is also recommended to check the \a examples directory, there are a * It is also recommended to check the \a examples directory, there are a
* few examples, they'll help you. * few examples, they'll help you.
* *
* \section author Author, copyright, support. * \section author Author, copyright, support.
* *
* If you have any questions, bug reports, suggestions regarding libircclie nt - * If you have any questions, bug reports, suggestions regarding libircclie nt -
* please send them to tim@krasnogorsk.ru. * please send them to gyunaev@ulduzsoft.com.
* *
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
 End of changes. 4 change blocks. 
5 lines changed or deleted 3 lines changed or added


 libirc_doc_faq.h   libirc_doc_faq.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_doc_faq.h 58 2004-10-31 13:43:47Z gyunaev $
*/ */
/*! /*!
* \file libirc_doc_faq.h * \file libirc_doc_faq.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file contains libircclient FAQ. * \brief This file contains libircclient FAQ.
*/ */
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_errors.h   libirc_errors.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_errors.h 28 2004-10-04 10:34:58Z gyunaev $
*/ */
/*! /*!
* \file libirc_errors.h * \file libirc_errors.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file defines error codes generated by libircclient. * \brief This file defines error codes generated by libircclient.
*/ */
skipping to change at line 180 skipping to change at line 178
/*! \brief IRC server connection terminated /*! \brief IRC server connection terminated
* *
* The connection to the IRC server was terminated - possibly, by network * The connection to the IRC server was terminated - possibly, by network
* error. Try to irc_connect() again. * error. Try to irc_connect() again.
* *
* \ingroup errorcodes * \ingroup errorcodes
*/ */
#define LIBIRC_ERR_TERMINATED 15 #define LIBIRC_ERR_TERMINATED 15
/*! \brief IPv6 not supported
*
* The function which requires IPv6 support was called, but the IPv6 suppor
t was not compiled
* into the application
*
* \ingroup errorcodes
*/
#define LIBIRC_ERR_NOIPV6 16
/*! brief Internal max error value count /*! brief Internal max error value count
*/ */
#define LIBIRC_ERR_MAX 16 #define LIBIRC_ERR_MAX 17
#endif /* INCLUDE_IRC_ERRORS_H */ #endif /* INCLUDE_IRC_ERRORS_H */
 End of changes. 4 change blocks. 
4 lines changed or deleted 12 lines changed or added


 libirc_events.h   libirc_events.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_events.h 39 2004-10-07 18:18:36Z gyunaev $
*/ */
/*! /*!
* \file libirc_events.h * \file libirc_events.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief Describes event callbacks generated by libircclient. * \brief Describes event callbacks generated by libircclient.
* *
* This file should not be included directly. Include libircclient.h instea d. * This file should not be included directly. Include libircclient.h instea d.
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_options.h   libirc_options.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_options.h 2 2004-09-08 11:49:02Z gyunaev $
*/ */
/*! /*!
* \file libirc_options.h * \file libirc_options.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file defines the options used in irc_session_options() * \brief This file defines the options used in irc_session_options()
*/ */
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_params.h   libirc_params.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_params.h 67 2006-08-29 19:02:57Z gyunaev $
*/ */
#ifndef INCLUDE_IRC_PARAMS_H #ifndef INCLUDE_IRC_PARAMS_H
#define INCLUDE_IRC_PARAMS_H #define INCLUDE_IRC_PARAMS_H
#ifndef IN_INCLUDE_LIBIRC_H #ifndef IN_INCLUDE_LIBIRC_H
#error This file should not be included directly, include just libir cclient.h #error This file should not be included directly, include just libir cclient.h
#endif #endif
#define LIBIRC_VERSION_HIGH 0x0001 #define LIBIRC_VERSION_HIGH 0x0001
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_rfcnumeric.h   libirc_rfcnumeric.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_rfcnumeric.h 31 2004-10-06 19:36:13Z gyunaev $
*/ */
/*! /*!
* \file libirc_rfcnumeric.h * \file libirc_rfcnumeric.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file defines RFC numeric reply codes, which should be used i n * \brief This file defines RFC numeric reply codes, which should be used i n
* ::event_numeric callback. Every code also has a comment regarding its * ::event_numeric callback. Every code also has a comment regarding its
* arguments. * arguments.
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added


 libirc_session.h   libirc_session.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libirc_session.h 18 2004-09-14 19:50:10Z gyunaev $
*/ */
#ifndef INCLUDE_IRC_SESSION_H #ifndef INCLUDE_IRC_SESSION_H
#define INCLUDE_IRC_SESSION_H #define INCLUDE_IRC_SESSION_H
#ifndef IN_INCLUDE_LIBIRC_H #ifndef IN_INCLUDE_LIBIRC_H
#error This file should not be included directly, include just libir cclient.h #error This file should not be included directly, include just libir cclient.h
#endif #endif
#include "libirc_params.h" #include "libirc_params.h"
skipping to change at line 53 skipping to change at line 51
socket_t sock; socket_t sock;
int state; int state;
int motd_received; int motd_received;
char * server; char * server;
char * server_password; char * server_password;
char * realname; char * realname;
char * username; char * username;
char * nick; char * nick;
#if defined( ENABLE_IPV6 )
struct in6_addr local_addr;
#else
struct in_addr local_addr; struct in_addr local_addr;
#endif
irc_dcc_t dcc_last_id; irc_dcc_t dcc_last_id;
irc_dcc_session_t * dcc_sessions; irc_dcc_session_t * dcc_sessions;
port_mutex_t mutex_dcc; port_mutex_t mutex_dcc;
irc_callbacks_t callbacks; irc_callbacks_t callbacks;
}; };
#endif /* INCLUDE_IRC_SESSION_H */ #endif /* INCLUDE_IRC_SESSION_H */
 End of changes. 4 change blocks. 
3 lines changed or deleted 5 lines changed or added


 libircclient.h   libircclient.h 
/* /*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru * Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at yo ur * the Free Software Foundation; either version 2 of the License, or (at yo ur
* option) any later version. * option) any later version.
* *
* This library is distributed in the hope that it will be useful, but WITH OUT * This library is distributed in the hope that it will be useful, but WITH OUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details. * License for more details.
*
* $Id: libircclient.h 43 2004-10-10 16:19:04Z gyunaev $
*/ */
/*! /*!
* \file libircclient.h * \file libircclient.h
* \author Georgy Yunaev * \author Georgy Yunaev
* \version 1.0 * \version 1.0
* \date 09.2004 * \date 09.2004
* \brief This file defines all prototypes and functions to use libircclien t. * \brief This file defines all prototypes and functions to use libircclien t.
* *
* libircclient is a small but powerful library, which implements client-se rver IRC * libircclient is a small but powerful library, which implements client-se rver IRC
skipping to change at line 50 skipping to change at line 48
* *
* Note that to use libircclient, only libircclient.h should be included in to your * Note that to use libircclient, only libircclient.h should be included in to your
* program. Do not include other libirc_* headers. * program. Do not include other libirc_* headers.
*/ */
#ifndef INCLUDE_LIBIRC_H #ifndef INCLUDE_LIBIRC_H
#define INCLUDE_LIBIRC_H #define INCLUDE_LIBIRC_H
#if !defined (WIN32) #if !defined (WIN32)
#include <sys/select.h> /* fd_set */ #include <sys/select.h> /* fd_set */
#include <netinet/in.h> /* sockaddr_in */
#else #else
#include <winsock.h> #include <winsock2.h>
#include <ws2tcpip.h>
#if defined (ENABLE_IPV6)
typedef int (WSAAPI * getaddrinfo_ptr_t) (const char *, co
nst char* , const struct addrinfo *, struct addrinfo **);
typedef void (WSAAPI * freeaddrinfo_ptr_t) (struct addrinfo*
);
#endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/*! \brief A libircclient IRC session. /*! \brief A libircclient IRC session.
* *
* This structure describes an IRC session. Its members are internal to * This structure describes an IRC session. Its members are internal to
* libircclient, and should not be used directly. * libircclient, and should not be used directly.
skipping to change at line 126 skipping to change at line 128
* destroyed. * destroyed.
* - \a status is 0, and \a data is not 0: new data received, \a data conta ins * - \a status is 0, and \a data is not 0: new data received, \a data conta ins
* the data received, \a length contains the amount of data received. * the data received, \a length contains the amount of data received.
* *
* \ingroup dccstuff * \ingroup dccstuff
*/ */
typedef void (*irc_dcc_callback_t) (irc_session_t * session, irc_dcc_t id, int status, void * ctx, const char * data, unsigned int length); typedef void (*irc_dcc_callback_t) (irc_session_t * session, irc_dcc_t id, int status, void * ctx, const char * data, unsigned int length);
#define IN_INCLUDE_LIBIRC_H #define IN_INCLUDE_LIBIRC_H
#include "libirc_errors.h" #include "libirc_errors.h"
#include "libirc_rfcnumeric.h"
#include "libirc_events.h" #include "libirc_events.h"
#include "libirc_options.h" #include "libirc_options.h"
#if defined (IN_BUILDING_LIBIRC) #if defined (IN_BUILDING_LIBIRC)
#include "libirc_session.h" #include "libirc_session.h"
#include "libirc_dcc.h" #include "libirc_dcc.h"
#endif #endif
/*! /*!
* \fn irc_session_t * irc_create_session (irc_callbacks_t * callbacks) * \fn irc_session_t * irc_create_session (irc_callbacks_t * callbacks)
skipping to change at line 190 skipping to change at line 193
/*! /*!
* \fn int irc_connect (irc_session_t * session, const char * server, unsig ned short port, const char * server_password, const char * nick, const char * username, const char * realname); * \fn int irc_connect (irc_session_t * session, const char * server, unsig ned short port, const char * server_password, const char * nick, const char * username, const char * realname);
* \brief Initiates a connection to IRC server. * \brief Initiates a connection to IRC server.
* *
* \param session A session to initiate connections on. Must not be NULL. * \param session A session to initiate connections on. Must not be NULL.
* \param server A domain name or an IP address of the IRC server to conne ct * \param server A domain name or an IP address of the IRC server to conne ct
* to. Must not be NULL. * to. Must not be NULL.
* \param port An IRC server port, usually 6667. * \param port An IRC server port, usually 6667.
* \param server_password An IRC server password, if the server requires i t. * \param server_password An IRC server password, if the server requires i t.
* May be NULL, in this case password will not be send to th e * May be NULL, in this case password will not be send to th e
* IRC server. * IRC server. Vast majority of IRC servers do not require p asswords.
* \param nick A nick, which libircclient will use to login to the IRC s erver. * \param nick A nick, which libircclient will use to login to the IRC s erver.
* Must not be NULL. * Must not be NULL.
* \param username A username of the account, which is used to connect to t he * \param username A username of the account, which is used to connect to t he
* IRC server. This is for information only, will be shown i n * IRC server. This is for information only, will be shown i n
* "user properties" dialogs and returned by /whois request. * "user properties" dialogs and returned by /whois request.
* May be NULL, in this case 'nobody' will be sent as userna me. * May be NULL, in this case 'nobody' will be sent as userna me.
* \param realname A real name of the person, who connects to the IRC. Usua lly * \param realname A real name of the person, who connects to the IRC. Usua lly
* people put some wide-available information here (URL, sma ll * people put some wide-available information here (URL, sma ll
* description or something else). This information also wil l * description or something else). This information also wil l
* be shown in "user properties" dialogs and returned by /wh ois * be shown in "user properties" dialogs and returned by /wh ois
skipping to change at line 225 skipping to change at line 228
*/ */
int irc_connect (irc_session_t * session, int irc_connect (irc_session_t * session,
const char * server, const char * server,
unsigned short port, unsigned short port,
const char * server_password, const char * server_password,
const char * nick, const char * nick,
const char * username, const char * username,
const char * realname); const char * realname);
/*! /*!
* \fn int irc_connect6 (irc_session_t * session, const char * server, unsi
gned short port, const char * server_password, const char * nick, const cha
r * username, const char * realname);
* \brief Initiates a connection to IRC server using IPv6.
*
* \param session A session to initiate connections on. Must not be NULL.
* \param server A domain name or an IP address of the IRC server to conne
ct
* to. Must not be NULL.
* \param port An IRC server port, usually 6667.
* \param server_password An IRC server password, if the server requires i
t.
* May be NULL, in this case password will not be send to th
e
* IRC server. Vast majority of IRC servers do not require p
asswords.
* \param nick A nick, which libircclient will use to login to the IRC s
erver.
* Must not be NULL.
* \param username A username of the account, which is used to connect to t
he
* IRC server. This is for information only, will be shown i
n
* "user properties" dialogs and returned by /whois request.
* May be NULL, in this case 'nobody' will be sent as userna
me.
* \param realname A real name of the person, who connects to the IRC. Usua
lly
* people put some wide-available information here (URL, sma
ll
* description or something else). This information also wil
l
* be shown in "user properties" dialogs and returned by /wh
ois
* request. May be NULL, in this case 'noname' will be sent
as
* username.
*
* \return Return code 0 means success. Other value means error, the error
* code may be obtained through irc_errno(). Any error, generated by the
* IRC server, is available through irc_callbacks_t::event_numeric.
*
* This function prepares and initiates a connection to the IRC server. The
* connection is done asynchronously (see irc_callbacks_t::event_connect),
so the success
* return value means that connection was initiated (but not completed!)
* successfully.
*
* \sa irc_run
* \ingroup conndisc
*/
int irc_connect6 (irc_session_t * session,
const char * server,
unsigned short port,
const char * server_password,
const char * nick,
const char * username,
const char * realname);
/*!
* \fn void irc_disconnect (irc_session_t * session) * \fn void irc_disconnect (irc_session_t * session)
* \brief Disconnects a connection to IRC server. * \brief Disconnects a connection to IRC server.
* *
* \param session An IRC session. * \param session An IRC session.
* *
* \return Return code 0 means success. Other value means error, the error * \return Return code 0 means success. Other value means error, the error
* code may be obtained through irc_errno(). * code may be obtained through irc_errno().
* *
* This function closes the IRC connection. After that connection is closed , * This function closes the IRC connection. After that connection is closed ,
* libircclient automatically leaves irc_run loop. * libircclient automatically leaves irc_run loop.
 End of changes. 7 change blocks. 
6 lines changed or deleted 71 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/