conn-encoding.h 913 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * ngIRCd -- The Next Generation IRC Daemon
  3. * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. * Please read the file COPYING, README and AUTHORS for more information.
  10. */
  11. #ifndef __conn_encoding_h__
  12. #define __conn_encoding_h__
  13. /**
  14. * @file
  15. * Functions to deal with character encodings and conversions (header)
  16. */
  17. #ifdef ICONV
  18. GLOBAL bool Conn_SetEncoding PARAMS((CONN_ID Idx, const char *ClientEnc));
  19. GLOBAL void Conn_UnsetEncoding PARAMS((CONN_ID Idx));
  20. #endif /* ICONV */
  21. GLOBAL char* Conn_EncodingFrom PARAMS((CONN_ID Idx, char *Message));
  22. GLOBAL char* Conn_EncodingTo PARAMS((CONN_ID Idx, char *Message));
  23. #endif