[libsoup/wip/xmlrpc-variant] xmlrpc: rename soup_xmlrpc_new_datetime() to soup_xmlrpc_variant_new_datetime()



commit 41cffd94d07558c885c14e50bb29d530426f677f
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Mon Aug 10 14:29:12 2015 -0400

    xmlrpc: rename soup_xmlrpc_new_datetime() to soup_xmlrpc_variant_new_datetime()

 docs/reference/libsoup-2.4-sections.txt |    2 +-
 libsoup/libsoup-2.4.sym                 |    2 +-
 libsoup/soup-xmlrpc.c                   |    6 +++---
 libsoup/soup-xmlrpc.h                   |    2 +-
 tests/xmlrpc-server-test.c              |    2 +-
 tests/xmlrpc-test.c                     |    4 ++--
 6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index cee1388..c483654 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -838,7 +838,7 @@ SoupXMLRPCFault
 soup_xmlrpc_build_request
 soup_xmlrpc_message_new
 soup_xmlrpc_parse_response
-soup_xmlrpc_new_datetime
+soup_xmlrpc_variant_new_datetime
 <SUBSECTION>
 SoupXMLRPCParams
 soup_xmlrpc_params_free
diff --git a/libsoup/libsoup-2.4.sym b/libsoup/libsoup-2.4.sym
index c9b35b8..ea458c7 100644
--- a/libsoup/libsoup-2.4.sym
+++ b/libsoup/libsoup-2.4.sym
@@ -554,7 +554,6 @@ soup_xmlrpc_fault_quark
 soup_xmlrpc_message_new
 soup_xmlrpc_message_set_fault
 soup_xmlrpc_message_set_response
-soup_xmlrpc_new_datetime
 soup_xmlrpc_params_free
 soup_xmlrpc_params_parse
 soup_xmlrpc_parse_method_call
@@ -565,3 +564,4 @@ soup_xmlrpc_parse_response
 soup_xmlrpc_request_new
 soup_xmlrpc_set_fault
 soup_xmlrpc_set_response
+soup_xmlrpc_variant_new_datetime
diff --git a/libsoup/soup-xmlrpc.c b/libsoup/soup-xmlrpc.c
index f6db5fd..1bb29ea 100644
--- a/libsoup/soup-xmlrpc.c
+++ b/libsoup/soup-xmlrpc.c
@@ -258,7 +258,7 @@ fail:
  *  - doubles are serialized as &lt;double&gt;
  *  - Strings (including object-paths and signatures) are serialized as &lt;string&gt;
  *  - Variants (i.e. "v" type) are unwrapped and their child is serialized.
- *  - #GVariants created by soup_xmlrpc_new_datetime() are serialized as
+ *  - #GVariants created by soup_xmlrpc_variant_new_datetime() are serialized as
  *    &lt;dateTime.iso8601&gt;
  *  - Other types are not supported and will return %NULL and set @error.
  *    This notably includes: uint64, maybes and dictionaries with non-string
@@ -1409,7 +1409,7 @@ fail:
 }
 
 /**
- * soup_xmlrpc_new_datetime:
+ * soup_xmlrpc_variant_new_datetime:
  * @timestamp: a unix timestamp
  *
  * Construct a special #GVariant used to serialize a &lt;dateTime.iso8601&gt;
@@ -1420,7 +1420,7 @@ fail:
  * Since: 2.52
  */
 GVariant *
-soup_xmlrpc_new_datetime (time_t timestamp)
+soup_xmlrpc_variant_new_datetime (time_t timestamp)
 {
        SoupDate *date;
        GVariant *variant;
diff --git a/libsoup/soup-xmlrpc.h b/libsoup/soup-xmlrpc.h
index e7ee73e..f8f5f55 100644
--- a/libsoup/soup-xmlrpc.h
+++ b/libsoup/soup-xmlrpc.h
@@ -64,7 +64,7 @@ void         soup_xmlrpc_message_set_fault    (SoupMessage       *msg,
 
 /* Utils */
 SOUP_AVAILABLE_IN_2_52
-GVariant *soup_xmlrpc_new_datetime (time_t       timestamp);
+GVariant *soup_xmlrpc_variant_new_datetime (time_t       timestamp);
 
 /* Errors */
 #define SOUP_XMLRPC_ERROR soup_xmlrpc_error_quark()
diff --git a/tests/xmlrpc-server-test.c b/tests/xmlrpc-server-test.c
index a2ef9e4..59d3197 100644
--- a/tests/xmlrpc-server-test.c
+++ b/tests/xmlrpc-server-test.c
@@ -145,7 +145,7 @@ do_dateChange (SoupMessage *msg, SoupXMLRPCParams *params)
                date->second = val;
 
        soup_xmlrpc_message_set_response (msg,
-                                         soup_xmlrpc_new_datetime (soup_date_to_time_t (date)),
+                                         soup_xmlrpc_variant_new_datetime (soup_date_to_time_t (date)),
                                          NULL);
 
        soup_date_free (date);
diff --git a/tests/xmlrpc-test.c b/tests/xmlrpc-test.c
index b9bcb65..dcd9f64 100644
--- a/tests/xmlrpc-test.c
+++ b/tests/xmlrpc-test.c
@@ -273,7 +273,7 @@ test_dateChange (void)
 
        ok = do_xmlrpc ("dateChange",
                        g_variant_new ("(vv)",
-                                      soup_xmlrpc_new_datetime (timestamp),
+                                      soup_xmlrpc_variant_new_datetime (timestamp),
                                       g_variant_dict_end (&structval)),
                        "x", &retval);
        if (!ok)
@@ -503,7 +503,7 @@ test_serializer (void)
                "<params>"
                "<param><value><int>42</int></value></param>"
                "</params>");
-       verify_serialization (g_variant_new ("(@*)", soup_xmlrpc_new_datetime (1434161309)),
+       verify_serialization (g_variant_new ("(@*)", soup_xmlrpc_variant_new_datetime (1434161309)),
                "<params>"
                "<param><value><dateTime.iso8601>20150613T02:08:29</dateTime.iso8601></value></param>"
                "</params>");


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