[gnome-software] trivial: Use custom error domains in plugins



commit 0da18b2062c6f616afb25183abb4dcf4d6e795d7
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 8 10:48:57 2017 +0000

    trivial: Use custom error domains in plugins

 plugins/core/Makefile.am                   |    3 +++
 plugins/dpkg/Makefile.am                   |    1 +
 plugins/dummy/Makefile.am                  |    1 +
 plugins/epiphany/Makefile.am               |    1 +
 plugins/external-appstream/Makefile.am     |    3 +++
 plugins/fedora-distro-upgrades/Makefile.am |    3 +++
 plugins/fedora-tagger-usage/Makefile.am    |    3 +++
 plugins/flatpak/Makefile.am                |    1 +
 plugins/fwupd/Makefile.am                  |    1 +
 plugins/limba/Makefile.am                  |    3 +++
 plugins/modalias/Makefile.am               |    1 +
 plugins/odrs/Makefile.am                   |    3 +++
 plugins/ostree/Makefile.am                 |    3 +++
 plugins/packagekit/Makefile.am             |    1 +
 plugins/repos/Makefile.am                  |    1 +
 plugins/shell-extensions/Makefile.am       |    3 +++
 plugins/snap/Makefile.am                   |    3 +++
 plugins/steam/Makefile.am                  |    3 +++
 plugins/ubuntu-reviews/Makefile.am         |    3 +++
 plugins/ubuntuone/Makefile.am              |    3 +++
 20 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/plugins/core/Makefile.am b/plugins/core/Makefile.am
index d070e00..a6972b5 100644
--- a/plugins/core/Makefile.am
+++ b/plugins/core/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPlugin\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES =                                   \
        libgs_plugin_appstream.la                       \
diff --git a/plugins/dpkg/Makefile.am b/plugins/dpkg/Makefile.am
index 1daa27d..3fc2b88 100644
--- a/plugins/dpkg/Makefile.am
+++ b/plugins/dpkg/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginDpkg\"                 \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"
 
diff --git a/plugins/dummy/Makefile.am b/plugins/dummy/Makefile.am
index 67c9fcf..b031673 100644
--- a/plugins/dummy/Makefile.am
+++ b/plugins/dummy/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginDummy\"                \
        -DDATADIR=\"$(datadir)\"                        \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"        \
diff --git a/plugins/epiphany/Makefile.am b/plugins/epiphany/Makefile.am
index 7de7e8b..6a42427 100644
--- a/plugins/epiphany/Makefile.am
+++ b/plugins/epiphany/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginEpiphany\"             \
        -DTESTDATADIR=\""$(top_srcdir)/data"\"          \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"        \
        -DLOCALPLUGINDIR_CORE=\""$(top_builddir)/plugins/core/.libs"\"
diff --git a/plugins/external-appstream/Makefile.am b/plugins/external-appstream/Makefile.am
index be8f696..3e323cb 100644
--- a/plugins/external-appstream/Makefile.am
+++ b/plugins/external-appstream/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginExternalAppstream\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_external-appstream.la
 
diff --git a/plugins/fedora-distro-upgrades/Makefile.am b/plugins/fedora-distro-upgrades/Makefile.am
index fb13c7f..ace746d 100644
--- a/plugins/fedora-distro-upgrades/Makefile.am
+++ b/plugins/fedora-distro-upgrades/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginFedoraDistroUpgrades\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_fedora-distro-upgrades.la
 
diff --git a/plugins/fedora-tagger-usage/Makefile.am b/plugins/fedora-tagger-usage/Makefile.am
index 565626e..999a970 100644
--- a/plugins/fedora-tagger-usage/Makefile.am
+++ b/plugins/fedora-tagger-usage/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginFedoraTaggerUsage\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_fedora-tagger-usage.la
 
diff --git a/plugins/flatpak/Makefile.am b/plugins/flatpak/Makefile.am
index 17848d9..4f19029 100644
--- a/plugins/flatpak/Makefile.am
+++ b/plugins/flatpak/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginFlatpak\"              \
        -DSYSCONFDIR=\""$(sysconfdir)"\"                \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"        \
