#ifndef _PCILIB_VIEWS_H #define _PCILIB_VIEWS_H #include "pcilib.h" #include "unit.h" typedef struct pcilib_view_enum_s pcilib_view_enum_t; typedef struct pcilib_view_s pcilib_view_t; typedef struct pcilib_formula_s pcilib_formula_t; typedef int (*pcilib_view_operation_t)(pcilib_t *ctx, void *params, char* string, int read_or_write, pcilib_register_value_t *regval, size_t viewval_size, void* viewval); /** * new type to define an enum view */ struct pcilib_view_enum_s { const char *name; /**