Barrelfish
Functions
filter.h File Reference

Filter API for terminal client library. More...

Functions

term_filter_id_t term_client_add_input_filter (struct term_client *client, term_filter_fn *filter)
 Add an input filter. More...
 
errval_t term_client_remove_input_filter (struct term_client *client, term_filter_id_t id)
 Remove an input filter. More...
 

Detailed Description

Filter API for terminal client library.

Function Documentation

term_filter_id_t term_client_add_input_filter ( struct term_client client,
term_filter_fn *  filter 
)

Add an input filter.

Parameters
clientTerminal client state.
filterInput filter.
Returns
Filter ID.
errval_t term_client_remove_input_filter ( struct term_client client,
term_filter_id_t  id 
)

Remove an input filter.

Parameters
clientTerminal client state.
idFilter ID.
Returns
SYS_ERR_OK if successful. TERM_ERR_FILTER_NOT_FOUND if there was no filter with this ID.