summaryrefslogtreecommitdiff
path: root/plugins/sound/msd-sound-manager.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-22 10:54:41 +0100
committerraveit65 <[email protected]>2021-02-12 12:38:34 +0100
commitabc0fa87d0294de0eda875cbb0a1f11fd5cae521 (patch)
treee8db54bb16a4cf762330adf657f1a41838c7cca2 /plugins/sound/msd-sound-manager.h
parent8e97c607800efb6e7a6c1d41f04da2f4702ad6a0 (diff)
downloadmate-settings-daemon-abc0fa87d0294de0eda875cbb0a1f11fd5cae521.tar.bz2
mate-settings-daemon-abc0fa87d0294de0eda875cbb0a1f11fd5cae521.tar.xz
sound: promote MsdSoundManager class to final type
Diffstat (limited to 'plugins/sound/msd-sound-manager.h')
-rw-r--r--plugins/sound/msd-sound-manager.h42
1 files changed, 12 insertions, 30 deletions
diff --git a/plugins/sound/msd-sound-manager.h b/plugins/sound/msd-sound-manager.h
index 8f73bb4..22dd525 100644
--- a/plugins/sound/msd-sound-manager.h
+++ b/plugins/sound/msd-sound-manager.h
@@ -18,44 +18,26 @@
*
*/
-#ifndef __MSD_SOUND_MANAGER_H
-#define __MSD_SOUND_MANAGER_H
+#ifndef MSD_SOUND_MANAGER_H
+#define MSD_SOUND_MANAGER_H
#include <glib.h>
#include <glib-object.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+G_BEGIN_DECLS
-#define MSD_TYPE_SOUND_MANAGER (msd_sound_manager_get_type ())
-#define MSD_SOUND_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_SOUND_MANAGER, MsdSoundManager))
-#define MSD_SOUND_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), MSD_TYPE_SOUND_MANAGER, MsdSoundManagerClass))
-#define MSD_IS_SOUND_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_SOUND_MANAGER))
-#define MSD_IS_SOUND_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_SOUND_MANAGER))
-#define MSD_SOUND_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_SOUND_MANAGER, MsdSoundManagerClass))
+#define MSD_TYPE_SOUND_MANAGER (msd_sound_manager_get_type ())
-typedef struct MsdSoundManagerPrivate MsdSoundManagerPrivate;
+G_DECLARE_FINAL_TYPE (MsdSoundManager, msd_sound_manager,
+ MSD, SOUND_MANAGER, GObject)
-typedef struct
-{
- GObject parent;
- MsdSoundManagerPrivate *priv;
-} MsdSoundManager;
+MsdSoundManager * msd_sound_manager_new (void);
-typedef struct
-{
- GObjectClass parent_class;
-} MsdSoundManagerClass;
+gboolean msd_sound_manager_start (MsdSoundManager *manager,
+ GError **error);
-GType msd_sound_manager_get_type (void) G_GNUC_CONST;
+void msd_sound_manager_stop (MsdSoundManager *manager);
-MsdSoundManager *msd_sound_manager_new (void);
-gboolean msd_sound_manager_start (MsdSoundManager *manager, GError **error);
-void msd_sound_manager_stop (MsdSoundManager *manager);
+G_END_DECLS
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __MSD_SOUND_MANAGER_H */
+#endif /* MSD_SOUND_MANAGER_H */