00001 /* Part of the culibs project, <http://www.eideticdew.org/culibs/>. 00002 * Copyright (C) 2002--2007 Petter Urkedal <urkedal@nbi.dk> 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 CUFLOW_FWD_H 00019 #define CUFLOW_FWD_H 00020 00021 #include <stdlib.h> 00022 #include <stdint.h> 00023 #include <cu/conf.h> 00024 #include <cu/fwd.h> 00025 00026 CU_BEGIN_DECLARATIONS 00027 00028 /** \defgroup cuflow_fwd_h cuflow/fwd.h: Forward Declarations 00029 ** @{ \ingroup cuflow_mod */ 00030 00031 typedef struct cuflow_continuation *cuflow_continuation_t; 00032 typedef struct cuflow_tstate *cuflow_tstate_t; 00033 00034 typedef struct cuflow_cacheconf *cuflow_cacheconf_t; 00035 typedef struct cuflow_gflexq *cuflow_gflexq_t; /* gworkq.h */ 00036 typedef struct cuflow_promise *cuflow_promise_t; /* promise.h*/ 00037 typedef struct cuflow_workq *cuflow_workq_t; /* workq.h */ 00038 00039 /** Call this from the main thread to initialise the cuflow module before using 00040 ** it. */ 00041 void cuflow_init(void); 00042 00043 /** @} */ 00044 00045 CU_END_DECLARATIONS 00046 00047 #ifndef CU_NCOMPAT 00048 # include <cuflow/compat.h> 00049 #endif 00050 #endif