diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-10-08 20:04:37 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-10-08 20:04:37 +0200 |
commit | 21812f8d763fac8ee9bb3fdc593642b06f405a2b (patch) | |
tree | a55e99115e8c238e6b34159e063ac7d01ba65d54 /views/transform.c | |
parent | e28e74adf3d58deb95ce84c66423f347cbe2f859 (diff) | |
download | pcitool-21812f8d763fac8ee9bb3fdc593642b06f405a2b.tar.gz pcitool-21812f8d763fac8ee9bb3fdc593642b06f405a2b.tar.bz2 pcitool-21812f8d763fac8ee9bb3fdc593642b06f405a2b.tar.xz pcitool-21812f8d763fac8ee9bb3fdc593642b06f405a2b.zip |
Base functions for views
Diffstat (limited to 'views/transform.c')
-rw-r--r-- | views/transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/transform.c b/views/transform.c index 54ae2c1..93fc783 100644 --- a/views/transform.c +++ b/views/transform.c @@ -10,7 +10,7 @@ #include "transform.h" -static int pcilib_transform_view_read(pcilib_t *ctx, pcilib_view_context_t *view, const pcilib_register_value_t *regval, pcilib_data_type_t viewval_type, size_t viewval_size, void *viewval) { +static int pcilib_transform_view_read(pcilib_t *ctx, pcilib_view_context_t *view, const pcilib_register_value_t *regval, pcilib_value_t *val) { /* int j=0; pcilib_register_value_t value=0; char* formula=NULL; @@ -43,7 +43,7 @@ static int pcilib_transform_view_read(pcilib_t *ctx, pcilib_view_context_t *view }*/ } -static int pcilib_transform_view_write(pcilib_t *ctx, pcilib_view_context_t *view, pcilib_register_value_t *regval, pcilib_data_type_t viewval_type, size_t viewval_size, const void *viewval) { +static int pcilib_transform_view_write(pcilib_t *ctx, pcilib_view_context_t *view, pcilib_register_value_t *regval, pcilib_value_t *val) { /* if(!(strcasecmp(unit, ((pcilib_view_t*)viewval)->base_unit.name))) { formula=malloc(sizeof(char)*strlen(((pcilib_formula_t*)params)->write_formula)); strncpy(formula,((pcilib_formula_t*)params)->write_formula,strlen(((pcilib_formula_t*)params)->write_formula)); |