Files
wireplumber/lib/wp/interface-impl.h
2019-04-12 12:53:54 +03:00

43 lines
1.1 KiB
C

/* WirePlumber
*
* Copyright © 2019 Collabora Ltd.
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef __WP_INTERFACE_IMPL_H__
#define __WP_INTERFACE_IMPL_H__
#include <glib-object.h>
G_BEGIN_DECLS
G_DECLARE_DERIVABLE_TYPE (WpInterfaceImpl, wp_interface_impl, WP, INTERFACE_IMPL, GObject)
struct _WpInterfaceImplClass
{
GObjectClass parent_class;
/**
* get_prerequisites:
* @self: the interface implementation instance
* @n_prerequisites: (out): the number of elements in the returned array
*
* Returns: (array length=n_prerequisites) (transfer none): the types that are
* required by this interface implementation
*/
GType *(*get_prerequisites) (WpInterfaceImpl * self, guint * n_prerequisites);
};
void wp_interface_impl_set_object (WpInterfaceImpl * self, GObject * object);
GObject * wp_interface_impl_get_object (WpInterfaceImpl * self);
GObject * wp_interface_impl_get_sibling (WpInterfaceImpl * self,
GType interface);
GType * wp_interface_impl_get_prerequisites (WpInterfaceImpl * self,
guint * n_prerequisites);
G_END_DECLS
#endif