00001 /* Part of the culibs project, <http://www.eideticdew.org/culibs/>. 00002 * Copyright (C) 2004--2010 Petter Urkedal <paurkedal@eideticdew.org> 00003 * 00004 * This program is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 3 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef CUTEXT_FWD_H 00019 #define CUTEXT_FWD_H 00020 00021 #include <cu/fwd.h> 00022 #include <cu/conf.h> 00023 00024 CU_BEGIN_DECLARATIONS 00025 00026 typedef struct cutext_sink *cutext_sink_t; 00027 typedef struct cutext_countsink *cutext_countsink_t; 00028 typedef struct cutext_buffersink *cutext_buffersink_t; 00029 00030 typedef struct cutext_source *cutext_source_t; 00031 typedef struct cutext_source_descriptor *cutext_source_descriptor_t; 00032 typedef struct cutext_bufsource *cutext_bufsource_t; 00033 typedef struct cutext_lsource *cutext_lsource_t; 00034 00035 typedef struct cutext_src *cutext_src_t; 00036 typedef struct cutext_ucs4src *cutext_ucs4src_t; 00037 00038 typedef enum { 00039 cutext_status_ok, 00040 cutext_status_buffer_too_small, 00041 cutext_status_eos, 00042 cutext_status_error, 00043 } cutext_status_t; 00044 00045 /** Initialises the cutext and dependent modules. */ 00046 void cutext_init(void); 00047 00048 CU_END_DECLARATIONS 00049 00050 #ifndef CU_NCOMPAT 00051 # include <cutext/compat.h> 00052 #endif 00053 #endif