proxy: subclass from WpObject to allow attaching interfaces dynamically

This commit is contained in:
George Kiagiadakis
2019-04-17 16:12:03 +03:00
parent ce7f9002cd
commit 87d60a80aa
2 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ enum {
static guint signals[N_SIGNALS];
G_DEFINE_TYPE (WpProxy, wp_proxy, G_TYPE_OBJECT);
G_DEFINE_TYPE (WpProxy, wp_proxy, wp_object_get_type ());
static void
spa_dict_to_hashtable (const struct spa_dict * dict, GHashTable * htable)

View File

@@ -9,13 +9,14 @@
#ifndef __WP_PROXY_H__
#define __WP_PROXY_H__
#include "object.h"
#include "proxy-registry.h"
G_BEGIN_DECLS
struct pw_proxy;
G_DECLARE_FINAL_TYPE (WpProxy, wp_proxy, WP, PROXY, GObject)
G_DECLARE_FINAL_TYPE (WpProxy, wp_proxy, WP, PROXY, WpObject)
guint32 wp_proxy_get_id (WpProxy * self);
guint32 wp_proxy_get_parent_id (WpProxy * self);