Implement settings interface for plugins
Add a fairly easy to use settings interface that can be passed to plugins, and replaced the old character string system that was being used before. The new data interface allows for an easier method of getting/altering settings for plugins, and is built to be serializable to/from JSON. Also, removed another wxFormBuilder file that was no longer in use.
This commit is contained in:
@@ -24,9 +24,9 @@ struct service_info {
|
||||
|
||||
const char *(*getname)(const char *locale);
|
||||
|
||||
void *(*create)(const char *settings, struct service_data *service);
|
||||
void *(*create)(obs_data_t settings, struct service_data *service);
|
||||
void (*destroy)(void *data);
|
||||
void (*config)(void *data, const char *settings);
|
||||
void (*config)(void *data, obs_data_t settings);
|
||||
|
||||
/* optional */
|
||||
const char *(*getdata)(const char *attribute);
|
||||
|
Reference in New Issue
Block a user