/* Get a pointer to a list of filters.  */
static GList** get_filter_list(filter_list_type_t list_type)
/* Get a pointer to a list of filters.  */
static GList** get_filter_list(filter_list_type_t list_type)
{
  GList **flpp;
  switch (list_type) {
  case CFILTER_LIST:
    flpp = &capture_filters;
    break;
  case DFILTER_LIST:
    flpp = &display_filters;
    break;
  case CFILTER_EDITED_LIST:
    flpp = &capture_edited_filters;
    break;
  case DFILTER_EDITED_LIST:
    flpp = &display_edited_filters;
    break;
  default:
    g_assert_not_reached();
    flpp = NULL;
  }
  return flpp;
}