Skip to content
Snippets Groups Projects
Commit eeccb240 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

properties: add wp_properties_sort()

Depends on pipewire!555 to avoid breaking stuff
parent 95bb22ef
No related branches found
No related tags found
No related merge requests found
......@@ -848,6 +848,16 @@ wp_properties_iterator_item_get_value (const GValue * item)
return dict_item->value;
}
void
wp_properties_sort (WpProperties * self)
{
g_return_if_fail (self != NULL);
g_return_if_fail (!(self->flags & FLAG_IS_DICT));
g_return_if_fail (!(self->flags & FLAG_NO_OWNERSHIP));
return spa_dict_qsort (&self->props->dict);
}
/**
* wp_properties_peek_dict:
* @self: a properties object
......
......@@ -144,6 +144,11 @@ const gchar * wp_properties_iterator_item_get_key (const GValue * item);
WP_API
const gchar * wp_properties_iterator_item_get_value (const GValue * item);
/* sort */
WP_API
void wp_properties_sort (WpProperties * self);
/* convert */
WP_API
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment