Prev, Top | Notes, Next |
The library uses a table
Using manual OO techniquesconst explain_iocontrol_t *const explain_iocontrol_table[] = { &explain_iocontrol_blkbszget, blah blah blah &explain_iocontrol_vt_waitactive, } struct explain_iocontrol_t { const char *name; int number; int (*disambiguate)(int fildes, int request, const void *data); void (*print_data)(int fildes, int request, const void *data); void (*print_explanation)(int fildes, int request, const void *data); etc };
libexplain/iocontrol.h |