diff --git a/plugins/fwupd/Makefile.am b/plugins/fwupd/Makefile.am
index 5d1e9d2..09a8920 100644
--- a/plugins/fwupd/Makefile.am
+++ b/plugins/fwupd/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginFwupd\"                \
        -DSYSCONFDIR=\""$(sysconfdir)"\"                \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"
diff --git a/plugins/limba/Makefile.am b/plugins/limba/Makefile.am
index f011086..c146d12 100644
--- a/plugins/limba/Makefile.am
+++ b/plugins/limba/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginLimba\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_limba.la
 
diff --git a/plugins/modalias/Makefile.am b/plugins/modalias/Makefile.am
index 1ab2298..4d9a5fd 100644
--- a/plugins/modalias/Makefile.am
+++ b/plugins/modalias/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginModalias\"             \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"        \
        -DLOCALPLUGINDIR_CORE=\""$(top_builddir)/plugins/core/.libs"\"
diff --git a/plugins/odrs/Makefile.am b/plugins/odrs/Makefile.am
index ae779ae..aad636e 100644
--- a/plugins/odrs/Makefile.am
+++ b/plugins/odrs/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginOdrs\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_odrs.la
 
diff --git a/plugins/ostree/Makefile.am b/plugins/ostree/Makefile.am
index 2877aa2..09bb9ad 100644
--- a/plugins/ostree/Makefile.am
+++ b/plugins/ostree/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginOstree\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_ostree.la
 
diff --git a/plugins/packagekit/Makefile.am b/plugins/packagekit/Makefile.am
index 56b02ba..c4bc97f 100644
--- a/plugins/packagekit/Makefile.am
+++ b/plugins/packagekit/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginPackageKit\"           \
        -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE  \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"
diff --git a/plugins/repos/Makefile.am b/plugins/repos/Makefile.am
index f4e1be4..bf4b1d8 100644
--- a/plugins/repos/Makefile.am
+++ b/plugins/repos/Makefile.am
@@ -1,4 +1,5 @@
 AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginRepos\"                \
        -DTESTDATADIR=\""$(srcdir)/tests"\"             \
        -DLOCALPLUGINDIR=\""$(builddir)/.libs"\"
 
diff --git a/plugins/shell-extensions/Makefile.am b/plugins/shell-extensions/Makefile.am
index b3fc7c2..f3604bd 100644
--- a/plugins/shell-extensions/Makefile.am
+++ b/plugins/shell-extensions/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginShellExtensions\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_shell-extensions.la
 libgs_plugin_shell_extensions_la_SOURCES = gs-plugin-shell-extensions.c
diff --git a/plugins/snap/Makefile.am b/plugins/snap/Makefile.am
index 88fb121..95427d4 100644
--- a/plugins/snap/Makefile.am
+++ b/plugins/snap/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginSnap\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_snap.la
 
diff --git a/plugins/steam/Makefile.am b/plugins/steam/Makefile.am
index 30d128a..3fbcf16 100644
--- a/plugins/steam/Makefile.am
+++ b/plugins/steam/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginSteam\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_steam.la
 
diff --git a/plugins/ubuntu-reviews/Makefile.am b/plugins/ubuntu-reviews/Makefile.am
index 24da6b9..9c11913 100644
--- a/plugins/ubuntu-reviews/Makefile.am
+++ b/plugins/ubuntu-reviews/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginUbuntuReviews\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_ubuntu-reviews.la
 
diff --git a/plugins/ubuntuone/Makefile.am b/plugins/ubuntuone/Makefile.am
index d3774a5..1c903fd 100644
--- a/plugins/ubuntuone/Makefile.am
+++ b/plugins/ubuntuone/Makefile.am
@@ -1,3 +1,6 @@
+AM_CPPFLAGS =                                          \
+       -DG_LOG_DOMAIN=\"GsPluginUbuntuOne\"
+
 plugindir = $(GS_PLUGIN_DIR)
 plugin_LTLIBRARIES = libgs_plugin_ubuntuone.la
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]