proxy: add API

This commit is contained in:
Julian Bouzas
2019-06-10 15:07:54 -04:00
parent 5a863fe50c
commit aa1ce5cdd4
10 changed files with 622 additions and 1 deletions

33
lib/wp/proxy.h Normal file
View File

@@ -0,0 +1,33 @@
/* WirePlumber
*
* Copyright © 2019 Collabora Ltd.
* @author Julian Bouzas <julian.bouzas@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_PROXY_H__
#define __WIREPLUMBER_PROXY_H__
#include <gio/gio.h>
#include "core.h"
G_BEGIN_DECLS
#define WP_TYPE_PROXY (wp_proxy_get_type ())
G_DECLARE_DERIVABLE_TYPE (WpProxy, wp_proxy, WP, PROXY, GObject)
/* The proxy base class */
struct _WpProxyClass
{
GObjectClass parent_class;
};
void wp_proxy_register (WpProxy * self);
WpCore *wp_proxy_get_core (WpProxy * self);
gpointer wp_proxy_get_pw_proxy (WpProxy * self);
G_END_DECLS
#endif