Lines Matching refs:list
95 * tep_plugin_list_options - get list of plugin options
97 * Returns an array of char strings that list the currently registered
98 * plugin options in the format of <plugin>:<option>. This list can be
110 char **list = NULL;
117 char **temp = list;
124 list = realloc(list, count + 2);
125 if (!list) {
126 list = temp;
130 list[count++] = name;
131 list[count] = NULL;
134 return list;
138 free(list[count]);
139 free(list);
144 void tep_plugin_free_options_list(char **list)
148 if (!list)
151 if (list == INVALID_PLUGIN_LIST_OPTION)
154 for (i = 0; list[i]; i++)
155 free(list[i]);
157 free(list);
398 * Writes a list of options into trace_seq @s.
422 * tep_print_plugins - print out the list of plugins loaded
426 * @list: The list of plugins (usually returned by tep_load_plugins()
428 * Writes to the trace_seq @s the list of plugins (files) that is
434 const struct tep_plugin_list *list)
436 while (list) {
437 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix);
438 list = list->next;
449 struct tep_plugin_list *list;
489 list = malloc(sizeof(*list));
490 if (!list) {
495 list->next = *plugin_list;
496 list->handle = handle;
497 list->name = plugin;
498 *plugin_list = list;
640 struct tep_plugin_list *list = NULL;
642 tep_load_plugins_hook(tep, ".so", load_plugin, &list);
643 return list;
699 struct tep_plugin_list *list;
702 list = plugin_list;
703 plugin_list = list->next;
704 func = dlsym(list->handle, TEP_PLUGIN_UNLOADER_NAME);
707 dlclose(list->handle);
708 free(list->name);
709 free(list);