[shotwell] Replace external function with vapi
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Replace external function with vapi
- Date: Thu, 2 Jun 2016 20:22:07 +0000 (UTC)
commit 98ce28cd80288a38ed98a29f6dfa6f2f8b008942
Author: Jens Georg <mail jensge org>
Date: Wed Jun 1 21:14:55 2016 +0200
Replace external function with vapi
The function was available in vala since 0.12
Signed-off-by: Jens Georg <mail jensge org>
plugins/common/RESTSupport.vala | 4 +---
.../YandexPublishing.vala | 2 +-
plugins/shotwell-publishing/PicasaPublishing.vala | 2 +-
plugins/shotwell-publishing/YouTubePublishing.vala | 2 +-
4 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index b512fe7..7a12c5f 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -4,8 +4,6 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
-extern Soup.Message soup_form_request_new_from_multipart(string uri, Soup.Multipart multipart);
-
namespace Publishing.RESTSupport {
public abstract class Session {
@@ -437,7 +435,7 @@ public class UploadTransaction : Transaction {
image_part_header.set_content_disposition("form-data", binary_disposition_table);
Soup.Message outbound_message =
- soup_form_request_new_from_multipart(get_endpoint_url(), message_parts);
+ Soup.Form.request_new_from_multipart(get_endpoint_url(), message_parts);
// TODO: there must be a better way to iterate over a map
Gee.MapIterator<string, string> i = message_headers.map_iterator();
bool cont = i.next();
diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.vala
b/plugins/shotwell-publishing-extras/YandexPublishing.vala
index ec99c2b..6504572 100644
--- a/plugins/shotwell-publishing-extras/YandexPublishing.vala
+++ b/plugins/shotwell-publishing-extras/YandexPublishing.vala
@@ -338,7 +338,7 @@ private class UploadTransaction: Transaction {
image_part_header.set_content_disposition("form-data", result);
- Soup.Message outbound_message = soup_form_request_new_from_multipart(get_endpoint_url(),
message_parts);
+ Soup.Message outbound_message = Soup.Form.request_new_from_multipart(get_endpoint_url(),
message_parts);
outbound_message.request_headers.append("Authorization", ("OAuth
%s").printf(session.get_auth_token()));
outbound_message.request_headers.append("Connection", "close");
set_message(outbound_message);
diff --git a/plugins/shotwell-publishing/PicasaPublishing.vala
b/plugins/shotwell-publishing/PicasaPublishing.vala
index d1af942..cb6352c 100644
--- a/plugins/shotwell-publishing/PicasaPublishing.vala
+++ b/plugins/shotwell-publishing/PicasaPublishing.vala
@@ -588,7 +588,7 @@ internal class UploadTransaction :
// create a message that can be sent over the wire whose payload is the multipart container
// that we've been building up
Soup.Message outbound_message =
- soup_form_request_new_from_multipart(get_endpoint_url(), message_parts);
+ Soup.Form.request_new_from_multipart(get_endpoint_url(), message_parts);
outbound_message.request_headers.append("Authorization", "Bearer " +
session.get_access_token());
set_message(outbound_message);
diff --git a/plugins/shotwell-publishing/YouTubePublishing.vala
b/plugins/shotwell-publishing/YouTubePublishing.vala
index ccb835f..15f283f 100644
--- a/plugins/shotwell-publishing/YouTubePublishing.vala
+++ b/plugins/shotwell-publishing/YouTubePublishing.vala
@@ -592,7 +592,7 @@ internal class UploadTransaction : Publishing.RESTSupport.GooglePublisher.Authen
// create a message that can be sent over the wire whose payload is the multipart container
// that we've been building up
Soup.Message outbound_message =
- soup_form_request_new_from_multipart(get_endpoint_url(), message_parts);
+ Soup.Form.request_new_from_multipart(get_endpoint_url(), message_parts);
outbound_message.request_headers.append("X-GData-Key", "key=%s".printf(DEVELOPER_KEY));
outbound_message.request_headers.append("Slug",
publishable.get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]