Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-lib] Move mms_transfer_list_log definition to mms-lib
It makes more sense to define it where interface is defined,
rather than on the implementation side.
  • Loading branch information
monich committed Nov 5, 2019
1 parent a596786 commit 10b1994
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
7 changes: 5 additions & 2 deletions mms-lib/src/mms_transfer_list.c
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2013-2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2019 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -16,7 +17,9 @@

/* Logging */
#define GLOG_MODULE_NAME mms_transfer_list_log
#include "mms_lib_log.h"
#include <gutil_log.h>
GLOG_MODULE_DEFINE("mms-transfer-list");

G_DEFINE_ABSTRACT_TYPE(MMSTransferList, mms_transfer_list, G_TYPE_OBJECT)

Expand Down
6 changes: 3 additions & 3 deletions mms-lib/test/common/test_transfer_list.c
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2019 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -17,7 +18,6 @@
/* Logging */
#define GLOG_MODULE_NAME mms_transfer_list_log
#include <gutil_log.h>
GLOG_MODULE_DEFINE("mms-transfer-list-test");

/* Class definition */
typedef MMSTransferListClass MMSTransferListTestClass;
Expand Down
11 changes: 3 additions & 8 deletions mms-transfer-list-dbus/src/mms_transfer_list_dbus.c
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2019 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -18,12 +19,6 @@

#include <gutil_strv.h>

/* Log module */
#define GLOG_MODULE_NAME mms_transfer_list_log
#include "mms_lib_log.h"
#include <gutil_log.h>
GLOG_MODULE_DEFINE("mms-transfer-list");

/* Generated code */
#include "org.nemomobile.MmsEngine.TransferList.h"

Expand Down
8 changes: 5 additions & 3 deletions mms-transfer-list-dbus/src/mms_transfer_list_dbus_log.h
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2019 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -16,8 +17,9 @@
#ifndef JOLLA_MMS_TRANSFER_LIST_DBUS_LOG_H
#define JOLLA_MMS_TRANSFER_LIST_DBUS_LOG_H

#define MMS_LOG_MODULE_NAME mms_transfer_list_log
#define GLOG_MODULE_NAME mms_transfer_list_log
#include "mms_lib_log.h"
#include <gutil_log.h>

#endif /* JOLLA_MMS_TRANSFER_LIST_DBUS_LOG_H */

Expand Down

0 comments on commit 10b1994

Please sign in to comment.