Hello community,
here is the log from the commit of package libcloudproviders for
openSUSE:Factory checked in at 2019-09-07 11:50:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcloudproviders (Old)
and /work/SRC/openSUSE:Factory/.libcloudproviders.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcloudproviders"
Sat Sep 7 11:50:26 2019 rev:4 rq:728487 version:0.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/libcloudproviders/libcloudproviders.changes
2018-03-09 10:41:03.578642079 +0100
+++
/work/SRC/openSUSE:Factory/.libcloudproviders.new.7948/libcloudproviders.changes
2019-09-07 11:50:26.498299529 +0200
@@ -1,0 +2,11 @@
+Tue Sep 3 18:48:19 UTC 2019 - Alexei Podvalsky <[email protected]>
+
+- Update to 0.3.0:
+ * Provide Vala bindings
+ * Fix dbus server path
+ * Use option for includedir
+ * Fix crash when using more than one file chooser
+ * Fix licensing
+- Add GObject Introspection and Vala binding
+
+-------------------------------------------------------------------
Old:
----
libcloudproviders-0.2.5.tar.xz
New:
----
libcloudproviders-0.3.0.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libcloudproviders.spec ++++++
--- /var/tmp/diff_new_pack.WMWP0C/_old 2019-09-07 11:50:26.986299460 +0200
+++ /var/tmp/diff_new_pack.WMWP0C/_new 2019-09-07 11:50:26.986299460 +0200
@@ -16,22 +16,26 @@
#
+%define _typelibdir %(pkg-config --variable=typelibdir
gobject-introspection-1.0)
+%define _girdir %(pkg-config --variable=girdir gobject-introspection-1.0)
Name: libcloudproviders
-Version: 0.2.5
+Version: 0.3.0
Release: 0
Summary: Library/Client to integrate cloud storage providers
License: LGPL-3.0-or-later
Group: System/GUI/GNOME
URL: https://gitlab.gnome.org/External/libcloudproviders
-Source:
https://gitlab.gnome.org/External/libcloudproviders/uploads/32bb0a808c397d55b6d72c61540c0171/libcloudproviders-0.2.5.tar.xz
+Source:
https://gitlab.gnome.org/World/libcloudproviders/uploads/e97a550ebbf85e753c4df5692a86b39d/libcloudproviders-0.3.0.tar.xz
Source99: %{name}-rpmlintrc
BuildRequires: gtk-doc
-BuildRequires: meson >= 0.40.0
+BuildRequires: meson >= 0.42.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gio-2.0) >= 2.51.2
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.51.2
+BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.51.2
BuildRequires: pkgconfig(systemd)
+BuildRequires: pkgconfig(vapigen)
%description
Cross desktop library for desktop integration of cloud storage
@@ -45,6 +49,16 @@
Cross desktop library for desktop integration of cloud storage
providers and sync tools.
+%package -n typelib-1_0-CloudProviders-0_3_0
+Summary: CloudProviders Introspection bindings
+Group: Development/Libraries/GNOME
+
+%description -n typelib-1_0-CloudProviders-0_3_0
+Cross desktop library for desktop integration of cloud storage
+providers and sync tools.
+
+This package provides the GObject Introspection bindings for cloudproviders.
+
%package devel
Summary: Development files for %{name}
Group: Development/Languages/C and C++
@@ -76,11 +90,19 @@
%doc CHANGELOG README.md
%{_libdir}/libcloudproviders.so.*
+%files -n typelib-1_0-CloudProviders-0_3_0
+%{_typelibdir}/*.typelib
+
%files devel
%{_datadir}/gtk-doc/html/%{name}/
%{_includedir}/cloudproviders/
%{_libdir}/libcloudproviders.so
%{_libdir}/pkgconfig/cloudproviders.pc
%{_libdir}/*.so
+%{_girdir}/*.gir
+%dir %{_datadir}/vala
+%dir %{_datadir}/vala/vapi
+%{_datadir}/vala/vapi/*.deps
+%{_datadir}/vala/vapi/*.vapi
%changelog
++++++ libcloudproviders-0.2.5.tar.xz -> libcloudproviders-0.3.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/CHANGELOG
new/libcloudproviders-0.3.0/CHANGELOG
--- old/libcloudproviders-0.2.5/CHANGELOG 2017-10-31 17:15:58.000000000
+0100
+++ new/libcloudproviders-0.3.0/CHANGELOG 2019-01-09 17:18:41.000000000
+0100
@@ -1,3 +1,17 @@
+0.3.0
+-----
+* Provide Vala bindings (Fernando da Silva)
+* Fix dbus server path (Fernando da Silva)
+* Use option for includedir (Jan Tojnar)
+* Fix crash when using more than one file chooser (Jan Alexander)
+
+0.2.5
+-----
+* Drop the daemon and do the cloud providers query client side.
+* Update the API with proper prefixes as recommended for GObject libraries.
+* Convert DBUS functions to properties, to allow notify:: signals.
+* Add a flag for conditional install the tests.
+
0.1.0
-----
-- First release of libcloudproviders
+* First release of libcloudproviders
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/README.md
new/libcloudproviders-0.3.0/README.md
--- old/libcloudproviders-0.2.5/README.md 2017-10-31 17:15:58.000000000
+0100
+++ new/libcloudproviders-0.3.0/README.md 2019-01-09 17:18:41.000000000
+0100
@@ -4,42 +4,7 @@
their services. Clients such as file managers and desktop environments can then
provide integrated access to the cloud providers services.
-## cloudprovidersd
-
-cloudprovidersd is a daemon which keeps track of existing cloud providers and
their accounts.
-It provides the `org.freedesktop.CloudProviderManager` DBus object to interact
with.
-
-## libcloudprovider
-
-libcloudproviders is a glib based library that makes it easier to implement
-a cloud provider server or client.
-
-## Implementing support for sync clients
-
-Any cloud provider clients need to own a DBus name and export a
-`org.freedesktop.DBus.ObjectManager` object to it. For each account the cloud
-provider needs to export an individual object implementing the
-`org.freedesktop.CloudProvider.Account1` interface and register it with the
-object manager.
-
-An example implementation using libcloudprovider can be found in
-[test/testcloudproviderserver.c](test/testcloudproviderserver.c).
-
-## Implementing support for integrators
-
-Integrators should connect via to the `org.freedesktop.CloudProviderManager`
object
-and call the GetCloudProviders method on the
`org.freedesktop.CloudProvider.Manager1`
-interface. That method will return a tuple of the registered cloud providers
-bus name and the object path of their object manager.
-
-With the bus name and object path they can query the object manager for a list
-of accounts and can then interact with these though the
-`org.freedesktop.CloudProvider.Account1` interface.
-
-An example implementation using libcloudprovider can be found in
-[test/testcloudproviderclient.c](test/testcloudproviderclient.c).
-
## API Documentation
-See the [API documentation](https://csoriano.gitlab.io/libcloudprovidersweb/)
for further details.
-
+See the [API documentation](https://csoriano.gitlab.io/libcloudprovidersweb/)
for
+further details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/data/cloud-providers-dbus.xml
new/libcloudproviders-0.3.0/data/cloud-providers-dbus.xml
--- old/libcloudproviders-0.2.5/data/cloud-providers-dbus.xml 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/data/cloud-providers-dbus.xml 2019-01-09
17:18:41.000000000 +0100
@@ -3,18 +3,20 @@
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!--
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
+ This file is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
+ This file is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General
- Public License along with this library; if not, see
<http://www.gnu.org/licenses/>.
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: LGPL-3.0-or-later
-->
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name='org.freedesktop.CloudProviders.Provider'>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/meson.build
new/libcloudproviders-0.3.0/meson.build
--- old/libcloudproviders-0.2.5/meson.build 2017-10-31 17:15:58.000000000
+0100
+++ new/libcloudproviders-0.3.0/meson.build 2019-01-09 17:18:41.000000000
+0100
@@ -1,6 +1,6 @@
project ('libcloudproviders', 'c',
- version: '0.2.5',
- meson_version: '>=0.40.0',
+ version: '0.3.0',
+ meson_version: '>=0.42.0',
license: 'LGPL3+',
default_options: [
'c_std=gnu99',
@@ -46,7 +46,9 @@
bindir = get_option ('bindir')
datadir = get_option ('datadir')
servicedir = join_paths (datadir, 'dbus-1', 'services')
-incdir = join_paths (prefix, 'include', 'cloudproviders')
+incdir = join_paths (prefix, get_option('includedir'), 'cloudproviders')
+girdir= join_paths(datadir, 'gir-1.0')
+typelibdir = join_paths(libdir, 'girepository-1.0')
gnome = import('gnome')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/meson_options.txt
new/libcloudproviders-0.3.0/meson_options.txt
--- old/libcloudproviders-0.2.5/meson_options.txt 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/meson_options.txt 2019-01-09
17:18:41.000000000 +0100
@@ -1,2 +1,14 @@
option('enable-gtk-doc', type: 'boolean', value: false)
option('installed-tests', type: 'boolean', value: false)
+option(
+ 'introspection',
+ type: 'boolean',
+ value: true,
+ description: 'Build GObject introspection data for extension library',
+)
+option(
+ 'vapigen',
+ type: 'boolean',
+ value: true,
+ description: 'Build Vala bindings',
+)
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/src/cloudproviders.h
new/libcloudproviders-0.3.0/src/cloudproviders.h
--- old/libcloudproviders-0.2.5/src/cloudproviders.h 1970-01-01
01:00:00.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudproviders.h 2019-01-09
17:18:41.000000000 +0100
@@ -0,0 +1,13 @@
+#ifndef CLOUDPROVIDERS_H
+#define CLOUDPROVIDERS_H
+
+#define CLOUDPROVIDERS_INSIDE
+#include "enums.h"
+#include "cloudprovidersaccount.h"
+#include "cloudprovidersaccountexporter.h"
+#include "cloudproviderscollector.h"
+#include "cloudprovidersprovider.h"
+#include "cloudprovidersproviderexporter.h"
+#undef CLOUDPROVIDERS_INSIDE
+
+#endif // CLOUDPROVIDERS_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/src/cloudprovidersaccount.c
new/libcloudproviders-0.3.0/src/cloudprovidersaccount.c
--- old/libcloudproviders-0.2.5/src/cloudprovidersaccount.c 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersaccount.c 2019-01-09
17:18:41.000000000 +0100
@@ -18,7 +18,6 @@
*/
#include "cloudprovidersaccount.h"
-#include "cloudprovidersaccountpriv.h"
#include "cloudprovidersprovider.h"
#include "cloudproviders-generated.h"
#include "enums.h"
@@ -243,14 +242,13 @@
/**
* cloud_providers_account_new
- * @bus_name: DBus bus name
- * @object_path: Path to export the DBus object to
+ * @proxy: DBus proxy
*
* A #CloudProvidersAccount object are used to fetch details about cloud
providers from DBus.
* Object are usually fetched from cloud_providers_get_providers() as a list.
*/
CloudProvidersAccount*
-cloud_providers_account_new (CloudProvidersDbusAccountProxy *proxy)
+cloud_providers_account_new (GDBusProxy *proxy)
{
CloudProvidersAccount *self;
@@ -376,7 +374,7 @@
*
* Returns: The name of the cloud provider account
*/
-gchar*
+const gchar*
cloud_providers_account_get_name (CloudProvidersAccount *self)
{
return self->name;
@@ -404,7 +402,7 @@
*
* Returns: The status detail description of the cloud provider account
*/
-gchar*
+const gchar*
cloud_providers_account_get_status_details (CloudProvidersAccount *self)
{
return self->status_details;
@@ -416,7 +414,7 @@
*
* Get the icon of the account
*
- * Returns: The icon of the cloud provider account
+ * Returns: (transfer none) : The icon of the cloud provider account
*/
GIcon*
cloud_providers_account_get_icon (CloudProvidersAccount *self)
@@ -430,7 +428,7 @@
*
* Get the menu model exported for the account
*
- * Returns: The menu model exported by the cloud provider account
+ * Returns: (transfer none) : The menu model exported by the cloud provider
account
*/
GMenuModel*
cloud_providers_account_get_menu_model (CloudProvidersAccount *self)
@@ -445,7 +443,7 @@
* Get the action group exported in addition to the #GMenuModel from
* cloud_providers_account_get_menu_model()
*
- * Returns: The action group exported by the cloud provider account
+ * Returns: (transfer none) : The action group exported by the cloud provider
account
*/
GActionGroup*
cloud_providers_account_get_action_group (CloudProvidersAccount *self)
@@ -461,7 +459,7 @@
*
* Returns: The directory path of the cloud provider account
*/
-gchar *
+const gchar *
cloud_providers_account_get_path (CloudProvidersAccount *self)
{
return self->path;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/src/cloudprovidersaccount.h
new/libcloudproviders-0.3.0/src/cloudprovidersaccount.h
--- old/libcloudproviders-0.2.5/src/cloudprovidersaccount.h 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersaccount.h 2019-01-09
17:18:41.000000000 +0100
@@ -43,20 +43,22 @@
} CloudProvidersAccountStatus;
#define CLOUD_PROVIDERS_TYPE_ACCOUNT (cloud_providers_account_get_type())
-G_DECLARE_FINAL_TYPE (CloudProvidersAccount, cloud_providers_account,
CLOUD_PROVIDERS, ACCOUNT, GObject);
+G_DECLARE_FINAL_TYPE (CloudProvidersAccount, cloud_providers_account,
CLOUD_PROVIDERS, ACCOUNT, GObject)
struct _CloudProvidersAccountClass
{
GObjectClass parent_class;
};
-gchar* cloud_providers_account_get_name (CloudProvidersAccount *self);
+CloudProvidersAccount *cloud_providers_account_new (GDBusProxy *proxy);
+
+const gchar* cloud_providers_account_get_name (CloudProvidersAccount *self);
CloudProvidersAccountStatus cloud_providers_account_get_status
(CloudProvidersAccount *self);
-gchar* cloud_providers_account_get_status_details (CloudProvidersAccount
*self);
+const gchar* cloud_providers_account_get_status_details (CloudProvidersAccount
*self);
GIcon *cloud_providers_account_get_icon (CloudProvidersAccount *self);
GMenuModel *cloud_providers_account_get_menu_model (CloudProvidersAccount
*self);
GActionGroup* cloud_providers_account_get_action_group (CloudProvidersAccount
*self);
-gchar *cloud_providers_account_get_path (CloudProvidersAccount *self);
+const gchar *cloud_providers_account_get_path (CloudProvidersAccount *self);
G_END_DECLS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudprovidersaccountexporter.c
new/libcloudproviders-0.3.0/src/cloudprovidersaccountexporter.c
--- old/libcloudproviders-0.2.5/src/cloudprovidersaccountexporter.c
2017-10-31 17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersaccountexporter.c
2019-01-09 17:18:41.000000000 +0100
@@ -88,7 +88,6 @@
}
}
-#if 0
static void
unexport_menu_model (CloudProvidersAccountExporter *self)
{
@@ -97,7 +96,6 @@
g_dbus_connection_unexport_menu_model(self->bus,
self->menu_model_export_id);
}
}
-#endif
static void
export_action_group(CloudProvidersAccountExporter *self)
@@ -114,14 +112,6 @@
}
}
-#if 0
-/**
- * cloud_providers_account_exporter_unexport_action_group:
- * @self: The cloud provider
- * @account_name: The name of the account
- *
- * Unexport the GActionGroup exported by
cloud_providers_account_exporter_export_action_group
- */
static void
unexport_action_group(CloudProvidersAccountExporter *self)
{
@@ -130,7 +120,6 @@
g_dbus_connection_unexport_action_group(self->bus,
self->action_group_export_id);
}
}
-#endif
gchar *
cloud_providers_account_exporter_get_object_path
(CloudProvidersAccountExporter *self)
@@ -407,7 +396,8 @@
cloud_providers_account_exporter_finalize (GObject *object)
{
CloudProvidersAccountExporter *self = (CloudProvidersAccountExporter
*)object;
-
+ unexport_menu_model (self);
+ unexport_action_group (self);
g_free (self->bus_name);
g_object_unref (self->skeleton);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudprovidersaccountexporter.h
new/libcloudproviders-0.3.0/src/cloudprovidersaccountexporter.h
--- old/libcloudproviders-0.2.5/src/cloudprovidersaccountexporter.h
2017-10-31 17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersaccountexporter.h
2019-01-09 17:18:41.000000000 +0100
@@ -25,7 +25,7 @@
G_BEGIN_DECLS
#define CLOUD_PROVIDERS_TYPE_ACCOUNT_EXPORTER
(cloud_providers_account_exporter_get_type())
-G_DECLARE_FINAL_TYPE (CloudProvidersAccountExporter,
cloud_providers_account_exporter, CLOUD_PROVIDERS, ACCOUNT_EXPORTER, GObject);
+G_DECLARE_FINAL_TYPE (CloudProvidersAccountExporter,
cloud_providers_account_exporter, CLOUD_PROVIDERS, ACCOUNT_EXPORTER, GObject)
typedef struct _CloudProvidersProviderExporter CloudProvidersProviderExporter;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudprovidersaccountpriv.h
new/libcloudproviders-0.3.0/src/cloudprovidersaccountpriv.h
--- old/libcloudproviders-0.2.5/src/cloudprovidersaccountpriv.h 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersaccountpriv.h 1970-01-01
01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-/* cloudprovidersaccountpriv.h
- *
- * Copyright (C) 2017 Carlos Soriano <[email protected]>
- *
- * This file is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 3 of the
- * License, or (at your option) any later version.
- *
- * This file is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef CLOUD_PROVIDERS_ACCOUNT_PRIV_H
-#define CLOUD_PROVIDERS_ACCOUNT_PRIV_H
-
-#include <gio/gio.h>
-#include "cloudprovidersaccount.h"
-#include "cloudproviders-generated.h"
-G_BEGIN_DECLS
-
-CloudProvidersAccount*
-cloud_providers_account_new (CloudProvidersDbusAccountProxy *proxy);
-
-G_END_DECLS
-
-#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudproviderscollector.c
new/libcloudproviders-0.3.0/src/cloudproviderscollector.c
--- old/libcloudproviders-0.2.5/src/cloudproviderscollector.c 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudproviderscollector.c 2019-01-09
17:18:41.000000000 +0100
@@ -140,7 +140,7 @@
/**
* cloud_providers_collector_get_providers
* @self: A CloudProvidersCollector
- * Returns: (transfer none): A GList* of #CloudProvidersAccount objects.
+ * Returns: (element-type CloudProviders.Provider) (transfer none): A GList*
of #CloudProvidersProvider objects.
*/
GList*
cloud_providers_collector_get_providers (CloudProvidersCollector *self)
@@ -319,12 +319,8 @@
self->cancellable,
on_bus_acquired,
self);
-
- return self;
- }
- else
- {
- return g_object_ref (self);
}
+
+ return g_object_ref (self);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudproviderscollector.h
new/libcloudproviders-0.3.0/src/cloudproviderscollector.h
--- old/libcloudproviders-0.2.5/src/cloudproviderscollector.h 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudproviderscollector.h 2019-01-09
17:18:41.000000000 +0100
@@ -25,7 +25,7 @@
G_BEGIN_DECLS
#define CLOUD_PROVIDERS_TYPE_COLLECTOR (cloud_providers_collector_get_type())
-G_DECLARE_FINAL_TYPE (CloudProvidersCollector, cloud_providers_collector,
CLOUD_PROVIDERS, COLLECTOR, GObject);
+G_DECLARE_FINAL_TYPE (CloudProvidersCollector, cloud_providers_collector,
CLOUD_PROVIDERS, COLLECTOR, GObject)
struct _CloudProvidersCollectorClass
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/src/cloudprovidersprovider.c
new/libcloudproviders-0.3.0/src/cloudprovidersprovider.c
--- old/libcloudproviders-0.2.5/src/cloudprovidersprovider.c 2017-10-31
17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersprovider.c 2019-01-09
17:18:41.000000000 +0100
@@ -20,7 +20,6 @@
#include "cloudprovidersprovider.h"
#include "cloudprovidersaccount.h"
-#include "cloudprovidersaccountpriv.h"
#include "cloudproviders-generated.h"
struct _CloudProvidersProvider
@@ -392,6 +391,11 @@
return self->name;
}
+/**
+ * cloud_providers_provider_get_accounts
+ * @self: A CloudProvidersProvider
+ * Returns: (element-type CloudProviders.Account) (transfer none): A GList* of
#CloudProvidersProvider objects.
+ */
GList*
cloud_providers_provider_get_accounts (CloudProvidersProvider *self)
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudprovidersproviderexporter.c
new/libcloudproviders-0.3.0/src/cloudprovidersproviderexporter.c
--- old/libcloudproviders-0.2.5/src/cloudprovidersproviderexporter.c
2017-10-31 17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersproviderexporter.c
2019-01-09 17:18:41.000000000 +0100
@@ -107,7 +107,7 @@
CloudProvidersDbusAccount *account_skeleton;
account_skeleton = cloud_providers_account_exporter_get_skeleton (account);
- object_path = g_dbus_object_get_object_path (G_DBUS_OBJECT
(account_skeleton));
+ object_path = g_dbus_interface_skeleton_get_object_path
(G_DBUS_INTERFACE_SKELETON (account_skeleton));
g_dbus_object_manager_server_unexport (self->manager, object_path);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/src/cloudprovidersproviderexporter.h
new/libcloudproviders-0.3.0/src/cloudprovidersproviderexporter.h
--- old/libcloudproviders-0.2.5/src/cloudprovidersproviderexporter.h
2017-10-31 17:15:58.000000000 +0100
+++ new/libcloudproviders-0.3.0/src/cloudprovidersproviderexporter.h
2019-01-09 17:18:41.000000000 +0100
@@ -25,7 +25,7 @@
G_BEGIN_DECLS
#define CLOUD_PROVIDERS_TYPE_PROVIDER_EXPORTER
(cloud_providers_provider_exporter_get_type())
-G_DECLARE_FINAL_TYPE (CloudProvidersProviderExporter,
cloud_providers_provider_exporter, CLOUD_PROVIDERS, PROVIDER_EXPORTER, GObject);
+G_DECLARE_FINAL_TYPE (CloudProvidersProviderExporter,
cloud_providers_provider_exporter, CLOUD_PROVIDERS, PROVIDER_EXPORTER, GObject)
struct _CloudProvidersProviderExporterClass
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libcloudproviders-0.2.5/src/meson.build
new/libcloudproviders-0.3.0/src/meson.build
--- old/libcloudproviders-0.2.5/src/meson.build 2017-10-31 17:15:58.000000000
+0100
+++ new/libcloudproviders-0.3.0/src/meson.build 2019-01-09 17:18:41.000000000
+0100
@@ -1,6 +1,7 @@
libcloudproviders_deps = [glib, gio, gio_unix]
libcloudproviders_headers = [
+ 'cloudproviders.h',
'cloudproviderscollector.h',
'cloudprovidersaccount.h',
'cloudprovidersaccountexporter.h',
@@ -50,11 +51,34 @@
description : 'Cloud providers DBus API library.'
)
-
-
libcloudproviders_dep = declare_dependency (
link_with: libcloudproviders,
dependencies: libcloudproviders_deps,
include_directories: include_directories('.')
)
+if get_option('introspection')
+ libcloudproviders_gir = gnome.generate_gir(
+ libcloudproviders,
+ sources: libcloudproviders_headers + libcloudproviders_sources,
+ nsversion: meson.project_version(),
+ dependencies: libcloudproviders_deps,
+ namespace: 'CloudProviders',
+ symbol_prefix: 'cloud_providers',
+ link_with: libcloudproviders,
+ includes: [ 'GLib-2.0', 'Gio-2.0' ],
+ install: true,
+ install_dir_gir: girdir,
+ install_dir_typelib: typelibdir,
+ extra_args: [ '--c-include=cloudproviders/cloudproviders.h', '--quiet' ]
+ )
+endif
+
+if get_option('vapigen')
+ libcloudproviders_vapi = gnome.generate_vapi(
+ 'cloudproviders',
+ sources: libcloudproviders_gir[0],
+ packages: ['gio-2.0'],
+ install: true,
+ )
+endif
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libcloudproviders-0.2.5/test/org.freedesktop.CloudProviders.ServerExample.service.in
new/libcloudproviders-0.3.0/test/org.freedesktop.CloudProviders.ServerExample.service.in
---
old/libcloudproviders-0.2.5/test/org.freedesktop.CloudProviders.ServerExample.service.in
2017-10-31 17:15:58.000000000 +0100
+++
new/libcloudproviders-0.3.0/test/org.freedesktop.CloudProviders.ServerExample.service.in
2019-01-09 17:18:41.000000000 +0100
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.CloudProviders.ServerExample
-Exec=@bindir@/testcloudprovidersclient
+Exec=@bindir@/testcloudprovidersserver