Commit ab9c699d authored by Slava Monich's avatar Slava Monich

[mms-lib] Define abstract types where appropriate

parent 289c94d3
/* /*
* Copyright (C) 2013-2015 Jolla Ltd. * Copyright (C) 2013-2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com> * Contact: Slava Monich <slava.monich@jolla.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define MMS_LOG_MODULE_NAME mms_connection_log #define MMS_LOG_MODULE_NAME mms_connection_log
#include "mms_lib_log.h" #include "mms_lib_log.h"
G_DEFINE_TYPE(MMSConnection, mms_connection, G_TYPE_OBJECT); G_DEFINE_ABSTRACT_TYPE(MMSConnection, mms_connection, G_TYPE_OBJECT)
#define MMS_CONNECTION_GET_CLASS(obj) \ #define MMS_CONNECTION_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS((obj), MMS_TYPE_CONNECTION, MMSConnectionClass)) (G_TYPE_INSTANCE_GET_CLASS((obj), MMS_TYPE_CONNECTION, MMSConnectionClass))
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define MMS_LOG_MODULE_NAME mms_connman_log #define MMS_LOG_MODULE_NAME mms_connman_log
#include "mms_lib_log.h" #include "mms_lib_log.h"
G_DEFINE_TYPE(MMSConnMan, mms_connman, G_TYPE_OBJECT); G_DEFINE_ABSTRACT_TYPE(MMSConnMan, mms_connman, G_TYPE_OBJECT)
#define MMS_CONNMAN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ #define MMS_CONNMAN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
MMS_TYPE_CONNMAN, MMSConnMan)) MMS_TYPE_CONNMAN, MMSConnMan))
#define MMS_CONNMAN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ #define MMS_CONNMAN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define MMS_LOG_MODULE_NAME mms_handler_log #define MMS_LOG_MODULE_NAME mms_handler_log
#include "mms_lib_log.h" #include "mms_lib_log.h"
G_DEFINE_TYPE(MMSHandler, mms_handler, G_TYPE_OBJECT); G_DEFINE_ABSTRACT_TYPE(MMSHandler, mms_handler, G_TYPE_OBJECT)
#define MMS_HANDLER(obj) \ #define MMS_HANDLER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), MMS_TYPE_HANDLER, MMSHandler)) (G_TYPE_CHECK_INSTANCE_CAST((obj), MMS_TYPE_HANDLER, MMSHandler))
......
...@@ -33,7 +33,7 @@ struct mms_task_priv { ...@@ -33,7 +33,7 @@ struct mms_task_priv {
time_t wakeup_time; /* Wake up time (if sleeping) */ time_t wakeup_time; /* Wake up time (if sleeping) */
}; };
G_DEFINE_TYPE(MMSTask, mms_task, G_TYPE_OBJECT) G_DEFINE_ABSTRACT_TYPE(MMSTask, mms_task, G_TYPE_OBJECT)
#define MMS_TASK(obj) \ #define MMS_TASK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), MMS_TYPE_TASK, MMSTask)) (G_TYPE_CHECK_INSTANCE_CAST((obj), MMS_TYPE_TASK, MMSTask))
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define MMS_LOG_MODULE_NAME mms_transfer_list_log #define MMS_LOG_MODULE_NAME mms_transfer_list_log
#include "mms_lib_log.h" #include "mms_lib_log.h"
G_DEFINE_TYPE(MMSTransferList, mms_transfer_list, G_TYPE_OBJECT) G_DEFINE_ABSTRACT_TYPE(MMSTransferList, mms_transfer_list, G_TYPE_OBJECT)
#define MMS_TRANSFER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ #define MMS_TRANSFER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
MMS_TYPE_TRANSFER_LIST, MMSTransferList)) MMS_TYPE_TRANSFER_LIST, MMSTransferList))
......
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