IRC client framework (wrapper around libircclient library).
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

libirc_options.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2004-2012 George Yunaev gyunaev@ulduzsoft.com
  3. *
  4. * This library is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU Lesser General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  12. * License for more details.
  13. */
  14. #ifndef INCLUDE_IRC_OPTIONS_H
  15. #define INCLUDE_IRC_OPTIONS_H
  16. #ifndef IN_INCLUDE_LIBIRC_H
  17. #error This file should not be included directly, include just libircclient.h
  18. #endif
  19. /*!
  20. * enables additional debug output
  21. * \ingroup options
  22. */
  23. #define LIBIRC_OPTION_DEBUG (1 << 1)
  24. /*! \brief allows to strip origins automatically.
  25. *
  26. * For every IRC server event, the event origin is sent in standard form:
  27. * nick!host\@ircserver, i.e. like tim!home\@irc.freenet.org. Such origins
  28. * can not be used in IRC commands, and need to be stripped (i.e. host and
  29. * server part should be cut off) before using. This can be done either
  30. * explicitly, by calling irc_target_get_nick(), or implicitly for all the
  31. * events - by setting this option with irc_option_set().
  32. * \ingroup options
  33. */
  34. #define LIBIRC_OPTION_STRIPNICKS (1 << 2)
  35. /*! \brief Disables the certificate verification for SSL connections
  36. *
  37. * By default the SSL connection authenticy is ensured by verifying that the certificate
  38. * presented by the server is signed by a known trusted certificate authority. Since those
  39. * typically cost money, some IRC servers use the self-signed certificates. They provide the
  40. * benefits of the SSL connection but since they are not signed by the Certificate Authority,
  41. * their authencity cannot be verified. This option, if set, disables the certificate
  42. * verification - the library will accept any certificate presented by the server.
  43. *
  44. * This option must be set before the irc_connect function is called.
  45. * \ingroup options
  46. */
  47. #define LIBIRC_OPTION_SSL_NO_VERIFY (1 << 3)
  48. #endif /* INCLUDE_IRC_OPTIONS_H */