nps_rm_handler_t Struct Reference

#include <rm.h>

List of all members.

Public Attributes

void * state
void(* handler )(void *, int, char *)

Detailed Description

nps_rm() and nps_rm_force provide c-based interface for deleting files with default or customized error condition handling. Its most common use is conceived as: if (nps_rm(path,1, NULL)) // Do not report any errors if (nps_rm_force(path,1, nps_rm_warning)) // Report errors to stderr

By defining your own nps_rm_warning implementation (see struct def below), you can determine error behavior. nps_rm_handler_t is a closure-like struct. It provides the mechanism for customizing error handling.


Member Data Documentation

void(* nps_rm_handler_t::handler)(void *, int, char *)

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3