mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: handle monitor sources
This commit is contained in:
parent
c49771150c
commit
8759ceb551
2 changed files with 105 additions and 36 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue