Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

tdsiconv.h

00001 /* Generated from tds_configs.h.in on Sun Aug 11 12:35:14 EDT 2002 */
00002 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
00003  * Copyright (C) 2002  Brian Bruns
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public
00016  * License along with this library; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef _tds_iconv_h_
00022 #define _tds_iconv_h_
00023 
00024 static char rcsid_tds_iconv_h[] = "$Id: tdsiconv.h,v 1.6 2003/04/03 09:04:28 freddy77 Exp $";
00025 static void *no_unused_tds_iconv_h_warn[] = { rcsid_tds_iconv_h, no_unused_tds_iconv_h_warn };
00026 
00027 #if HAVE_ICONV
00028 #include <iconv.h>
00029 #endif
00030 
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #if 0
00035 }
00036 #endif
00037 #endif
00038 
00039 typedef struct tdsiconvinfo
00040 {
00041         int use_iconv;
00042 #if HAVE_ICONV
00043         int bytes_per_char;
00044         char client_charset[64];
00045         iconv_t cdto_ucs2;      /* conversion from client charset to UCS2LE MSSQLServer */
00046         iconv_t cdfrom_ucs2;    /* conversion from UCS2LE MSSQLServer to client charset */
00047         iconv_t cdto_srv;       /* conversion from client charset to SQL Server ASCII charset */
00048         iconv_t cdfrom_srv;     /* conversion from SQL Server ASCII charset  to client charset */
00049 #endif
00050 }
00051 TDSICONVINFO;
00052 
00053 #ifdef __cplusplus
00054 #if 0
00055 {
00056 #endif
00057 }
00058 #endif
00059 
00060 #endif /* _tds_iconv_h_ */

Generated on Sat Apr 5 23:17:40 2003 for FreeTDS API by doxygen1.2.18