[gjs] [gjs-dbus] Rename internal method and make it public



commit 747918bd915d70a48da1f512eda485af5ceba056
Author: Johan Dahlin <jdahlin litl com>
Date:   Wed Aug 18 19:30:36 2010 -0300

    [gjs-dbus] Rename internal method and make it public
    
    gjs_dbus_proxy_call_json_async does not allow a{sv} arguments
    which need access to the message, so make this public
    
    https://bugzilla.gnome.org/show_bug.cgi?id=627315

 gjs-dbus/dbus-proxy.c |   18 +++++++++---------
 gjs-dbus/dbus-proxy.h |    6 ++++++
 2 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/gjs-dbus/dbus-proxy.c b/gjs-dbus/dbus-proxy.c
index b81c70e..eaaea50 100644
--- a/gjs-dbus/dbus-proxy.c
+++ b/gjs-dbus/dbus-proxy.c
@@ -557,13 +557,13 @@ pending_call_free_data(void *data)
     reply_closure_free(c);
 }
 
-static void
-gjs_dbus_proxy_send_internal(GjsDBusProxy              *proxy,
-                             DBusMessage               *message,
-                             GjsDBusProxyReplyFunc      plain_func,
-                             GjsDBusProxyJsonReplyFunc  json_func,
-                             GjsDBusProxyErrorReplyFunc error_func,
-                             void                      *data)
+void
+gjs_dbus_proxy_send_full(GjsDBusProxy              *proxy,
+                         DBusMessage               *message,
+                         GjsDBusProxyReplyFunc      plain_func,
+                         GjsDBusProxyJsonReplyFunc  json_func,
+                         GjsDBusProxyErrorReplyFunc error_func,
+                         void                      *data)
 {
     ReplyClosure *c;
     DBusPendingCall *pending;
@@ -606,7 +606,7 @@ gjs_dbus_proxy_send(GjsDBusProxy              *proxy,
                     GjsDBusProxyErrorReplyFunc error_func,
                     void                      *data)
 {
-    gjs_dbus_proxy_send_internal(proxy, message, reply_func, NULL, error_func, data);
+    gjs_dbus_proxy_send_full(proxy, message, reply_func, NULL, error_func, data);
 }
 
 static void
@@ -658,7 +658,7 @@ gjs_dbus_proxy_call_json_async (GjsDBusProxy              *proxy,
 
     dbus_message_iter_close_container(&arg_iter, &dict_iter);
 
-    gjs_dbus_proxy_send_internal(proxy, message, NULL, reply_func, error_func, data);
+    gjs_dbus_proxy_send_full(proxy, message, NULL, reply_func, error_func, data);
 
     dbus_message_unref(message);
 }
diff --git a/gjs-dbus/dbus-proxy.h b/gjs-dbus/dbus-proxy.h
index 1632da2..7ee6ddf 100644
--- a/gjs-dbus/dbus-proxy.h
+++ b/gjs-dbus/dbus-proxy.h
@@ -52,6 +52,12 @@ void            gjs_dbus_proxy_send            (GjsDBusProxy               *prox
                                                 GjsDBusProxyReplyFunc       reply_func,
                                                 GjsDBusProxyErrorReplyFunc  error_func,
                                                 void                       *data);
+void           gjs_dbus_proxy_send_full        (GjsDBusProxy              *proxy,
+                                                DBusMessage               *message,
+                                                GjsDBusProxyReplyFunc      plain_func,
+                                                GjsDBusProxyJsonReplyFunc  json_func,
+                                                GjsDBusProxyErrorReplyFunc error_func,
+                                                void                      *data);
 
 /* varargs are like:
  *



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