9 #include "plugin_options.h"
10 #include "plugin_support.h"
13 plugin_options_parse_str(DCPluginSupportContext
* const dcps_context
,
16 DCPluginSupport
*dcps
= NULL
;
21 assert(dcps_context
!= NULL
);
23 if (*(plugin_file
= str
) == 0) {
28 if ((tmp
= strchr(arg
, ',')) != NULL
) {
31 if (dcps
== NULL
&& (dcps
= plugin_support_new(plugin_file
)) == NULL
) {
34 if (plugin_support_add_option(dcps
, arg
) != 0) {
39 return plugin_support_context_insert(dcps_context
, dcps
);