~ubuntu-branches/debian/sid/flickcurl/sid

« back to all changes in this revision

Viewing changes to src/photos-upload-api.c

  • Committer: Package Import Robot
  • Author(s): Kumar Appaiah
  • Date: 2013-05-20 21:15:09 UTC
  • mfrom: (1.4.1) (15.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130520211509-e701o5dlwa04aqiw
Tags: 1.24-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 * flickr.photos.upload-api.c - Flickr flickr.photos.upload.* API calls
4
4
 *
5
 
 * Copyright (C) 2007-2008, David Beckett http://www.dajobe.org/
 
5
 * Copyright (C) 2007-2012, David Beckett http://www.dajobe.org/
6
6
 * 
7
7
 * This file is licensed under the following three licenses as alternatives:
8
8
 *   1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
57
57
flickcurl_photos_upload_checkTickets(flickcurl* fc,
58
58
                                     const char** tickets_ids)
59
59
{
60
 
  const char* parameters[8][2];
61
 
  int count = 0;
62
60
  xmlDocPtr doc = NULL;
63
61
  xmlXPathContextPtr xpathCtx = NULL; 
64
62
  flickcurl_ticket** tickets = NULL;
65
63
  char* tickets_ids_string = NULL;
66
64
  
 
65
  flickcurl_init_params(fc);
 
66
 
67
67
  if(!tickets_ids)
68
68
    return NULL;
69
69
 
70
70
  tickets_ids_string = flickcurl_array_join(tickets_ids, ',');
71
 
  parameters[count][0]  = "tickets";
72
 
  parameters[count++][1]= tickets_ids_string;
73
 
 
74
 
  parameters[count][0]  = NULL;
75
 
 
76
 
  if(flickcurl_prepare(fc, "flickr.photos.upload.checkTickets", parameters, count))
 
71
  flickcurl_add_param(fc, "tickets", tickets_ids_string);
 
72
 
 
73
  flickcurl_end_params(fc);
 
74
 
 
75
  if(flickcurl_prepare(fc, "flickr.photos.upload.checkTickets"))
77
76
    goto tidy;
78
77
 
79
78
  doc = flickcurl_invoke(fc);