/* * $Id: extio.h,v 1.11 2006-08-27 15:29:21 bacon Exp $ */ #ifndef _XP_AWK_EXTIO_H_ #define _XP_AWK_EXTIO_H_ #ifndef _XP_AWK_AWK_H_ #error Never include this file directly. Include instead #endif #ifdef __cplusplus extern "C" #endif int xp_awk_readextio ( xp_awk_run_t* run, int in_type, const xp_char_t* name, xp_str_t* buf); int xp_awk_writeextio ( xp_awk_run_t* run, int out_type, const xp_char_t* name, xp_awk_val_t* v); int xp_awk_writeextio_nl ( xp_awk_run_t* run, int out_type, const xp_char_t* name, xp_awk_val_t* v); int xp_awk_flushextio ( xp_awk_run_t* run, int out_type, const xp_char_t* name); int xp_awk_nextextio_read ( xp_awk_run_t* run, int in_type, const xp_char_t* name); /* TODO: int xp_awk_nextextio_write ( xp_awk_run_t* run, int out_type, const xp_char_t* name); */ int xp_awk_closeextio_read ( xp_awk_run_t* run, int in_type, const xp_char_t* name); int xp_awk_closeextio_write ( xp_awk_run_t* run, int out_type, const xp_char_t* name); int xp_awk_closeextio (xp_awk_run_t* run, const xp_char_t* name); void xp_awk_clearextio (xp_awk_run_t* run); #ifdef __cplusplus } #endif #endif