File: flickcurl-section-gallery.html

package info (click to toggle)
flickcurl 1.26-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,784 kB
  • sloc: ansic: 26,045; sh: 11,915; xml: 1,025; makefile: 343
file content (624 lines) | stat: -rw-r--r-- 37,761 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Galleries</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Flickcurl Flickr API Manual">
<link rel="up" href="index.html" title="Flickcurl Flickr API Manual">
<link rel="prev" href="flickcurl-section-favorite.html" title="Favorites">
<link rel="next" href="flickcurl-section-group.html" title="Groups">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="flickcurl-section-favorite.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Flickcurl Flickr API Manual</th>
<td><a accesskey="n" href="flickcurl-section-group.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#flickcurl-section-gallery.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#flickcurl-section-gallery.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="flickcurl-section-gallery"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="flickcurl-section-gallery.top_of_page"></a>Galleries</span></h2>
<p>Galleries — Galleries of photos.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="flickcurl-section-gallery.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery">flickcurl_gallery</a>;
<span class="returnvalue">void</span>                <a class="link" href="flickcurl-section-gallery.html#flickcurl-free-gallery" title="flickcurl_free_gallery ()">flickcurl_free_gallery</a>              (<em class="parameter"><code><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="type">flickcurl_gallery</span></a> *gallery</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="flickcurl-section-gallery.html#flickcurl-free-galleries" title="flickcurl_free_galleries ()">flickcurl_free_galleries</a>            (<em class="parameter"><code><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="type">flickcurl_gallery</span></a> **galleries_object</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-addPhoto" title="flickcurl_galleries_addPhoto ()">flickcurl_galleries_addPhoto</a>        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *comment_text</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-create" title="flickcurl_galleries_create ()">flickcurl_galleries_create</a>          (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *primary_photo_id</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **gallery_url_p</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-editMeta" title="flickcurl_galleries_editMeta ()">flickcurl_galleries_editMeta</a>        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *description</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-editPhoto" title="flickcurl_galleries_editPhoto ()">flickcurl_galleries_editPhoto</a>       (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *new_comment</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-editPhotos" title="flickcurl_galleries_editPhotos ()">flickcurl_galleries_editPhotos</a>      (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *primary_photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> **photo_ids_array</code></em>);
<a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> * <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getInfo" title="flickcurl_galleries_getInfo ()">flickcurl_galleries_getInfo</a>         (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>);
<a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> ** <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getList" title="flickcurl_galleries_getList ()">flickcurl_galleries_getList</a>        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *user_id</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);
<a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> ** <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getListForPhoto" title="flickcurl_galleries_getListForPhoto ()">flickcurl_galleries_getListForPhoto</a>
                                                        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);
<a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list" title="flickcurl_photos_list"><span class="returnvalue">flickcurl_photos_list</span></a> * <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getPhotos-params" title="flickcurl_galleries_getPhotos_params ()">flickcurl_galleries_getPhotos_params</a>
                                                        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code><a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list-params" title="flickcurl_photos_list_params"><span class="type">flickcurl_photos_list_params</span></a> *list_params</code></em>);
<a class="link" href="flickcurl-section-photo.html#flickcurl-photo" title="flickcurl_photo"><span class="returnvalue">flickcurl_photo</span></a> **  <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getPhotos" title="flickcurl_galleries_getPhotos ()">flickcurl_galleries_getPhotos</a>       (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *extras</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="flickcurl-section-gallery.description"></a><h2>Description</h2>
<p>
Galleries of photos.
</p>
</div>
<div class="refsect1">
<a name="flickcurl-section-gallery.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="flickcurl-gallery"></a><h3>flickcurl_gallery</h3>
<pre class="programlisting">typedef struct {
  char *id;
  char *url;
  char *owner;
  int date_create;
  int date_update;
  flickcurl_photo* primary_photo;
  int count_photos;
  int count_videos;
  char *title;
  char *description;
} flickcurl_gallery;
</pre>
<p>
A photo gallery.
</p>
<p>
The list of photos in the gallery is available via the API calls
<a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getPhotos" title="flickcurl_galleries_getPhotos ()"><code class="function">flickcurl_galleries_getPhotos()</code></a> or
<a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getPhotos-params" title="flickcurl_galleries_getPhotos_params ()"><code class="function">flickcurl_galleries_getPhotos_params()</code></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="flickcurl-gallery.id"></a>id</code></em>;</span></p></td>
<td>gallery ID</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="flickcurl-gallery.url"></a>url</code></em>;</span></p></td>
<td>URL of gallery</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="flickcurl-gallery.owner"></a>owner</code></em>;</span></p></td>
<td>owner NSID</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="flickcurl-gallery.date-create"></a>date_create</code></em>;</span></p></td>
<td>creation date of gallery</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="flickcurl-gallery.date-update"></a>date_update</code></em>;</span></p></td>
<td>update / last modified date of gallery</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="flickcurl-section-photo.html#flickcurl-photo" title="flickcurl_photo"><span class="type">flickcurl_photo</span></a> *<em class="structfield"><code><a name="flickcurl-gallery.primary-photo"></a>primary_photo</code></em>;</span></p></td>
<td>primary photo for the gallery</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="flickcurl-gallery.count-photos"></a>count_photos</code></em>;</span></p></td>
<td>number of photos in the gallery</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="flickcurl-gallery.count-videos"></a>count_videos</code></em>;</span></p></td>
<td>number of photos in the gallery</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="flickcurl-gallery.title"></a>title</code></em>;</span></p></td>
<td>Gallery title</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="flickcurl-gallery.description"></a>description</code></em>;</span></p></td>
<td>Gallery description</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-free-gallery"></a><h3>flickcurl_free_gallery ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                flickcurl_free_gallery              (<em class="parameter"><code><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="type">flickcurl_gallery</span></a> *gallery</code></em>);</pre>
<p>
Destructor for gallery object
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>gallery</code></em> :</span></p></td>
<td>gallery object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-free-galleries"></a><h3>flickcurl_free_galleries ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                flickcurl_free_galleries            (<em class="parameter"><code><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="type">flickcurl_gallery</span></a> **galleries_object</code></em>);</pre>
<p>
Destructor for array of gallery objects
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>galleries_object</code></em> :</span></p></td>
<td>gallery object array</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-addPhoto"></a><h3>flickcurl_galleries_addPhoto ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 flickcurl_galleries_addPhoto        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *comment_text</code></em>);</pre>
<p>
Add a photo to a gallery.
</p>
<p>
Implements flickr.galleries.addPhoto (1.17)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The ID of the gallery to add a photo to as returned by <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getList" title="flickcurl_galleries_getList ()"><code class="function">flickcurl_galleries_getList()</code></a> and <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getListForPhoto" title="flickcurl_galleries_getListForPhoto ()"><code class="function">flickcurl_galleries_getListForPhoto()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>photo_id</code></em> :</span></p></td>
<td>The photo ID to add to the gallery.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>comment_text</code></em> :</span></p></td>
<td>A short comment or story to accompany the photo (or NULL).</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-create"></a><h3>flickcurl_galleries_create ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              flickcurl_galleries_create          (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *primary_photo_id</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **gallery_url_p</code></em>);</pre>
<p>
Create a new gallery for the calling user.
</p>
<p>
Implements flickr.galleries.create (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>The name of the gallery</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
<td>A short description for the gallery</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>primary_photo_id</code></em> :</span></p></td>
<td>The first photo to add to your gallery (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_url_p</code></em> :</span></p></td>
<td>pointer to variable to store new gallery URL (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>gallery ID or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-editMeta"></a><h3>flickcurl_galleries_editMeta ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 flickcurl_galleries_editMeta        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *description</code></em>);</pre>
<p>
Modify the meta-data for a gallery.
</p>
<p>
Implements flickr.galleries.editMeta (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The gallery ID to update.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>The new title for the gallery.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
<td>The new description for the gallery. (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-editPhoto"></a><h3>flickcurl_galleries_editPhoto ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 flickcurl_galleries_editPhoto       (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *new_comment</code></em>);</pre>
<p>
Edit the comment for a gallery photo.
</p>
<p>
Implements flickr.galleries.editPhoto (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The ID of the gallery to add a photo to. Note: this is the compound ID returned in methods like flickr.galleries.getList, and flickr.galleries.getListForPhoto.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>photo_id</code></em> :</span></p></td>
<td>The photo ID to add to the gallery.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_comment</code></em> :</span></p></td>
<td>The updated comment the photo.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-editPhotos"></a><h3>flickcurl_galleries_editPhotos ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 flickcurl_galleries_editPhotos      (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *primary_photo_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> **photo_ids_array</code></em>);</pre>
<p>
Modify the photos in a gallery. Use this method to add, remove and re-order photos.
</p>
<p>
Implements flickr.galleries.editPhotos (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The id of the gallery to modify. The gallery must belong to the calling user.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>primary_photo_id</code></em> :</span></p></td>
<td>The id of the photo to use as the 'primary' photo for the gallery. This id must also be passed along in photo_ids list argument.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>photo_ids_array</code></em> :</span></p></td>
<td>Array of photo ids to include in the gallery. They will appear in the set in the order sent. This list MUST contain the primary photo id. This list of photos replaces the existing list.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-getInfo"></a><h3>flickcurl_galleries_getInfo ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> * flickcurl_galleries_getInfo         (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>);</pre>
<p>
Get information for a gallery.
</p>
<p>
Implements flickr.galleries.getInfo (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The gallery ID you are requesting information for.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>gallery or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-getList"></a><h3>flickcurl_galleries_getList ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> ** flickcurl_galleries_getList        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *user_id</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);</pre>
<p>
Return the list of galleries created by a user.
</p>
<p>
Galleries are returned sorted from newest to oldest.
</p>
<p>
Implements flickr.galleries.getList (1.17)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_id</code></em> :</span></p></td>
<td>The NSID of the user to get a galleries list for. If none is specified, the calling user is assumed.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>per_page</code></em> :</span></p></td>
<td>Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or &lt; 0)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td>
<td>The page of results to return. If this argument is omitted, it defaults to 1. (or &lt; 0)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>array of galleries or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-getListForPhoto"></a><h3>flickcurl_galleries_getListForPhoto ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-gallery.html#flickcurl-gallery" title="flickcurl_gallery"><span class="returnvalue">flickcurl_gallery</span></a> ** flickcurl_galleries_getListForPhoto
                                                        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *photo_id</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);</pre>
<p>
Return the list of galleries to which a photo has been added.
</p>
<p>
Galleries are returned sorted by date which the photo was added to
the gallery.
</p>
<p>
Implements flickr.galleries.getListForPhoto (1.17)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>photo_id</code></em> :</span></p></td>
<td>The ID of the photo to fetch a list of galleries for.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>per_page</code></em> :</span></p></td>
<td>Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or &lt; 0)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td>
<td>The page of results to return. If this argument is omitted, it defaults to 1. (or &lt; 0)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>array of galleries or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-getPhotos-params"></a><h3>flickcurl_galleries_getPhotos_params ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list" title="flickcurl_photos_list"><span class="returnvalue">flickcurl_photos_list</span></a> * flickcurl_galleries_getPhotos_params
                                                        (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code><a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list-params" title="flickcurl_photos_list_params"><span class="type">flickcurl_photos_list_params</span></a> *list_params</code></em>);</pre>
<p>
Return the list of photos for a gallery
</p>
<p>
Currently supported extras fields are: description, license,
date_upload, date_taken, owner_name, icon_server, original_format,
last_update, geo, tags, machine_tags, o_dims, views, media,
path_alias, url_sq, url_t, url_s, url_m, url_o
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The ID of the gallery of photos to return</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>list_params</code></em> :</span></p></td>
<td>
<a class="link" href="flickcurl-section-photoslist.html#flickcurl-photos-list-params" title="flickcurl_photos_list_params"><span class="type">flickcurl_photos_list_params</span></a> result parameters (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>list of people public photos or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-galleries-getPhotos"></a><h3>flickcurl_galleries_getPhotos ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-photo.html#flickcurl-photo" title="flickcurl_photo"><span class="returnvalue">flickcurl_photo</span></a> **  flickcurl_galleries_getPhotos       (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *gallery_id</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *extras</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> per_page</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> page</code></em>);</pre>
<p>
Return the list of photos for a gallery
</p>
<p>
See <a class="link" href="flickcurl-section-gallery.html#flickcurl-galleries-getPhotos-params" title="flickcurl_galleries_getPhotos_params ()"><code class="function">flickcurl_galleries_getPhotos_params()</code></a> for details of <em class="parameter"><code>extras</code></em>.
</p>
<p>
Implements flickr.galleries.getPhotos (1.18)
</p>
<p>
Announced 2010-04-08
http://code.flickr.com/blog/2010/04/08/galleries-apis/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fc</code></em> :</span></p></td>
<td>flickcurl context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gallery_id</code></em> :</span></p></td>
<td>The ID of the gallery of photos to return</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>extras</code></em> :</span></p></td>
<td>A comma-delimited list of extra information to fetch for each returned record.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>per_page</code></em> :</span></p></td>
<td>Number of photos to return per page (default 100, max 500)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td>
<td>The page of results to return (default 1)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>list of photos or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>