Codebase list libmawk / d9f30b5e-7ff9-4ae9-856b-e12b904bb243/main src / example_apps / 91_custom_vio_re / vio_hash.h
d9f30b5e-7ff9-4ae9-856b-e12b904bb243/main

Tree @d9f30b5e-7ff9-4ae9-856b-e12b904bb243/main (Download .tar.gz)

vio_hash.h @d9f30b5e-7ff9-4ae9-856b-e12b904bb243/mainraw · history · blame

extern const mawk_vio_imp_t mawk_vio_hash_imp;


mawk_vio_t *mawk_vio_hash_open(mawk_state_t *MAWK, const char *name, mawk_vio_open_mode_t mode);

/* reopen an existing vf: reset eof states */
void mawk_vio_hash_reopen(mawk_state_t *MAWK, mawk_vio_t *vf, mawk_vio_open_mode_t mode);

/* free a hash struct */
void mawk_vio_hash_free(mawk_state_t *MAWK, mawk_vio_t *vf);

/* retrieve current value of the hash */
unsigned long int mawk_vio_hash_val(mawk_state_t *MAWK, mawk_vio_t *vf);

/* the application wants to signal eof to the script */
int mawk_vio_hash_eof_from_app(mawk_state_t *MAWK, mawk_vio_t *vf);