mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Avoid using interface as a variable name
While not a reserved keyword, MSVC `#define interface struct`[1] which causes a compile error when including the `spa/support/plugin.h` header. While this can be worked around by `#undef interface`, it's also easy to just rename the local variable. [1]: https://stackoverflow.com/questions/25234203/what-is-the-interface-keyword-in-msvc
This commit is contained in:
parent
dd652d01b8
commit
a97e8b6d1f
1 changed files with 2 additions and 2 deletions
|
|
@ -35,12 +35,12 @@ struct spa_handle {
|
|||
*
|
||||
* \param handle a spa_handle
|
||||
* \param type the interface type
|
||||
* \param interface result to hold the interface.
|
||||
* \param iface result to hold the interface.
|
||||
* \return 0 on success
|
||||
* -ENOTSUP when there are no interfaces
|
||||
* -EINVAL when handle or info is NULL
|
||||
*/
|
||||
int (*get_interface) (struct spa_handle *handle, const char *type, void **interface);
|
||||
int (*get_interface) (struct spa_handle *handle, const char *type, void **iface);
|
||||
/**
|
||||
* Clean up the memory of \a handle. After this, \a handle should not be used
|
||||
* anymore.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue