Lines Matching refs:plugin

31 	char				*plugin;  member
164 char *plugin; in update_option() local
168 plugin = strdup(option->plugin_alias); in update_option()
169 if (!plugin) in update_option()
173 plugin = strdup(file); in update_option()
174 if (!plugin) in update_option()
176 p = strstr(plugin, "."); in update_option()
183 if (!op->plugin) in update_option()
185 if (strcmp(op->plugin, plugin) != 0) in update_option()
198 if (op->plugin) in update_option()
208 free(plugin); in update_option()
257 static int parse_option_name(char **option, char **plugin) in parse_option_name() argument
261 *plugin = NULL; in parse_option_name()
264 *plugin = *option; in parse_option_name()
274 find_registered_option(const char *plugin, const char *option) in find_registered_option() argument
287 if (plugin && strcmp(plugin, op_plugin) != 0) in find_registered_option()
299 static int process_option(const char *plugin, const char *option, const char *val) in process_option() argument
303 op = find_registered_option(plugin, option); in process_option()
323 char *plugin; in tep_plugin_add_option() local
329 if (parse_option_name(&option_str, &plugin) < 0) in tep_plugin_add_option()
335 if ((!plugin || !op->plugin) && plugin != op->plugin) in tep_plugin_add_option()
337 if (plugin && strcmp(plugin, op->plugin) != 0) in tep_plugin_add_option()
352 free(plugin); in tep_plugin_add_option()
355 plugin = op->plugin; in tep_plugin_add_option()
366 op->plugin = plugin; in tep_plugin_add_option()
379 return process_option(plugin, option_str, val); in tep_plugin_add_option()
382 free(plugin); in tep_plugin_add_option()
451 char *plugin; in load_plugin() local
455 ret = asprintf(&plugin, "%s/%s", path, file); in load_plugin()
461 handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL); in load_plugin()
464 plugin, dlerror()); in load_plugin()
485 TEP_PLUGIN_LOADER_NAME, plugin, dlerror()); in load_plugin()
497 list->name = plugin; in load_plugin()
500 pr_stat("registering plugin: %s", plugin); in load_plugin()
505 free(plugin); in load_plugin()