diff options
author | nicolas.zilio@hotmail.fr <> | 2015-09-14 11:56:38 +0200 |
---|---|---|
committer | nicolas.zilio@hotmail.fr <> | 2015-09-14 11:56:38 +0200 |
commit | 2dfb23016c39a331bf5ed4111b630dffa330edbb (patch) | |
tree | 995c98cf6c329aaf8996bb57bb95b44198b4a984 /pcilib/unit.h | |
parent | 60c6bf9f6916b6ae2c05a499675ff54480256ece (diff) | |
download | pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.gz pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.bz2 pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.xz pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.zip |
views working fine, units in progress
Diffstat (limited to 'pcilib/unit.h')
-rw-r--r-- | pcilib/unit.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcilib/unit.h b/pcilib/unit.h new file mode 100644 index 0000000..f9991f1 --- /dev/null +++ b/pcilib/unit.h @@ -0,0 +1,30 @@ +#ifndef _PCILIB_UNITS_H +#define _PCILIB_UNITS_H + +#include "pcilib.h" + +typedef struct pcilib_unit_s pcilib_unit_t; +typedef struct pcilib_transform_unit_s pcilib_transform_unit_t; + +/** + * type to save a transformation unit in the pcitool program + */ +struct pcilib_transform_unit_s{ + char *name; + char *transform_formula; +}; + +/** + * type to save a unit in the pcitool programm + */ +struct pcilib_unit_s{ + char* name; + pcilib_transform_unit_t* other_units; +}; + +/** + * function to populate the ctx with units + */ +int pcilib_add_units(pcilib_t* ctx, size_t n, const pcilib_unit_t* units); + +#endif |