NSAPI provides a set of C functions that are used to implement SAFs and filters. All of the public routines are described in detail in Chapter 6, NSAPI Function and Macro Reference.
The NSAPI functions specific to the development of filters are:
filter_create() creates a new filter
filter_insert() inserts the specified filter into a filter stack
filter_remove() removes the specified filter from a filter stack
filter_name() returns the name of the specified filter
filter_find() finds an existing filter given a filter name
filter_layer() returns the layer in a filter stack that corresponds to the specified filter