diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-03 13:26:48 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-03 13:26:48 +0100 |
commit | 7785389e5015933067ec636623fc91987a81e928 (patch) | |
tree | a13c9d2cf12f32bbc62a456e7d3f7c460f7784aa /libs/ardour/ardour/lv2_extensions.h | |
parent | 1bf0ed533d10a49af8e361a64d278b713a129f59 (diff) |
Extend/update LV2 license interface
Diffstat (limited to 'libs/ardour/ardour/lv2_extensions.h')
-rw-r--r-- | libs/ardour/ardour/lv2_extensions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lv2_extensions.h b/libs/ardour/ardour/lv2_extensions.h index ebdf905fb3..755f1f0217 100644 --- a/libs/ardour/ardour/lv2_extensions.h +++ b/libs/ardour/ardour/lv2_extensions.h @@ -121,6 +121,8 @@ typedef struct { #define LV2_PLUGINLICENSE_URI "http://harrisonconsoles.com/lv2/license" #define LV2_PLUGINLICENSE_PREFIX LV2_PLUGINLICENSE_URI "#" #define LV2_PLUGINLICENSE__interface LV2_PLUGINLICENSE_PREFIX "interface" +#define LV2_PLUGINLICENSE__interface2 LV2_PLUGINLICENSE_PREFIX "interface2" + typedef struct _LV2_License_Interface { /* @return -1 if no license is needed; 0 if unlicensed, 1 if licensed */ @@ -133,6 +135,12 @@ typedef struct _LV2_License_Interface { const char* (*product_name)(LV2_Handle instance); /* @return link to website or webstore */ const char* (*store_url)(LV2_Handle instance); + /* interface2 ext: preferred location to install the license file, the caller needs to free this */ + char* (*preferred_license_file_path)(LV2_Handle instance); + /* interface2 ext: currently used license file (if any, may be NULL), the caller needs to free this */ + char* (*current_license_file_path)(LV2_Handle instance); + /* interface2 ext: free() allocated strings (licensee, license_file_paths) */ + void (*free)(char*); } LV2_License_Interface; /** |