Lines Matching refs:list

103 	char **list = NULL;  in tep_plugin_list_options()  local
110 char **temp = list; in tep_plugin_list_options()
117 list = realloc(list, count + 2); in tep_plugin_list_options()
118 if (!list) { in tep_plugin_list_options()
119 list = temp; in tep_plugin_list_options()
123 list[count++] = name; in tep_plugin_list_options()
124 list[count] = NULL; in tep_plugin_list_options()
127 return list; in tep_plugin_list_options()
131 free(list[count]); in tep_plugin_list_options()
132 free(list); in tep_plugin_list_options()
137 void tep_plugin_free_options_list(char **list) in tep_plugin_free_options_list() argument
141 if (!list) in tep_plugin_free_options_list()
144 if (list == INVALID_PLUGIN_LIST_OPTION) in tep_plugin_free_options_list()
147 for (i = 0; list[i]; i++) in tep_plugin_free_options_list()
148 free(list[i]); in tep_plugin_free_options_list()
150 free(list); in tep_plugin_free_options_list()
263 const struct tep_plugin_list *list) in tep_print_plugins() argument
265 while (list) { in tep_print_plugins()
266 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); in tep_print_plugins()
267 list = list->next; in tep_print_plugins()
277 struct tep_plugin_list *list; in load_plugin() local
307 list = malloc(sizeof(*list)); in load_plugin()
308 if (!list) { in load_plugin()
313 list->next = *plugin_list; in load_plugin()
314 list->handle = handle; in load_plugin()
315 list->name = plugin; in load_plugin()
316 *plugin_list = list; in load_plugin()
424 struct tep_plugin_list *list = NULL; in tep_load_plugins() local
426 load_plugins(tep, ".so", load_plugin, &list); in tep_load_plugins()
427 return list; in tep_load_plugins()
434 struct tep_plugin_list *list; in tep_unload_plugins() local
437 list = plugin_list; in tep_unload_plugins()
438 plugin_list = list->next; in tep_unload_plugins()
439 func = dlsym(list->handle, TEP_PLUGIN_UNLOADER_NAME); in tep_unload_plugins()
442 dlclose(list->handle); in tep_unload_plugins()
443 free(list->name); in tep_unload_plugins()
444 free(list); in tep_unload_plugins()