pulse-server: handle monitor sources

This commit is contained in:
Wim Taymans 2020-10-26 18:10:05 +01:00
parent c49771150c
commit 8759ceb551
2 changed files with 105 additions and 36 deletions

View file

@ -273,3 +273,11 @@ enum {
SUBSCRIPTION_EVENT_REMOVE = 0x0020U,
SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U
};
static inline bool pw_endswith(const char *s, const char *sfx)
{
size_t l1, l2;
l1 = strlen(s);
l2 = strlen(sfx);
return l1 >= l2 && strcmp(s + l1 - l2, sfx) == 0;
}