shared-simtech: use G_DECLARE|DEFINE_INTERFACE() macros

This commit is contained in:
Aleksander Morgado
2024-05-06 13:45:39 +00:00
parent 4afb6a3172
commit 218d6d2c58
4 changed files with 14 additions and 37 deletions
+3 -9
View File
@@ -27,14 +27,10 @@
#include "mm-iface-modem-location.h"
#include "mm-iface-modem-voice.h"
#define MM_TYPE_SHARED_SIMTECH (mm_shared_simtech_get_type ())
#define MM_SHARED_SIMTECH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_SHARED_SIMTECH, MMSharedSimtech))
#define MM_IS_SHARED_SIMTECH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_SHARED_SIMTECH))
#define MM_SHARED_SIMTECH_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_SHARED_SIMTECH, MMSharedSimtech))
#define MM_TYPE_SHARED_SIMTECH mm_shared_simtech_get_type ()
G_DECLARE_INTERFACE (MMSharedSimtech, mm_shared_simtech, MM, SHARED_SIMTECH, MMIfaceModem)
typedef struct _MMSharedSimtech MMSharedSimtech;
struct _MMSharedSimtech {
struct _MMSharedSimtechInterface {
GTypeInterface g_iface;
/* Peek location interface of the parent class of the object */
@@ -44,8 +40,6 @@ struct _MMSharedSimtech {
MMIfaceModemVoiceInterface * (* peek_parent_voice_interface) (MMSharedSimtech *self);
};
GType mm_shared_simtech_get_type (void);
/*****************************************************************************/
/* Location interface */