2019-05-17 13:08:45 +03:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2019 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
2019-05-31 12:13:01 +03:00
|
|
|
* SPDX-License-Identifier: MIT
|
2019-05-17 13:08:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WIREPLUMBER_MODULE_H__
|
|
|
|
|
#define __WIREPLUMBER_MODULE_H__
|
|
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2020-02-17 15:39:19 +02:00
|
|
|
/**
|
|
|
|
|
* WP_TYPE_MODULE:
|
|
|
|
|
*
|
|
|
|
|
* The #WpModule #GType
|
|
|
|
|
*/
|
2019-05-17 13:08:45 +03:00
|
|
|
#define WP_TYPE_MODULE (wp_module_get_type ())
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2019-05-17 13:08:45 +03:00
|
|
|
G_DECLARE_FINAL_TYPE (WpModule, wp_module, WP, MODULE, GObject)
|
|
|
|
|
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2019-05-17 13:08:45 +03:00
|
|
|
WpModule * wp_module_load (WpCore * core, const gchar * abi,
|
|
|
|
|
const gchar * module_name, GVariant * args, GError ** error);
|
|
|
|
|
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2020-02-17 15:39:19 +02:00
|
|
|
GVariant * wp_module_get_properties (WpModule * self);
|
2020-01-16 18:50:07 +02:00
|
|
|
|
|
|
|
|
WP_API
|
2019-07-10 11:15:33 -04:00
|
|
|
WpCore * wp_module_get_core (WpModule * self);
|
2019-05-17 13:08:45 +03:00
|
|
|
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_API
|
2020-02-17 15:39:19 +02:00
|
|
|
void wp_module_set_destroy_callback (WpModule * self, GDestroyNotify callback,
|
2019-05-17 13:08:45 +03:00
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|