diff options
author | David Robillard <d@drobilla.net> | 2007-06-30 23:33:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-30 23:33:36 +0000 |
commit | f291f0a52c45c9ae14d031c1fc16d772c65d94ce (patch) | |
tree | dbe9701473c6cfe6fd3df50a6d4dc103c0ab9f26 /src/slv2_internal.h | |
parent | 435bc2fc2c0eb78addac1e688411ad8fad02517a (diff) | |
download | lilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.tar.gz lilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.tar.bz2 lilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.zip |
Reworked GUI access in a safer way, anticipating various GUI specs (w/o breaking binary compatibility).
Increment libtool library version number accordingly (new methods added, still backwards compatible).
git-svn-id: http://svn.drobilla.net/lad/slv2@547 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r-- | src/slv2_internal.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h index 4d20e4f..89325ca 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -161,6 +161,14 @@ slv2_world_load_path(SLV2World world, const char* search_path); +/* ********* GUI ********* */ + +struct _SLV2GUI { + SLV2GUIType type; + char* uri; +}; + + /* ********* Value ********* */ @@ -169,21 +177,24 @@ typedef enum _SLV2ValueType { SLV2_VALUE_URI, SLV2_VALUE_STRING, SLV2_VALUE_INT, - SLV2_VALUE_FLOAT + SLV2_VALUE_FLOAT, + SLV2_VALUE_GUI } SLV2ValueType; struct _SLV2Value { SLV2ValueType type; char* str_val; ///< always present union { - int int_val; - float float_val; + int int_val; + float float_val; + SLV2GUIType gui_type_val; } val; }; SLV2Value slv2_value_new(SLV2ValueType type, const char* val); + #ifdef __cplusplus } #endif |