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 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Core</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="introduction.html" title="Flickcurl Overview">
<link rel="next" href="flickcurl-section-general.html" title="General">
<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="introduction.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-general.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-core.synopsis" class="shortcut">Top</a>
|
<a href="#flickcurl-section-core.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="flickcurl-section-core"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="flickcurl-section-core.top_of_page"></a>Core</span></h2>
<p>Core — Core library functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="flickcurl-section-core.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl">flickcurl</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-version-string" title="flickcurl_version_string">flickcurl_version_string</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-license-string" title="flickcurl_license_string">flickcurl_license_string</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-copyright-string" title="flickcurl_copyright_string">flickcurl_copyright_string</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-short-copyright-string" title="flickcurl_short_copyright_string">flickcurl_short_copyright_string</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-home-url-string" title="flickcurl_home_url_string">flickcurl_home_url_string</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-flickr-replace-service-uri" title="flickcurl_flickr_replace_service_uri">flickcurl_flickr_replace_service_uri</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-flickr-service-uri" title="flickcurl_flickr_service_uri">flickcurl_flickr_service_uri</a>;
extern const char* const <a class="link" href="flickcurl-section-core.html#flickcurl-flickr-upload-service-uri" title="flickcurl_flickr_upload_service_uri">flickcurl_flickr_upload_service_uri</a>;
<span class="returnvalue">void</span> (<a class="link" href="flickcurl-section-core.html#flickcurl-message-handler" title="flickcurl_message_handler ()">*flickcurl_message_handler</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *message</code></em>);
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-core.html#flickcurl-init" title="flickcurl_init ()">flickcurl_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-finish" title="flickcurl_finish ()">flickcurl_finish</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="returnvalue">flickcurl</span></a> * <a class="link" href="flickcurl-section-core.html#flickcurl-new" title="flickcurl_new ()">flickcurl_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="returnvalue">flickcurl</span></a> * <a class="link" href="flickcurl-section-core.html#flickcurl-new-with-handle" title="flickcurl_new_with_handle ()">flickcurl_new_with_handle</a> (<em class="parameter"><code><span class="type">void</span> *curl_handle</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-free" title="flickcurl_free ()">flickcurl_free</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>);
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-core.html#flickcurl-get-current-request-wait" title="flickcurl_get_current_request_wait ()">flickcurl_get_current_request_wait</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>);
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-core.html#flickcurl-get-extras-format-info" title="flickcurl_get_extras_format_info ()">flickcurl_get_extras_format_info</a> (<em class="parameter"><code><span class="type">int</span> extras_format</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **name_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **label_p</code></em>);
<span class="returnvalue">int</span> <a class="link" href="flickcurl-section-core.html#flickcurl-get-feed-format-info" title="flickcurl_get_feed_format_info ()">flickcurl_get_feed_format_info</a> (<em class="parameter"><code><span class="type">int</span> feed_format</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **name_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **label_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **mime_type_p</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="flickcurl-section-core.html#flickcurl-curl-setopt-handler" title="flickcurl_curl_setopt_handler ()">*flickcurl_curl_setopt_handler</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">void</span> *curl_handle</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-curl-setopt-handler" title="flickcurl_set_curl_setopt_handler ()">flickcurl_set_curl_setopt_handler</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><a class="link" href="flickcurl-section-core.html#flickcurl-curl-setopt-handler" title="flickcurl_curl_setopt_handler ()"><span class="type">flickcurl_curl_setopt_handler</span></a> curl_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *curl_handler_data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-data" title="flickcurl_set_data ()">flickcurl_set_data</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><span class="type">void</span> *data</code></em>,
<em class="parameter"><code><span class="type">size_t</span> data_length</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-error-handler" title="flickcurl_set_error_handler ()">flickcurl_set_error_handler</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><a class="link" href="flickcurl-section-core.html#flickcurl-message-handler" title="flickcurl_message_handler ()"><span class="type">flickcurl_message_handler</span></a> error_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *error_data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-http-accept" title="flickcurl_set_http_accept ()">flickcurl_set_http_accept</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> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-proxy" title="flickcurl_set_proxy ()">flickcurl_set_proxy</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> *proxy</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-request-delay" title="flickcurl_set_request_delay ()">flickcurl_set_request_delay</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>long <span class="type">delay_msec</span> Param2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-service-uri" title="flickcurl_set_service_uri ()">flickcurl_set_service_uri</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> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-replace-service-uri" title="flickcurl_set_replace_service_uri ()">flickcurl_set_replace_service_uri</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> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-upload-service-uri" title="flickcurl_set_upload_service_uri ()">flickcurl_set_upload_service_uri</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> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-sign" title="flickcurl_set_sign ()">flickcurl_set_sign</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>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-tag-handler" title="flickcurl_set_tag_handler ()">flickcurl_set_tag_handler</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><a class="link" href="flickcurl-section-tag.html#flickcurl-tag-handler" title="flickcurl_tag_handler ()"><span class="type">flickcurl_tag_handler</span></a> tag_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *tag_data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-user-agent" title="flickcurl_set_user_agent ()">flickcurl_set_user_agent</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_agent</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-write" title="flickcurl_set_write ()">flickcurl_set_write</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><span class="type">int</span> is_write</code></em>);
<span class="returnvalue">void</span> <a class="link" href="flickcurl-section-core.html#flickcurl-set-xml-data" title="flickcurl_set_xml_data ()">flickcurl_set_xml_data</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><span class="type">xmlDocPtr</span> doc</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="flickcurl-section-core.description"></a><h2>Description</h2>
<p>
Core library functions
</p>
</div>
<div class="refsect1">
<a name="flickcurl-section-core.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="flickcurl"></a><h3>flickcurl</h3>
<pre class="programlisting">typedef struct flickcurl_s flickcurl;
</pre>
<p>
Flickcurl session object created by <a class="link" href="flickcurl-section-core.html#flickcurl-new" title="flickcurl_new ()"><code class="function">flickcurl_new()</code></a> and destroyed
by <a class="link" href="flickcurl-section-core.html#flickcurl-free" title="flickcurl_free ()"><code class="function">flickcurl_free()</code></a>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-version-string"></a><h3>flickcurl_version_string</h3>
<pre class="programlisting">extern const char* const flickcurl_version_string;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-license-string"></a><h3>flickcurl_license_string</h3>
<pre class="programlisting">extern const char* const flickcurl_license_string;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-copyright-string"></a><h3>flickcurl_copyright_string</h3>
<pre class="programlisting">extern const char* const flickcurl_copyright_string;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-short-copyright-string"></a><h3>flickcurl_short_copyright_string</h3>
<pre class="programlisting">extern const char* const flickcurl_short_copyright_string;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-home-url-string"></a><h3>flickcurl_home_url_string</h3>
<pre class="programlisting">extern const char* const flickcurl_home_url_string;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-flickr-replace-service-uri"></a><h3>flickcurl_flickr_replace_service_uri</h3>
<pre class="programlisting">extern const char* const flickcurl_flickr_replace_service_uri;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-flickr-service-uri"></a><h3>flickcurl_flickr_service_uri</h3>
<pre class="programlisting">extern const char* const flickcurl_flickr_service_uri;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-flickr-upload-service-uri"></a><h3>flickcurl_flickr_upload_service_uri</h3>
<pre class="programlisting">extern const char* const flickcurl_flickr_upload_service_uri;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-message-handler"></a><h3>flickcurl_message_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*flickcurl_message_handler) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *message</code></em>);</pre>
<p>
Flickcurl Message handler callback.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data pointer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>error message</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-init"></a><h3>flickcurl_init ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Initialise Flickcurl library.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><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-finish"></a><h3>flickcurl_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_finish (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Terminate Flickcurl library.
</p>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-new"></a><h3>flickcurl_new ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="returnvalue">flickcurl</span></a> * flickcurl_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create a Flickcurl sesssion
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> object or NULL on fialure</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-new-with-handle"></a><h3>flickcurl_new_with_handle ()</h3>
<pre class="programlisting"><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="returnvalue">flickcurl</span></a> * flickcurl_new_with_handle (<em class="parameter"><code><span class="type">void</span> *curl_handle</code></em>);</pre>
<p>
Create a Flickcurl sesssion from an existing CURL* handler
</p>
<p>
This allows setting up or re-using an existing CURL handle with
Flickcurl, however the library will call curl_easy_setopt to set
options based on the operation being performed. If these need to
be over-ridden, use <a class="link" href="flickcurl-section-core.html#flickcurl-set-curl-setopt-handler" title="flickcurl_set_curl_setopt_handler ()"><code class="function">flickcurl_set_curl_setopt_handler()</code></a> to adjust
the options.
</p>
<p>
NOTE: The type of <em class="parameter"><code>handle</code></em> is void* so that curl headers are
optional when compiling against flickcurl.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>curl_handle</code></em> :</span></p></td>
<td>CURL* handle</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> object or NULL on fialure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-free"></a><h3>flickcurl_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_free (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
<p>
Destroy flickcurl session
</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 object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-get-current-request-wait"></a><h3>flickcurl_get_current_request_wait ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_get_current_request_wait (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
<p>
Get current wait that would be applied for a web service request called now
</p>
<p>
Returns the wait time that would be applied in order to delay a
web service request such that the web service rate limit is met.
</p>
<p>
See <a class="link" href="flickcurl-section-core.html#flickcurl-set-request-delay" title="flickcurl_set_request_delay ()"><code class="function">flickcurl_set_request_delay()</code></a> which by default is set to 1000ms.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>delay in usecs or < 0 if delay is more than 247 seconds ('infinity')</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-get-extras-format-info"></a><h3>flickcurl_get_extras_format_info ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_get_extras_format_info (<em class="parameter"><code><span class="type">int</span> extras_format</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **name_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **label_p</code></em>);</pre>
<p>
Get APi extras format parameter value information
</p>
<p>
As described 2008-08-19 in
http://code.flickr.com/blog/2008/08/19/standard-photos-response-apis-for-civilized-age/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>extras_format</code></em> :</span></p></td>
<td>input param - extras format index</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name_p</code></em> :</span></p></td>
<td>output param - pointer to store feed format name</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label_p</code></em> :</span></p></td>
<td>output param - pointer to store feed format label</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if extras_format is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-get-feed-format-info"></a><h3>flickcurl_get_feed_format_info ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> flickcurl_get_feed_format_info (<em class="parameter"><code><span class="type">int</span> feed_format</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **name_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **label_p</code></em>,
<em class="parameter"><code>const <span class="type">char</span> **mime_type_p</code></em>);</pre>
<p>
Get feed format parameter value information
</p>
<p>
As announced 2008-08-25 in
http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>feed_format</code></em> :</span></p></td>
<td>input param - feed format index</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name_p</code></em> :</span></p></td>
<td>output param - pointer to store feed format name</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label_p</code></em> :</span></p></td>
<td>output param - pointer to store feed format label</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type_p</code></em> :</span></p></td>
<td>output param - pointer to store feed format mime type</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-0 if feed_format is out of range</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-curl-setopt-handler"></a><h3>flickcurl_curl_setopt_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*flickcurl_curl_setopt_handler) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">void</span> *curl_handle</code></em>);</pre>
<p>
Flickcurl curl options handle callback.
</p>
<p>
For use with <a class="link" href="flickcurl-section-core.html#flickcurl-set-curl-setopt-handler" title="flickcurl_set_curl_setopt_handler ()"><code class="function">flickcurl_set_curl_setopt_handler()</code></a> to set curl
handle options once Flickcurl has created the CURL* handle
internally.
</p>
<p>
NOTE: The type of <em class="parameter"><code>curl_handle</code></em> is void* so that curl headers are
optional when compiling against flickcurl.
</p>
<p>
WARNING: This callback is called with two void args in the order
curl handler user data, curl handle (CURL* pointer) - take care in
getting them correct in implementation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data pointer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>curl_handle</code></em> :</span></p></td>
<td>curl CURL* handle</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-curl-setopt-handler"></a><h3>flickcurl_set_curl_setopt_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_curl_setopt_handler (<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><a class="link" href="flickcurl-section-core.html#flickcurl-curl-setopt-handler" title="flickcurl_curl_setopt_handler ()"><span class="type">flickcurl_curl_setopt_handler</span></a> curl_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *curl_handler_data</code></em>);</pre>
<p>
Set curl set option callback handler.
</p>
<p>
This handler is called for every curl request after all internal
curl_easy_setopt calls are made on the internal CURL* handle and
just before curl_easy_perform is invoked to start the retrieval.
Thus, this callback can override any internal configuration.
</p>
<p>
If a simple once-only CURL configuration is needed, using
<a class="link" href="flickcurl-section-core.html#flickcurl-new-with-handle" title="flickcurl_new_with_handle ()"><code class="function">flickcurl_new_with_handle()</code></a> may be easier.
</p>
<p>
WARNING: The <em class="parameter"><code>curl_handler</code></em> callback is called with 2 void args in
the order user data (<em class="parameter"><code>curl_handler_data</code></em> value), curl_handle (CURL*
pointer) - take care to use them correct in implementation.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>curl_handler</code></em> :</span></p></td>
<td>curl set options handler (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>curl_handler_data</code></em> :</span></p></td>
<td>user data for handler (or NULL)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-data"></a><h3>flickcurl_set_data ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_data (<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><span class="type">void</span> *data</code></em>,
<em class="parameter"><code><span class="type">size_t</span> data_length</code></em>);</pre>
<p>
Set web service request content data.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>data pointer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_length</code></em> :</span></p></td>
<td>data length</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-error-handler"></a><h3>flickcurl_set_error_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_error_handler (<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><a class="link" href="flickcurl-section-core.html#flickcurl-message-handler" title="flickcurl_message_handler ()"><span class="type">flickcurl_message_handler</span></a> error_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *error_data</code></em>);</pre>
<p>
Set Flickcurl error handler.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_handler</code></em> :</span></p></td>
<td>error handler function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_data</code></em> :</span></p></td>
<td>error handler data</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-http-accept"></a><h3>flickcurl_set_http_accept ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_http_accept (<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> *value</code></em>);</pre>
<p>
Set HTTP accept header value for flickcurl requests
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>HTTP Accept header value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-proxy"></a><h3>flickcurl_set_proxy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_proxy (<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> *proxy</code></em>);</pre>
<p>
Set HTTP proxy for flickcurl requests
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>HTTP proxy string</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-request-delay"></a><h3>flickcurl_set_request_delay ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_request_delay (<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>long <span class="type">delay_msec</span> Param2</code></em>);</pre>
<p>
Set web service request delay
</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 object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-service-uri"></a><h3>flickcurl_set_service_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_service_uri (<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> *uri</code></em>);</pre>
<p>
Set Web Service URI for flickcurl requests
</p>
<p>
Sets the service to the default (Flickr API web service) if <em class="parameter"><code>uri</code></em> is NULL.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>Service URI (or NULL)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-replace-service-uri"></a><h3>flickcurl_set_replace_service_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_replace_service_uri (<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> *uri</code></em>);</pre>
<p>
Set Web Replace Service URI for flickcurl requests
</p>
<p>
Sets the replace service to the default (Flickr API web
replace_service) if <em class="parameter"><code>uri</code></em> is NULL.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>Replace Service URI (or NULL)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-upload-service-uri"></a><h3>flickcurl_set_upload_service_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_upload_service_uri (<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> *uri</code></em>);</pre>
<p>
Set Web Upload Service URI for flickcurl requests
</p>
<p>
Sets the upload service to the default (Flickr API web
upload_service) if <em class="parameter"><code>uri</code></em> is NULL.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>Upload Service URI (or NULL)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-sign"></a><h3>flickcurl_set_sign ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_sign (<em class="parameter"><code><a class="link" href="flickcurl-section-core.html#flickcurl" title="flickcurl"><span class="type">flickcurl</span></a> *fc</code></em>);</pre>
<p>
Make the next request signed.
</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 object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-tag-handler"></a><h3>flickcurl_set_tag_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_tag_handler (<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><a class="link" href="flickcurl-section-tag.html#flickcurl-tag-handler" title="flickcurl_tag_handler ()"><span class="type">flickcurl_tag_handler</span></a> tag_handler</code></em>,
<em class="parameter"><code><span class="type">void</span> *tag_data</code></em>);</pre>
<p>
Set Flickcurl tag handler.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tag_handler</code></em> :</span></p></td>
<td>tag handler function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tag_data</code></em> :</span></p></td>
<td>tag handler data</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-user-agent"></a><h3>flickcurl_set_user_agent ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_user_agent (<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_agent</code></em>);</pre>
<p>
Set Flickcurl HTTP user agent string
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_agent</code></em> :</span></p></td>
<td>user agent string</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-write"></a><h3>flickcurl_set_write ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_write (<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><span class="type">int</span> is_write</code></em>);</pre>
<p>
Set writeable flag.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_write</code></em> :</span></p></td>
<td>writeable flag</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="flickcurl-set-xml-data"></a><h3>flickcurl_set_xml_data ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> flickcurl_set_xml_data (<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><span class="type">xmlDocPtr</span> doc</code></em>);</pre>
<p>
Set web service request content data from XML DOM.
</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 object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>doc</code></em> :</span></p></td>
<td>XML dom</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|