Files
wireplumber/lib/wp/module.h
2020-02-19 10:43:07 +02:00

42 lines
816 B
C

/* WirePlumber
*
* Copyright © 2019 Collabora Ltd.
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_MODULE_H__
#define __WIREPLUMBER_MODULE_H__
#include "core.h"
G_BEGIN_DECLS
/**
* WP_TYPE_MODULE:
*
* The #WpModule #GType
*/
#define WP_TYPE_MODULE (wp_module_get_type ())
WP_API
G_DECLARE_FINAL_TYPE (WpModule, wp_module, WP, MODULE, GObject)
WP_API
WpModule * wp_module_load (WpCore * core, const gchar * abi,
const gchar * module_name, GVariant * args, GError ** error);
WP_API
GVariant * wp_module_get_properties (WpModule * self);
WP_API
WpCore * wp_module_get_core (WpModule * self);
WP_API
void wp_module_set_destroy_callback (WpModule * self, GDestroyNotify callback,
gpointer data);
G_END_DECLS
#endif