PluginFeature.rankCompareFunc

int rankCompareFunc(const(void) * p1 = null, const(void) * p2 = null)

Compares the two given #GstPluginFeature instances. This function can be used as a #GCompareFunc when sorting by rank and then by name.

Parameters

p1a #GstPluginFeature
p2a #GstPluginFeature

Returns

negative value if the rank of p1 > the rank of p2 or the ranks are

equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1