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:
David Coles 2024-06-25 15:55:24 -07:00 committed by Wim Taymans
parent dd652d01b8
commit a97e8b6d1f

View file

@ -35,12 +35,12 @@ struct spa_handle {
* *
* \param handle a spa_handle * \param handle a spa_handle
* \param type the interface type * \param type the interface type
* \param interface result to hold the interface. * \param iface result to hold the interface.
* \return 0 on success * \return 0 on success
* -ENOTSUP when there are no interfaces * -ENOTSUP when there are no interfaces
* -EINVAL when handle or info is NULL * -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 * Clean up the memory of \a handle. After this, \a handle should not be used
* anymore. * anymore.