Commit ff0035fa authored by Slava Monich's avatar Slava Monich

[mms-lib] Better type checking

parent 66bb88aa
......@@ -17,6 +17,12 @@
#include "mms_lib_types.h"
/* Instance */
struct mms_connman {
GObject object;
};
/* Class */
typedef struct mms_connman_class {
GObjectClass parent;
char* (*fn_default_imsi)(MMSConnMan* cm);
......
......@@ -56,6 +56,11 @@ typedef enum _mmm_delivery_status {
/* Read status */
typedef MMSReadStatus MMS_READ_STATUS;
/* Instance */
struct mms_handler {
GObject object;
};
/* Class */
typedef struct mms_handler_class {
GObjectClass parent;
......
......@@ -64,8 +64,8 @@ typedef struct mms_attachment_info {
} MMSAttachmentInfo;
/* Types */
typedef GObject MMSHandler;
typedef GObject MMSConnMan;
typedef struct mms_handler MMSHandler;
typedef struct mms_connman MMSConnMan;
typedef struct mms_log_module MMSLogModule;
typedef struct mms_dispatcher MMSDispatcher;
typedef struct mms_connection MMSConnection;
......
......@@ -26,7 +26,7 @@ MMS_LOG_MODULE_DEFINE("mms-ofono-connman");
typedef MMSConnManClass MMSOfonoConnManClass;
typedef struct mms_ofono_connman {
GObject cm;
MMSConnMan cm;
guint ofono_watch_id;
GDBusConnection* bus;
MMSOfonoManager* man;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment