mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
Make interface types a string
This is more in line with wayland and it allows us to create new interfaces in modules without having to add anything to the type enum. It also removes some lookups to map type_id to readable name in debug.
This commit is contained in:
parent
9657486a81
commit
f391353c7f
123 changed files with 791 additions and 1251 deletions
|
|
@ -22,6 +22,9 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <spa/support/dbus.h>
|
||||
#include <spa/support/cpu.h>
|
||||
|
||||
#include <pipewire/pipewire.h>
|
||||
#include <pipewire/global.h>
|
||||
|
||||
|
|
@ -206,7 +209,7 @@ static void test_support(void)
|
|||
struct pw_context *context;
|
||||
const struct spa_support *support;
|
||||
uint32_t n_support;
|
||||
uint32_t types[] = {
|
||||
const char * types[] = {
|
||||
SPA_TYPE_INTERFACE_DataSystem,
|
||||
SPA_TYPE_INTERFACE_DataLoop,
|
||||
SPA_TYPE_INTERFACE_System,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ static void test_core_abi(void)
|
|||
uint32_t version, size_t user_data_size);
|
||||
void * (*create_object) (void *object,
|
||||
const char *factory_name,
|
||||
uint32_t type,
|
||||
const char *type,
|
||||
uint32_t version,
|
||||
const struct spa_dict *props,
|
||||
size_t user_data_size);
|
||||
|
|
@ -101,14 +101,14 @@ static void test_registry_abi(void)
|
|||
struct spa_hook *listener,
|
||||
const struct pw_registry_events *events,
|
||||
void *data);
|
||||
void * (*bind) (void *object, uint32_t id, uint32_t type, uint32_t version,
|
||||
void * (*bind) (void *object, uint32_t id, const char *type, uint32_t version,
|
||||
size_t user_data_size);
|
||||
int (*destroy) (void *object, uint32_t id);
|
||||
} methods = { PW_VERSION_REGISTRY_METHODS, };
|
||||
struct {
|
||||
uint32_t version;
|
||||
void (*global) (void *object, uint32_t id,
|
||||
uint32_t permissions, uint32_t type, uint32_t version,
|
||||
uint32_t permissions, const char *type, uint32_t version,
|
||||
const struct spa_dict *props);
|
||||
void (*global_remove) (void *object, uint32_t id);
|
||||
} events = { PW_VERSION_REGISTRY_EVENTS, };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue