This commit accomplishes three different things: - Makes it much less difficult to communicate service settings between the UI and the plugin. - Refactors some code and makes it cleaner and easier to modify to our needs (although there is still a lot of work to do on that front because of heavy code duplication issues between auto-config and the stream settings pane). - Significantly reatly reduces the number of times the json file has to be opened and parsed. This also kind of denotes a bit of a failure on the plugin communication aspect. The properties system is too limited and jank for a lot of things we would like to do at times.
7 lines
159 B
C++
7 lines
159 B
C++
#pragma once
|
|
|
|
#include <json11.hpp>
|
|
|
|
extern json11::Json get_services_json();
|
|
extern json11::Json get_service_from_json(json11::Json &root, const char *name);
|