shared-simtech: use G_DECLARE|DEFINE_INTERFACE() macros
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user