summaryrefslogtreecommitdiff
path: root/libs/midi++2
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-29 19:01:16 +0200
committerRobin Gareus <robin@gareus.org>2016-10-29 19:57:43 +0200
commit0332c127cd54b9386bb59eb0ec18c49917c0cf57 (patch)
treeb736d0023348d18158b990b6b42627c10d067cee /libs/midi++2
parent06700cb2f48b8da62b56d5cce4deb50cac029e6a (diff)
Allow to dynamically un/load Midnam Patches
Diffstat (limited to 'libs/midi++2')
-rw-r--r--libs/midi++2/midi++/midnam_patch.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h
index 683f52f84d..f6f5f12edf 100644
--- a/libs/midi++2/midi++/midnam_patch.h
+++ b/libs/midi++2/midi++/midnam_patch.h
@@ -469,9 +469,10 @@ public:
virtual ~MIDINameDocument() {};
const std::string& file_path () const { return _file_path; }
-
const std::string& author() const { return _author; }
+
void set_author(const std::string& author) { _author = author; }
+ void set_file_path(const std::string& file_path) { _file_path = file_path; }
boost::shared_ptr<MasterDeviceNames> master_device_names(const std::string& model);
@@ -483,7 +484,7 @@ public:
int set_state (const XMLTree&, const XMLNode&);
private:
- const std::string _file_path;
+ std::string _file_path;
std::string _author;
MasterDeviceNamesList _master_device_names_list;
MasterDeviceNames::Models _all_models;