[gnome-packagekit] Export InstallCatalogs on the session bus. Fixes rh#502562



commit 014d16c8525f2dd1fe43ece751b3c21a0ace6cd8
Author: Richard Hughes <richard hughsie com>
Date:   Tue May 26 09:07:07 2009 +0100

    Export InstallCatalogs on the session bus. Fixes rh#502562
---
 src/gpk-dbus.c                     |   11 +++++++++
 src/gpk-dbus.h                     |   11 ++++-----
 src/org.freedesktop.PackageKit.xml |   40 ++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+), 6 deletions(-)

diff --git a/src/gpk-dbus.c b/src/gpk-dbus.c
index c3b037b..797fa40 100644
--- a/src/gpk-dbus.c
+++ b/src/gpk-dbus.c
@@ -348,6 +348,17 @@ gpk_dbus_install_provide_files (GpkDbus *dbus, guint32 xid, gchar **files, const
 }
 
 /**
+ * gpk_dbus_install_catalogs:
+ **/
+void
+gpk_dbus_install_catalogs (GpkDbus *dbus, guint32 xid, gchar **files, const gchar *interaction, DBusGMethodInvocation *context)
+{
+	GpkDbusTask *task;
+	task = gpk_dbus_create_task (dbus, xid, interaction, context);
+	gpk_dbus_task_install_catalogs (task, files);
+}
+
+/**
  * gpk_dbus_install_package_names:
  **/
 void
diff --git a/src/gpk-dbus.h b/src/gpk-dbus.h
index c99324c..ccab521 100644
--- a/src/gpk-dbus.h
+++ b/src/gpk-dbus.h
@@ -64,12 +64,6 @@ GType		 gpk_dbus_error_get_type		(void);
 GType		 gpk_dbus_get_type			(void);
 GpkDbus		*gpk_dbus_new				(void);
 
-//void		 gpk_dbus_install_catalog		(GpkDbus	*dbus,
-//							 guint32	 xid,
-//							 guint32	 timestamp,
-//							 const gchar	*catalog_file,
-//							 DBusGMethodInvocation *context);
-
 /* org.freedesktop.PackageKit.Query */
 void		 gpk_dbus_is_installed			(GpkDbus	*dbus,
 							 const gchar	*package_name,
@@ -86,6 +80,11 @@ void		 gpk_dbus_install_provide_files		(GpkDbus	*dbus,
 							 gchar		**files,
 							 const gchar	*interaction,
 							 DBusGMethodInvocation *context);
+void		 gpk_dbus_install_catalogs		(GpkDbus	*dbus,
+							 guint32	 xid,
+							 gchar		**files,
+							 const gchar	*interaction,
+							 DBusGMethodInvocation *context);
 void		 gpk_dbus_install_package_files		(GpkDbus	*dbus,
 							 guint32	 xid,
 							 gchar		**files,
diff --git a/src/org.freedesktop.PackageKit.xml b/src/org.freedesktop.PackageKit.xml
index 5adc243..ca0ff05 100644
--- a/src/org.freedesktop.PackageKit.xml
+++ b/src/org.freedesktop.PackageKit.xml
@@ -203,6 +203,46 @@
     </method>
 
     <!--*****************************************************************************************-->
+    <method name="InstallCatalogs">
+      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+      <doc:doc>
+        <doc:description>
+          <doc:para>
+            Installs specified package catalogs.
+          </doc:para>
+        </doc:description>
+      </doc:doc>
+      <arg type="u" name="xid" direction="in">
+        <doc:doc>
+          <doc:summary>
+            <doc:para>
+              The X window handle ID, used for focus stealing prevention and setting modality.
+            </doc:para>
+          </doc:summary>
+        </doc:doc>
+      </arg>
+      <arg type="as" name="files" direction="in">
+        <doc:doc>
+          <doc:summary>
+            <doc:para>
+              An array of catalog filenames.
+            </doc:para>
+          </doc:summary>
+        </doc:doc>
+      </arg>
+      <arg type="s" name="interaction" direction="in">
+        <doc:doc>
+          <doc:summary>
+            <doc:para>
+              An optional interaction mode, e.g.
+              <doc:tt>show-confirm-search,show-confirm-deps,show-confirm-install,show-progress,show-finished,show-warning</doc:tt>
+            </doc:para>
+          </doc:summary>
+        </doc:doc>
+      </arg>
+    </method>
+
+    <!--*****************************************************************************************-->
     <method name="InstallPackageNames">
       <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
       <doc:doc>



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