registry: hide again the WpCore struct, separate registry and core better

This commit is contained in:
George Kiagiadakis
2020-02-17 18:31:03 +02:00
parent 0b55729e06
commit c46a48d13f
9 changed files with 75 additions and 69 deletions

View File

@@ -120,7 +120,7 @@ proxy_event_bound (void *data, uint32_t global_id)
if (!priv->global) {
g_autoptr (WpCore) core = g_weak_ref_get (&priv->core);
priv->global = wp_registry_prepare_new_global (&core->registry,
priv->global = wp_registry_prepare_new_global (wp_core_get_registry (core),
global_id, PW_PERM_RWX, WP_GLOBAL_FLAG_OWNED_BY_PROXY,
G_TYPE_FROM_INSTANCE (self), self, NULL);
}