summaryrefslogtreecommitdiffstats
path: root/pcilib/pcilib.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-10-13 00:40:04 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-10-13 00:40:04 +0200
commit981a4dafac2d2e7ed237cb31af68c7bf2cee8665 (patch)
tree4491e77b8a441565a084f4b169aa334977f8b0c7 /pcilib/pcilib.h
parentf13867f64fcba24ef2cb9d726b5ee1082ac1a8b9 (diff)
downloadpcitool-981a4dafac2d2e7ed237cb31af68c7bf2cee8665.tar.gz
pcitool-981a4dafac2d2e7ed237cb31af68c7bf2cee8665.tar.bz2
pcitool-981a4dafac2d2e7ed237cb31af68c7bf2cee8665.tar.xz
pcitool-981a4dafac2d2e7ed237cb31af68c7bf2cee8665.zip
Support transform views
Diffstat (limited to 'pcilib/pcilib.h')
-rw-r--r--pcilib/pcilib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcilib/pcilib.h b/pcilib/pcilib.h
index 6acceb6..5c1ca70 100644
--- a/pcilib/pcilib.h
+++ b/pcilib/pcilib.h
@@ -223,7 +223,12 @@ void pcilib_clean_value(pcilib_t *ctx, pcilib_value_t *val);
int pcilib_copy_value(pcilib_t *ctx, pcilib_value_t *dst, const pcilib_value_t *src);
int pcilib_set_value_from_float(pcilib_t *ctx, pcilib_value_t *val, double fval);
int pcilib_set_value_from_int(pcilib_t *ctx, pcilib_value_t *val, long ival);
+int pcilib_set_value_from_register_value(pcilib_t *ctx, pcilib_value_t *value, pcilib_register_value_t regval);
int pcilib_set_value_from_static_string(pcilib_t *ctx, pcilib_value_t *value, const char *str);
+double pcilib_get_value_as_float(pcilib_t *ctx, const pcilib_value_t *val, int *err);
+long pcilib_get_value_as_int(pcilib_t *ctx, const pcilib_value_t *val, int *err);
+pcilib_register_value_t pcilib_get_value_as_register_value(pcilib_t *ctx, const pcilib_value_t *val, int *err);
+
int pcilib_convert_value_unit(pcilib_t *ctx, pcilib_value_t *val, const char *unit_name);
int pcilib_convert_value_type(pcilib_t *ctx, pcilib_value_t *val, pcilib_value_type_t type);