From f13867f64fcba24ef2cb9d726b5ee1082ac1a8b9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 9 Oct 2015 04:42:53 +0200 Subject: Implement enum view --- pcilib/pcilib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pcilib/pcilib.h') diff --git a/pcilib/pcilib.h b/pcilib/pcilib.h index 3909ab4..6acceb6 100644 --- a/pcilib/pcilib.h +++ b/pcilib/pcilib.h @@ -112,7 +112,7 @@ typedef struct { union { long ival; double fval; - char *sval; + const char *sval; }; // This is a private part @@ -223,6 +223,7 @@ 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_static_string(pcilib_t *ctx, pcilib_value_t *value, const char *str); 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); -- cgit v1.2.3