/usr/include/flickcurl.h is in libflickcurl-dev 1.21-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 | /* -*- Mode: c; c-basic-offset: 2 -*-
*
* flickcurl.h - Flickcurl API
*
* Copyright (C) 2007-2010, David Beckett http://www.dajobe.org/
*
* This file is licensed under the following three licenses as alternatives:
* 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
* 2. GNU General Public License (GPL) V2 or any newer version
* 3. Apache License, V2.0 or any newer version
*
* You may not use this file except in compliance with at least one of
* the above three licenses.
*
* See LICENSE.html or LICENSE.txt at the top of this package for the
* complete terms and further detail along with the license texts for
* the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
*
*/
#ifndef FLICKCURL_H
#define FLICKCURL_H
#ifdef __cplusplus
extern "C" {
#endif
/* needed for xmlDocPtr */
#include <libxml/tree.h>
/**
* FLICKCURL_API:
*
* Macro for wrapping API function call declarations.
*
*/
#ifndef FLICKCURL_API
# ifdef WIN32
# ifdef __GNUC__
# undef _declspec
# define _declspec(x) __declspec(x)
# endif
# ifdef FLICKCURL_STATIC
# define FLICKCURL_API
# else
# ifdef FLICKCURL_INTERNAL
# define FLICKCURL_API _declspec(dllexport)
# else
# define FLICKCURL_API _declspec(dllimport)
# endif
# endif
# else
# define FLICKCURL_API
# endif
#endif
/* Use gcc 3.1+ feature to allow marking of deprecated API calls.
* This gives a warning during compiling.
*/
#if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
#ifdef __APPLE_CC__
/* OSX gcc cpp-precomp is broken */
#define FLICKCURL_DEPRECATED
#else
#define FLICKCURL_DEPRECATED __attribute__((deprecated))
#endif
#else
#define FLICKCURL_DEPRECATED
#endif
/**
* flickcurl_field_value_type:
* @VALUE_TYPE_UNIXTIME: a unixtime
* @VALUE_TYPE_BOOLEAN: boolean
* @VALUE_TYPE_DATETIME: date time
* @VALUE_TYPE_FLOAT: floating point number
* @VALUE_TYPE_INTEGER: integer
* @VALUE_TYPE_STRING: string
* @VALUE_TYPE_URI: URI
* @VALUE_TYPE_PERSON_ID: person ID
* @VALUE_TYPE_PHOTO_ID: internal
* @VALUE_TYPE_PHOTO_URI: internal
* @VALUE_TYPE_MEDIA_TYPE: internal
* @VALUE_TYPE_NONE: internal
* @VALUE_TYPE_TAG_STRING: internal
* @VALUE_TYPE_COLLECTION_ID: internal
* @VALUE_TYPE_ICON_PHOTOS: internal
* @VALUE_TYPE_LAST: internal offset to last in enum list
*
* Field data types
*/
typedef enum {
VALUE_TYPE_NONE, /* empty field */
VALUE_TYPE_PHOTO_ID, /* internal */
VALUE_TYPE_PHOTO_URI, /* internal */
VALUE_TYPE_UNIXTIME,
VALUE_TYPE_BOOLEAN,
VALUE_TYPE_DATETIME,
VALUE_TYPE_FLOAT,
VALUE_TYPE_INTEGER,
VALUE_TYPE_STRING,
VALUE_TYPE_URI,
VALUE_TYPE_PERSON_ID, /* internal */
VALUE_TYPE_MEDIA_TYPE, /* internal */
VALUE_TYPE_TAG_STRING, /* internal */
VALUE_TYPE_COLLECTION_ID, /* internal */
VALUE_TYPE_ICON_PHOTOS, /* internal */
VALUE_TYPE_LAST = VALUE_TYPE_ICON_PHOTOS
} flickcurl_field_value_type;
/**
* flickcurl_photo_field_type:
* @PHOTO_FIELD_dateuploaded: date uploaded
* @PHOTO_FIELD_farm: farm number
* @PHOTO_FIELD_isfavorite: is favorite boolean
* @PHOTO_FIELD_license: license
* @PHOTO_FIELD_originalformat: original format
* @PHOTO_FIELD_rotation: rotation
* @PHOTO_FIELD_server: server
* @PHOTO_FIELD_dates_lastupdate: last update date
* @PHOTO_FIELD_dates_posted: posted date
* @PHOTO_FIELD_dates_taken: taken date
* @PHOTO_FIELD_dates_takengranularity: taken granularity
* @PHOTO_FIELD_description: description
* @PHOTO_FIELD_editability_canaddmeta: can add metadata boolean
* @PHOTO_FIELD_editability_cancomment: can comment boolean
* @PHOTO_FIELD_geoperms_iscontact: geo perms are for contacts
* @PHOTO_FIELD_geoperms_isfamily: geo perms are for family
* @PHOTO_FIELD_geoperms_isfriend: geo perms are for frind
* @PHOTO_FIELD_geoperms_ispublic: geo perms are for public
* @PHOTO_FIELD_location_accuracy: location accuracy
* @PHOTO_FIELD_location_latitude: location latitude
* @PHOTO_FIELD_location_longitude: location longitude
* @PHOTO_FIELD_owner_location: owner location
* @PHOTO_FIELD_owner_nsid: owner NSID
* @PHOTO_FIELD_owner_realname: owner real name
* @PHOTO_FIELD_owner_username: owner user name
* @PHOTO_FIELD_title: title
* @PHOTO_FIELD_visibility_isfamily: visibility is for family
* @PHOTO_FIELD_visibility_isfriend: visibility is for friend
* @PHOTO_FIELD_visibility_ispublic: visibility is for public
* @PHOTO_FIELD_secret: photo secret
* @PHOTO_FIELD_originalsecret: photo original secret
* @PHOTO_FIELD_location_neighbourhood: location neighbourhood
* @PHOTO_FIELD_location_neighborhood: deprecated
* @PHOTO_FIELD_location_locality: location locality
* @PHOTO_FIELD_location_county: location county
* @PHOTO_FIELD_location_region: location region
* @PHOTO_FIELD_location_country: location country
* @PHOTO_FIELD_location_placeid: location place ID
* @PHOTO_FIELD_neighbourhood_placeid: neighborhood place ID
* @PHOTO_FIELD_neighborhood_placeid: dprecated
* @PHOTO_FIELD_locality_placeid: locality place ID
* @PHOTO_FIELD_county_placeid: county place ID
* @PHOTO_FIELD_region_placeid: region place ID
* @PHOTO_FIELD_country_placeid: country place ID
* @PHOTO_FIELD_location_woeid: location WOE ID
* @PHOTO_FIELD_neighbourhood_woeid: neighborhood WOE ID
* @PHOTO_FIELD_neighborhood_woeid: deprecated
* @PHOTO_FIELD_locality_woeid: locality WOE ID
* @PHOTO_FIELD_county_woeid: county WOE ID
* @PHOTO_FIELD_region_woeid: region WOE ID
* @PHOTO_FIELD_country_woeid: country WOE ID
* @PHOTO_FIELD_usage_candownload: can download
* @PHOTO_FIELD_usage_canblog: can blog
* @PHOTO_FIELD_usage_canprint: can print
* @PHOTO_FIELD_owner_iconserver: server of owner's icon
* @PHOTO_FIELD_owner_iconfarm: farm of owner's icon
* @PHOTO_FIELD_original_width: original photo width
* @PHOTO_FIELD_original_height: original photo height
* @PHOTO_FIELD_views: number of photo views
* @PHOTO_FIELD_comments: number of photo comments
* @PHOTO_FIELD_favorites: number of photo favorites
* @PHOTO_FIELD_gallery_comment: comment on the photo when used in a gallery
* @PHOTO_FIELD_none: internal
* @PHOTO_FIELD_FIRST: internal offset to first in enum list
* @PHOTO_FIELD_LAST: internal offset to last in enum list
*
* Fields of a flickcurl_photo*
*/
typedef enum {
PHOTO_FIELD_none,
PHOTO_FIELD_dateuploaded,
PHOTO_FIELD_farm,
PHOTO_FIELD_isfavorite,
PHOTO_FIELD_license,
PHOTO_FIELD_originalformat,
PHOTO_FIELD_rotation,
PHOTO_FIELD_server,
PHOTO_FIELD_dates_lastupdate,
PHOTO_FIELD_dates_posted,
PHOTO_FIELD_dates_taken,
PHOTO_FIELD_dates_takengranularity,
PHOTO_FIELD_description,
PHOTO_FIELD_editability_canaddmeta,
PHOTO_FIELD_editability_cancomment,
PHOTO_FIELD_geoperms_iscontact,
PHOTO_FIELD_geoperms_isfamily,
PHOTO_FIELD_geoperms_isfriend,
PHOTO_FIELD_geoperms_ispublic,
PHOTO_FIELD_location_accuracy,
PHOTO_FIELD_location_latitude,
PHOTO_FIELD_location_longitude,
PHOTO_FIELD_owner_location,
PHOTO_FIELD_owner_nsid,
PHOTO_FIELD_owner_realname,
PHOTO_FIELD_owner_username,
PHOTO_FIELD_title,
PHOTO_FIELD_visibility_isfamily,
PHOTO_FIELD_visibility_isfriend,
PHOTO_FIELD_visibility_ispublic,
PHOTO_FIELD_secret,
PHOTO_FIELD_originalsecret,
PHOTO_FIELD_location_neighbourhood,
PHOTO_FIELD_location_neighborhood = PHOTO_FIELD_location_neighbourhood,
PHOTO_FIELD_location_locality,
PHOTO_FIELD_location_county,
PHOTO_FIELD_location_region,
PHOTO_FIELD_location_country,
PHOTO_FIELD_location_placeid,
PHOTO_FIELD_neighbourhood_placeid,
PHOTO_FIELD_neighborhood_placeid = PHOTO_FIELD_neighbourhood_placeid,
PHOTO_FIELD_locality_placeid,
PHOTO_FIELD_county_placeid,
PHOTO_FIELD_region_placeid,
PHOTO_FIELD_country_placeid,
PHOTO_FIELD_location_woeid,
PHOTO_FIELD_neighbourhood_woeid,
PHOTO_FIELD_neighborhood_woeid = PHOTO_FIELD_neighbourhood_woeid,
PHOTO_FIELD_locality_woeid,
PHOTO_FIELD_county_woeid,
PHOTO_FIELD_region_woeid,
PHOTO_FIELD_country_woeid,
PHOTO_FIELD_usage_candownload,
PHOTO_FIELD_usage_canblog,
PHOTO_FIELD_usage_canprint,
PHOTO_FIELD_owner_iconserver,
PHOTO_FIELD_owner_iconfarm,
PHOTO_FIELD_original_width,
PHOTO_FIELD_original_height,
PHOTO_FIELD_views,
PHOTO_FIELD_comments,
PHOTO_FIELD_favorites,
PHOTO_FIELD_gallery_comment,
PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded,
PHOTO_FIELD_LAST = PHOTO_FIELD_gallery_comment
} flickcurl_photo_field_type;
/**
* flickcurl:
*
* Flickcurl session object created by flickcurl_new() and destroyed
* by flickcurl_free()
*/
typedef struct flickcurl_s flickcurl;
/* Forward structure references */
struct flickcurl_s;
struct flickcurl_photo_s;
struct flickcurl_shapedata_s;
/**
* flickcurl_arg:
* @name: Argument name
* @optional: boolean flag (non-0 true) if argument is optional
* @description: description of argument (HTML)
*
* An API method argument.
*/
typedef struct flickcurl_arg_s {
char* name;
int optional;
char *description;
} flickcurl_arg;
/**
* flickcurl_method:
* @name: Method name
* @needslogin: boolean flag (non-0 true) if method requires login
* @description: description of method
* @response: example response (HTML)
* @explanation: explanation of example response or NULL if missing
* @args: method arguments
* @args_count: number of arguments, may be 0
*
* An API method
*/
typedef struct flickcurl_method_s {
char *name;
int needslogin;
char *description;
char *response;
char *explanation;
/* argument list */
flickcurl_arg** args;
int args_count;
} flickcurl_method;
/**
* flickcurl_activity_event:
* @type: activty event type
* @id: ID
* @user: user ID
* @username: user name
* @value: event value
* @date_added: date added
*
* Comment or photo activity event
*/
typedef struct {
char *type; /* comment or note */
char *id;
char *user;
char *username;
char *value;
int date_added;
} flickcurl_activity_event;
/**
* FLICKCURL_MAX_ACTIVITY_EVENTS:
*
* Max number of activity events.
*/
#define FLICKCURL_MAX_ACTIVITY_EVENTS 20
/**
* flickcurl_activity:
* @type: activity type photoset or photo
* @owner: owner NSID
* @owner_name: owner name
* @primary: primary
* @id: photo id
* @secret: photo secret
* @server: photo server
* @farm: photo farm
* @comments_old: old comments count
* @comments_new: new comments count
* @notes_old: old notes count
* @notes_new: new notes count
* @views: views count
* @comments: comments count
* @photos: photos count
* @faves: favourites count
* @more: more boolean flag
* @title: title of acitivty
* @events: array of events associated with this actiivty
*
* Comments or photos item with activity
*/
typedef struct {
char *type; /* photoset or photo */
char *owner;
char *owner_name;
char *primary;
/* photo info: ID/secret/server/farm */
char *id;
char *secret;
int server;
int farm;
/* counts */
int comments_old;
int comments_new;
int notes_old;
int notes_new;
int views;
int comments;
int photos;
int faves;
/* flags */
int more;
char* title;
/* Array of events on this item */
flickcurl_activity_event* events[FLICKCURL_MAX_ACTIVITY_EVENTS+1];
} flickcurl_activity;
/**
* flickcurl_comment:
* @id: comment ID
* @author: author ID
* @authorname: author name
* @datecreate: date of creation
* @permalink: permanent link of comment
* @text: comment text
*
* A photo comment.
*/
typedef struct flickcurl_comment_s {
char* id;
char* author;
char* authorname;
int datecreate;
char* permalink;
char* text;
} flickcurl_comment;
/**
* flickcurl_perms:
* @is_public: non-0 to set the photo to public else private
* @is_contact: non-0 to make the photo visible to contacts when private
* @is_friend: non-0 to make the photo visible to friends when private
* @is_family: non-0 to make the photo visible to family when private
* @perm_comment: who can add comments to the photo and it's notes. one of: 0 nobody, 1 friends & family, 2 contacts, 3 everybody
* @perm_addmeta: who can add notes and tags to the photo. one of: 0 nobody / just the owner, 1 friends & family, 2 contacts, 3 everybody
*
* Permissions as used by flickcurl_photos_getPerms() and
* flickcurl_photos_setPerms() which use public, friend, family,
* perm_comment and perm-addmeta. flickcurl_photos_geo_setPerms() uses
* public, contact, friend and family.
*
* A Photo permission.
*/
typedef struct {
int is_public;
int is_contact;
int is_friend;
int is_family;
int perm_comment;
int perm_addmeta;
} flickcurl_perms;
/**
* flickcurl_tag_namespace:
* @name: Name
* @usage_count: Number of uses of this namespace
* @predicates_count: Number of predicates for this namespace
*
* A machine tags namespace
*/
typedef struct {
char *name;
int usage_count;
int predicates_count;
} flickcurl_tag_namespace;
/**
* flickcurl_tag_predicate_value:
* @usage_count: Number of uses of this predicate-value pair
* @predicate: Predicate name or NULL
* @used_in_namespace_count: number of namespaces this pair is used in
* @value: Value or NULL
*
* A machine tag predicate-value pair
*/
typedef struct {
int usage_count;
char *predicate;
int used_in_namespace_count;
char *value;
} flickcurl_tag_predicate_value;
/**
* flickcurl_institution:
* @nsid: NSID
* @date_launch: Date launched in unix timestamp format
* @name: Institution name
* @urls: Array of related urls.
*
* Flickr Commons institution
*
*/
typedef struct {
char *nsid;
int date_launch;
char *name;
char **urls;
} flickcurl_institution;
/**
* flickcurl_institution_url_type:
* @FLICKCURL_INSTITUTION_URL_NONE: internal
* @FLICKCURL_INSTITUTION_URL_SITE: site URL
* @FLICKCURL_INSTITUTION_URL_LICENSE: license URL
* @FLICKCURL_INSTITUTION_URL_FLICKR: flickr photos page URL
* @FLICKCURL_INSTITUTION_URL_LAST: internal offset to last in enum list
*
* Institution URL type
*/
typedef enum {
FLICKCURL_INSTITUTION_URL_NONE = 0,
FLICKCURL_INSTITUTION_URL_SITE,
FLICKCURL_INSTITUTION_URL_LICENSE,
FLICKCURL_INSTITUTION_URL_FLICKR,
FLICKCURL_INSTITUTION_URL_LAST = FLICKCURL_INSTITUTION_URL_FLICKR
} flickcurl_institution_url_type;
/**
* flickcurl_location:
* @latitude: The latitude from -90 to 90
* @longitude: The longitude from -180 to 180
* @accuracy: Recorded accuracy level of the location.
* World level is 1, Country is ~3, Region ~6, City ~11, Street
* ~16. Current range is 1-16. (<0 for unknown accuracy)
*
* A Location in the world with an optional accuracy
*/
typedef struct {
double latitude;
double longitude;
int accuracy;
} flickcurl_location;
/**
* flickcurl_note:
* @id: note identifier (per-photo)
* @author: author (may be NULL)
* @authorname: author real name (may be NULL)
* @x: The left coordinate of the note
* @y: The top coordinate of the note
* @w: The width of the note
* @h: The height of the note
* @text: The description of the note
*
* A note attached to a rectangular area on a photo.
*
* A Photo Note.
*/
typedef struct flickcurl_note_s {
int id;
char* author;
char* authorname;
unsigned int x;
unsigned int y;
unsigned int w;
unsigned int h;
char* text;
} flickcurl_note;
/**
* flickcurl_place_type:
* @FLICKCURL_PLACE_LOCATION: a general location
* @FLICKCURL_PLACE_NEIGHBOURHOOD: neighborhood (narrowest place)
* @FLICKCURL_PLACE_NEIGHBORHOOD: deprecated
* @FLICKCURL_PLACE_LOCALITY: locality
* @FLICKCURL_PLACE_COUNTY: county
* @FLICKCURL_PLACE_REGION: region
* @FLICKCURL_PLACE_COUNTRY: country
* @FLICKCURL_PLACE_CONTINENT: continent (widest place) (Flickcurl 1.8)
* @FLICKCURL_PLACE_LAST: internal offset to last in enum list
*
* Place type
*/
typedef enum {
FLICKCURL_PLACE_LOCATION,
FLICKCURL_PLACE_NEIGHBOURHOOD,
FLICKCURL_PLACE_NEIGHBORHOOD = FLICKCURL_PLACE_NEIGHBOURHOOD,
FLICKCURL_PLACE_LOCALITY,
FLICKCURL_PLACE_COUNTY,
FLICKCURL_PLACE_REGION,
FLICKCURL_PLACE_COUNTRY,
FLICKCURL_PLACE_CONTINENT,
FLICKCURL_PLACE_LAST = FLICKCURL_PLACE_CONTINENT
} flickcurl_place_type;
/**
* flickcurl_place_type_info:
* @type: type enum ID
* @id: web service call ID
* @name: name
*
* Place type information
*/
typedef struct {
flickcurl_place_type type;
int id;
char *name;
} flickcurl_place_type_info;
/**
* flickcurl_place:
* @names: Array of place names
* @ids: Array of place IDs
* @urls: Array of place urls.
* @type: Location type of index 0 (the location) usually
* FLICKCURL_PLACE_LOCATION but may be wider
* @woe_ids: Array of WOE IDs
* @location: location for this place
* @count: count of photos (when used for flickcurl_places_placesForUser() )
* @shapedata: DEPRECATED for @shape->data: XML string of <shapedata> element and content elements when present (or NULL)
* @shapedata_length: DEPRECATED for @shape->data_length: size of @shapedate string
* @shapefile_urls: DEPRECATED for @shape->file_urls: NULL-terminated array of pointers to shapefile URLs when present (or NULL)
* @shapefile_urls_count: DEPRECATED for @shape->file_urls_count: number of entries in @shapefile_urls array
* @shape: shapefile data (inline data and shapefile urls)
* @timezone: timezone of location in 'zoneinfo' format such as “Europe/Paris”.
*
* A Place.
*
* Index 0 in the array is the location itself. flickcurl_get_place_type_label()
* can give labels for the array indexes of type #flickcurl_place_type.
*
*/
typedef struct {
char* names[FLICKCURL_PLACE_LAST+1];
char* ids[FLICKCURL_PLACE_LAST+1];
char* urls[FLICKCURL_PLACE_LAST+1];
flickcurl_place_type type;
char* woe_ids[FLICKCURL_PLACE_LAST+1];
flickcurl_location location;
int count;
/* DEPRECATED shapefile fields; now are pointers into @shape */
char* shapedata;
size_t shapedata_length;
char** shapefile_urls;
int shapefile_urls_count;
struct flickcurl_shapedata_s* shape;
char* timezone;
} flickcurl_place;
/**
* flickcurl_shapedata:
* @created: creation date as a UNIX timestamp
* @alpha: Alpha value
* @points: Number of points
* @edges: Number of edges
* @data: XML string of <shapedata> element and content elements when present (or NULL)
* @data_length: size of @shapedate string
* @file_urls: NULL-terminated array of pointers to shapefile URLs when present (or NULL)
* @file_urls_count: number of entries in @shapefile_urls array
* @is_donuthole: non-0 if shape IS a donut (a hole)
* @has_donuthole: non-0 if shape HAS a donut inside it and it is worth calling places.getShapeHistory on it / flickcurl_places_getShapeHistory()
*
* Shape data for a place.
*
**/
typedef struct flickcurl_shapedata_s {
int created;
double alpha;
int points;
int edges;
char* data;
size_t data_length;
char** file_urls;
int file_urls_count;
int is_donuthole;
int has_donuthole;
} flickcurl_shapedata;
/**
* flickcurl_tag:
* @photo: Associated photo object if any
* @id: tag identifier
* @author: author (may be NULL)
* @authorname: author real name (may be NULL)
* @raw: raw tag as user typed it (may be NULL, but if so @cooked must be not NULL)
* @cooked: cooked tag (may be NULL, but if so @raw must not be NULL)
* @machine_tag: boolean (non-0 true) if tag is a Machine Tag
* @count: tag count in a histogram (or 0)
*
* A tag OR a posting of a tag about a photo by a user OR a tag in a histogram
*
* Most of these fields may be NULL, 0 for numbers
* but not all. Either @raw or @cooked MUST appear.
*
* A Photo Tag.
*/
typedef struct flickcurl_tag_s {
struct flickcurl_photo_s* photo;
char* id;
char* author;
char* authorname;
char* raw;
char* cooked;
int machine_tag;
int count;
} flickcurl_tag;
/**
* flickcurl_tag_cluster:
* @count: number of tags
* @tags: tags in this cluster
*
* A cluster (set) of tag names
*/
typedef struct {
int count;
char** tags;
} flickcurl_tag_cluster;
/**
* flickcurl_tag_clusters:
* @count: number of tag clusters
* @clusters: tag clusters
*
* A set of clusters of tag names
*/
typedef struct {
int count;
flickcurl_tag_cluster** clusters;
} flickcurl_tag_clusters;
/**
* flickcurl_photo_field:
* @string: string field value
* @integer: integer field value
* @type: field type
*
* Field of a photo structure
*/
typedef struct {
char* string;
flickcurl_photo_field_type integer;
flickcurl_field_value_type type;
} flickcurl_photo_field;
/**
* flickcurl_video:
* @ready: video is ready flag
* @failed: video failed
* @pending: video pending
* @duration: video duration in seconds
* @width: video width
* @height: video height
*
* A video.
*
**/
typedef struct {
int ready;
int failed;
int pending;
int duration;
int width;
int height;
} flickcurl_video;
/**
* flickcurl_photo:
* @id: photo/video ID
* @uri: photo/video page URI
* @tags: array of tags (may be NULL)
* @tags_count: size of tags array
* @fields: metadata fields
* @place: place
* @video: video (may be NULL)
* @media_type: "photo" or "video"
* @notes: array of notes (may be NULL)
* @notes_count: size of notes array
*
* A photo or video.
*
*/
typedef struct flickcurl_photo_s {
char *id;
char *uri;
flickcurl_tag** tags;
int tags_count;
flickcurl_photo_field fields[PHOTO_FIELD_LAST + 1];
flickcurl_place* place;
flickcurl_video* video;
char *media_type;
flickcurl_note** notes;
int notes_count;
} flickcurl_photo;
/**
* flickcurl_license:
* @id: license ID
* @url: license URL
* @name: license short name
*
* A photo license.
*
*/
typedef struct {
/* license id */
int id;
/* license url or NULL if none */
char *url;
/* license name */
char *name;
} flickcurl_license;
/**
* flickcurl_contact:
* @nsid: NSID
* @username: user name
* @iconserver: icon server
* @realname: real name
* @is_friend: is friend boolean
* @is_family: is family boolean
* @ignored: ignored
* @uploaded: count of number of photos uploaded (for flickcurl_contacts_getListRecentlyUploaded() )
*
* A contact.
*/
typedef struct flickcurl_contact_s {
char *nsid;
char *username;
int iconserver;
char *realname;
int is_friend;
int is_family;
int ignored;
int uploaded;
} flickcurl_contact;
/**
* flickcurl_context_type:
* @FLICKCURL_CONTEXT_SET: context is a set
* @FLICKCURL_CONTEXT_POOL: context is a pool
* @FLICKCURL_CONTEXT_PREV: context is a previous photo
* @FLICKCURL_CONTEXT_NEXT: context is a next photo
* @FLICKCURL_CONTEXT_NONE: internal
* @FLICKCURL_CONTEXT_LAST: internal offset to last in enum list
*
* Types of photo context: relationship between photo and another item
*/
typedef enum {
FLICKCURL_CONTEXT_NONE,
FLICKCURL_CONTEXT_SET, /* other thing is a set */
FLICKCURL_CONTEXT_POOL, /* other thing is a pool */
FLICKCURL_CONTEXT_PREV, /* other thing is a previous photo */
FLICKCURL_CONTEXT_NEXT, /* other thing is a next photo */
FLICKCURL_CONTEXT_LAST = FLICKCURL_CONTEXT_NEXT
} flickcurl_context_type;
/**
* flickcurl_context:
* @type: Type of context
* @id: ID
* @secret: secret
* @server: server
* @farm: farm
* @title: use title
* @url: url
* @thumb: thumbnail
*
* Photo use context.
*/
typedef struct {
flickcurl_context_type type;
char* id;
char* secret; /* may be NULL */
int server; /* may be 0 */
int farm; /* may be 0 */
char* title; /* may be NULL */
char* url; /* may be NULL */
char* thumb; /* may be NULL */
} flickcurl_context;
/**
* flickcurl_exif:
* @tagspace: Tagspace name
* @tagspaceid: ID of tagspace
* @tag: tag ID
* @label: tag label
* @raw: raw tag name
* @clean: pretty-formatted tag name
*
* An EXIF tag.
*/
typedef struct {
char* tagspace;
int tagspaceid;
int tag;
char* label;
char* raw;
char* clean;
} flickcurl_exif;
/**
* flickcurl_group:
* @nsid: NSID
* @name: Group Name
* @description: Description
* @lang: Language
* @is_admin: is admin flag
* @is_pool_moderated: is the pool moderated
* @is_eighteenplus: 18+ group
* @privacy: privacy level
* @photos: photos in group count
* @iconserver: icon server ID
* @members: member count
* @throttle_count: throttle count
* @throttle_mode: throttle mode (day, ...)
* @throttle_remaining: throttle remaining
*
* A group.
*/
typedef struct {
char* nsid;
char* name;
char* description;
char* lang;
int is_admin;
int is_pool_moderated;
int is_eighteenplus;
int privacy;
int photos;
int iconserver;
int members;
int throttle_count;
char* throttle_mode;
int throttle_remaining;
} flickcurl_group;
/**
* flickcurl_blog:
* @id: ID
* @name: Group Name
* @needs_password: needs password
* @url: URL
*
* A blog.
*/
typedef struct {
char* id;
char* name;
int needs_password;
char* url;
} flickcurl_blog;
/**
* flickcurl_blog_service:
* @id: ID
* @name: Service Name
*
* A blog service.
*/
typedef struct {
char* id;
char* name;
} flickcurl_blog_service;
/**
* flickcurl_category:
* @id: category ID
* @name: Name
* @path: path to category
* @count: count
*
* A category.
*/
struct flickcurl_category_s {
char* id;
char* name;
char* path;
int count;
struct flickcurl_category_s** categories;
int categories_count;
flickcurl_group** groups;
int groups_count;
};
typedef struct flickcurl_category_s flickcurl_category;
/**
* flickcurl_gallery:
* @id: gallery ID
* @url: URL of gallery
* @owner: owner NSID
* @date_create: creation date of gallery
* @date_update: update / last modified date of gallery
* @primary_photo: primary photo for the gallery
* @count_photos: number of photos in the gallery
* @count_videos: number of photos in the gallery
* @title: Gallery title
* @description: Gallery description
*
* A photo gallery.
*
* The list of photos in the gallery is available via the API calls
* flickcurl_galleries_getPhotos() or
* flickcurl_galleries_getPhotos_params()
*
*/
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;
/**
* flickcurl_photoset:
* @id: photoset ID
* @primary: primary photo ID
* @secret: secret
* @server: server
* @farm: farm
* @photos_count: count of photos in set
* @title: title of photoset
* @description: description of photoset (may be NULL)
* @photos: photos in a photoset (may be NULL)
*
* A photoset.
*
*/
typedef struct {
char *id;
char *primary;
char *secret;
int server;
int farm;
int photos_count;
char* title;
char *description;
struct flickcurl_photo_s** photos;
} flickcurl_photoset;
/**
* flickcurl_collection:
* @id: ID
* @child_count: children??
* @date_created: date created
* @iconlarge: large icon url
* @iconsmall: small icon url
* @server: server ID
* @secret: secret
* @title: title
* @description: description
* @photos: icon photos
* @photos_count: number of icon photos
* @collections: sub-collections
* @collections_count: number of sub-collections
* @sets: photo sets
* @sets_count: number of photo sets
*
* A photo collection. May contain collections OR sets but not both.
*/
struct flickcurl_collection_s {
char* id;
int child_count;
int date_created;
char *iconlarge;
char *iconsmall;
int server;
char *secret;
char *title;
char *description;
flickcurl_photo **photos;
int photos_count;
struct flickcurl_collection_s** collections;
int collections_count;
struct flickcurl_photoset_s** sets;
int sets_count;
};
typedef struct flickcurl_collection_s flickcurl_collection;
/**
* flickcurl_person_field_type:
* @PERSON_FIELD_isadmin: is admin field boolean
* @PERSON_FIELD_ispro: is pro field boolean
* @PERSON_FIELD_iconserver: icon server integer
* @PERSON_FIELD_iconfarm: icon farm integer
* @PERSON_FIELD_username: username
* @PERSON_FIELD_realname: real name
* @PERSON_FIELD_mbox_sha1sum: Email SHA1 sum
* @PERSON_FIELD_location: location
* @PERSON_FIELD_photosurl: photos URL
* @PERSON_FIELD_profileurl: profile URL
* @PERSON_FIELD_mobileurl: mobile URL
* @PERSON_FIELD_photos_firstdate: photos first date
* @PERSON_FIELD_photos_firstdatetaken: photos first date taken
* @PERSON_FIELD_photos_count: photos count
* @PERSON_FIELD_photos_views: photos views
* @PERSON_FIELD_favedate: favorite date
* @PERSON_FIELD_none: internal
* @PERSON_FIELD_FIRST: internal offset to first in enum list
* @PERSON_FIELD_LAST: internal offset to last in enum list
*
* Fields of a flickcurl_person*
*/
typedef enum {
PERSON_FIELD_none,
PERSON_FIELD_isadmin, /* boolean */
PERSON_FIELD_ispro, /* boolean */
PERSON_FIELD_iconserver, /* integer */
PERSON_FIELD_iconfarm, /* integer - not in API docs */
PERSON_FIELD_username, /* string */
PERSON_FIELD_realname, /* string */
PERSON_FIELD_mbox_sha1sum, /* string */
PERSON_FIELD_location, /* string */
PERSON_FIELD_photosurl, /* string */
PERSON_FIELD_profileurl, /* string */
PERSON_FIELD_mobileurl, /* string - not in API docs */
PERSON_FIELD_photos_firstdate, /* dateTime */
PERSON_FIELD_photos_firstdatetaken, /* dateTime */
PERSON_FIELD_photos_count, /* integer */
PERSON_FIELD_photos_views, /* integer - not in API docs */
PERSON_FIELD_favedate, /* dateTime - flickr.photos.getFavorites() */
PERSON_FIELD_FIRST = PERSON_FIELD_isadmin,
PERSON_FIELD_LAST = PERSON_FIELD_favedate
} flickcurl_person_field_type;
/**
* flickcurl_person_field:
* @string: string field value
* @integer: integer field value
* @type: field type
*
* Field of a person structure
*/
typedef struct {
char* string;
flickcurl_person_field_type integer;
flickcurl_field_value_type type;
} flickcurl_person_field;
/**
* flickcurl_person:
* @nsid: user NSID
* @fields: person fields
*
* A user.
*/
typedef struct {
char *nsid;
flickcurl_person_field fields[PERSON_FIELD_LAST + 1];
} flickcurl_person;
/**
* flickcurl_photos_list:
* @format: requested content format or NULL if a list of photos was wanted. On the result from API calls this is set to the requested feed format or "xml" if none was given.
* @photos: list of photos if @format is NULL. Also may be NULL on failure.
* @photos_count: number of photos in @photos array if @format is NULL. Undefined on failure
* @content: raw content if @format is not NULL. Also may be NULL on failure.
* @content_length: size of @content if @format is not NULL. Undefined on failure
* @page: current photo list page
* @per_page: current photo list per-page
* @total_count: total number of photos available of which the current @page and @per_page is a slice
*
* Photos List result.
*/
typedef struct {
char *format;
flickcurl_photo** photos;
int photos_count;
char* content;
size_t content_length;
int page;
int per_page;
int total_count;
} flickcurl_photos_list;
/**
* flickcurl_photos_list_params:
* @version: structure version (currently 1)
* @extras: A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: <code>license</code>, <code>date_upload</code>, <code>date_taken</code>, <code>owner_name</code>, <code>icon_server</code>, <code>original_format</code>, <code>last_update</code>, <code>geo</code>, <code>tags</code>, <code>machine_tags</code>. <code>'media</code> will return an extra media=VALUE for VALUE "photo" or "video". API addition 2008-04-07. (or NULL)
* @per_page: Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or < 0)
* @page: The page of results to return. If this argument is omitted, it defaults to 1. (or < 0)
* @format: Feed format. If given, the photos list result will return raw content. This paramter is EXPERIMENTAL as annouced 2008-08-25 http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/ The current formats are <code>feed-rss_100</code> for RSS 1.0, <code>feed-rss_200</code> for RSS 2.0, <code>feed-atom_10</code> for Atom 1.0, <code>feed-georss</code> for RSS 2.0 with GeoRSS and W3C Geo for geotagged photos, <code>feed-geoatom</code> for Atom 1.0 with GeoRSS and W3C Geo for geotagged photos, <code>feed-geordf</code> for RSS 1.0 with GeoRSS and W3C Geo for geotagged photos, <code>feed-kml</code> for KML 2.1, <code>feed-kml_nl</code> for KML 2.1 network link (or NULL)
*
* Photos List API parameters for multiple functions that return
* a #flickcurl_photos_list
*
* Use flickcurl_get_extras_format_info() to enumerate the list of
* known extra values and flickcurl_get_feed_format_info() to
* enumerate the list of known format values.
*/
typedef struct {
/* NOTE: Bump @version and update
* flickcurl_photos_list_params_init() when adding fields
*/
int version; /* 1 */
const char* format;
const char* extras;
int per_page;
int page;
} flickcurl_photos_list_params;
/**
* flickcurl_upload_params:
* @photo_file: photo filename
* @title: title or NULL
* @description: description of photo (HTML) (or NULL)
* @tags: space-separated list of tags (or NULL)
* @is_public: is public photo boolean (non-0 true)
* @is_friend: is friend photo boolean (non-0 true)
* @is_family: is family photo boolean (non-0 true)
* @safety_level: 1=safe, 2=moderate, 3=restricted
* @content_type: 1=photo, 2=screenshot, 3=other/artwork
*
* Photo upload parameters
*/
typedef struct {
const char* photo_file;
const char *title;
const char *description;
const char *tags;
int is_public;
int is_friend;
int is_family;
int safety_level;
int content_type;
} flickcurl_upload_params;
/**
* flickcurl_upload_status:
* @photoid: photo ID that was uploaded/replaced (upload only)
* @secret: secret of photo uploaded (replace only)
* @originalsecret: secret of original photo (replace only)
* @ticketid: ticket ID for asynchronous upload (replace only)
*
* An upload response.
*
*/
typedef struct {
char *photoid;
char *secret;
char *originalsecret;
char *ticketid;
} flickcurl_upload_status;
/**
* flickcurl_search_params:
* @user_id: The NSID of the user who's photo to search (or "me" or NULL).
* @tags: A comma-delimited list of tags (or NULL)
* @tag_mode: Either 'any' for an OR combination of tags, or 'all' for an AND combination. Defaults to 'any' if not specified (or NULL)
* @text: Free text search (or NULL)
* @min_upload_date: Minimum upload date as a unix timestamp (or 0)
* @max_upload_date: Maximum upload date as a unix timestamp (or 0)
* @min_taken_date: Minimum taken date in the form of a mysql datetime (or NULL)
* @max_taken_date: Maximum taken date in the form of a mysql datetime (or NULL)
* @license: Comma-separated list of photo licenses (or NULL)
* @sort: The order in which to sort returned photos. Defaults to date-posted-desc. The possible values are: date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, and relevance (or NULL)
* @privacy_filter: Return photos only matching a certain privacy level.
* @bbox: A comma-delimited list of 4 values defining the Bounding Box of the area that will be searched.
* @accuracy: Recorded accuracy level of the location information. Current range is 1-16
* @safe_search: Safe search setting: 1 safe, 2 moderate, 3 restricted (or 0).
* @content_type: Content Type setting: 1 for photos only, 2 for screenshots only, 3 for 'other' only, 4 for all types. (or 0)
* @machine_tags: Machine tag search syntax
* @machine_tag_mode: Either 'any' for an OR combination of tags, or 'all' for an AND combination. Defaults to 'any' if not specified.
* @group_id: The id of a group who's pool to search. If specified, only matching photos posted to the group's pool will be returned. (or NULL)
* @extras: A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: <code>license</code>, <code>date_upload</code>, <code>date_taken</code>, <code>owner_name</code>, <code>icon_server</code>, <code>original_format</code>, <code>last_update</code>, <code>geo</code>, <code>tags</code>, <code>machine_tags</code>, <code>o_dims</code>, <code>views</code>, <code>media</code>, <code>path_alias</code>, <code>url_sq</code>, <code>url_t</code>, <code>url_s</code>, <code>url_m</code>, <code>url_o</code>. (or NULL)
* @per_page: Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or 0)
* @page: The page of results to return. If this argument is omitted, it defaults to 1. (or 0)
* @place_id: A Flickr place id. (only used if bbox argument isn't present). Experimental. Geo queries require some sort of limiting agent in order to prevent the database from crying. This is basically like the check against "parameterless searches" for queries without a geo component. A tag, for instance, is considered a limiting agent as are user defined min_date_taken and min_date_upload parameters - If no limiting factor is passed we return only photos added in the last 12 hours (though we may extend the limit in the future) (or NULL)
* @media: "photos" or "videos" (or NULL)
* @has_geo: non-0 if a photo has been geotagged (or 0)
* @lat: A valid latitude, in decimal format, for doing radial geo queries (or ignored if radius is 0.0)
* @lon: A valid longitude, in decimal format, for doing radial geo queries (or ignored if radius is 0.0)
* @radius: A valid radius used for geo queries, greater than zero and less than 20 miles (or 32 kilometers), for use with point-based geo queries. The default value is 5 (km) (or 0.0 for not used)
* @radius_units: The unit of measure when doing radial geo queries. Valid options are "mi" (miles) and "km" (kilometers). The default is "km" (or NULL)
* @contacts: (Experimental) Requires @user_id field be set and limits queries to photos beloing to that user's photos. Valid arguments are 'all' or 'ff' for just friends and family.
* @woe_id: A 32-bit identifier that uniquely represents spatial entities. (not used if bbox argument is present). Same restrictions as @place_id (or 0)
* @geo_context: A numeric value representing the photo's geotagginess beyond latitude and longitude. The current list of context IDs is 0: not defined, 1: indoors and 2: outdoors. Geo queries require some sort of limiting agent in order to prevent the database from crying (or 0)
* @is_commons: Limit the scope of the search to only photos that are part of the Flickr Commons project. Default is false (or 0)
* @in_gallery: Limit the scope of the search to only photos that are in a gallery. Default is false, search all photos.
*
* Search parameters for flickcurl_photos_search()
*/
typedef struct {
char* user_id;
char* tags;
char* tag_mode;
char* text;
int min_upload_date;
int max_upload_date;
char* min_taken_date;
char* max_taken_date;
char* license;
char* sort;
char* privacy_filter;
char* bbox;
int accuracy;
int safe_search;
int content_type;
char* machine_tags;
char* machine_tag_mode;
char* group_id;
char* extras;
int per_page;
int page;
char* place_id;
char* media;
int has_geo;
double lat;
double lon;
double radius;
char* radius_units;
char* contacts;
int woe_id;
int geo_context;
int is_commons;
int in_gallery;
} flickcurl_search_params;
/**
* flickcurl_stat:
* @views: number of views of item
* @comments: number of comments on item
* @favorites: number of item favorites
* @name: name assocated with stat (e.g. domain name)
* @url: URL associated with stat (e.g. referrer URL)
* @searchterms: search term assocated with stat
*
* Statistics object
*/
typedef struct {
int views;
int comments;
int favorites;
char *name;
char *url;
char *searchterms;
} flickcurl_stat;
/**
* flickcurl_view_stats
* @total: total view
* @photos: number of photo views
* @photostreams: number of photostream views
* @sets: number of set views
* @collections: number of collection views
*
* Total views statistics
*/
typedef struct {
int total;
int photos;
int photostreams;
int sets;
int collections;
} flickcurl_view_stats;
/**
* flickcurl_size:
* @label: label
* @width: width in pixels
* @height: height in pixels
* @source: raw image source URL
* @url: url of photo page
* @media: 'photo' or 'video'
*
* A photo at a size.
*
*/
typedef struct {
char *label;
int width;
int height;
char *source;
char *url;
char* media;
} flickcurl_size;
/**
* flickcurl_ticket:
* @id: ticket ID
* @photoID: photoID
* @complete: complete flag
* @invalid: invalid flag
*
* An aysnchronous photo upload ticket.
*
*/
typedef struct {
int id;
int photoid;
int complete;
int invalid;
} flickcurl_ticket;
/**
* flickcurl_user_upload_status:
* @username: user name
* @bandwidth_maxbytes: max bytes
* @bandwidth_maxkb: max kbytes
* @bandwidth_usedbytes: used bytes
* @bandwidth_usedkb: used kbytes
* @bandwidth_remainingbytes: remaining bytes
* @bandwidth_remainingkb: remaining kbytes
* @filesize_maxbytes: max file size in bytes
* @filesize_maxkb: max file size in kbytes
* @sets_created: number of sets created
* @sets_remaining: remaining sets: 0, 1, 2, 3 or "lots"
*
* A user's upload status
*
*/
typedef struct {
char* username;
int bandwidth_maxbytes;
int bandwidth_maxkb;
int bandwidth_usedbytes;
int bandwidth_usedkb;
int bandwidth_remainingbytes;
int bandwidth_remainingkb;
int filesize_maxbytes;
int filesize_maxkb;
int sets_created;
char* sets_remaining;
} flickcurl_user_upload_status;
/**
* flickcurl_serializer:
*
* Serializer from Photo and metadata to RDF triples
*/
struct flickcurl_serializer_s;
/**
* flickcurl_term_type:
* @FLICKCURL_TERM_TYPE_RESOURCE: resource/URI term
* @FLICKCURL_TERM_TYPE_BLANK: blank node/anonymous term
* @FLICKCURL_TERM_TYPE_LITERAL: literal term
*
* Triple part types
*
* These are the same enumeration values as used by Raptor V2
* raptor_term_type enumeration and Raptor V1 raptor_identifier_type
* enumeration.
*/
typedef enum {
FLICKCURL_TERM_TYPE_RESOURCE = 1,
FLICKCURL_TERM_TYPE_BLANK = 2,
FLICKCURL_TERM_TYPE_LITERAL = 5
} flickcurl_term_type;
/**
* flickcurl_serializer_factory:
* @version: API version
* @emit_namespace: (V1) emit namespace callback
* @emit_triple: (V1) emit a triple
* @emit_finish: (V1) finish emitting
*
* Triples serializer factory
*
* API version 1 is all that is supported.
*/
typedef struct {
int version;
void (*emit_namespace)(void* user_data, const char* prefix, size_t prefix_len, const char* uri, size_t uri_len);
void (*emit_triple)(void* user_data,
const char* subject, int subject_type,
const char* predicate_nspace, const char* predicate_name,
const char *object, int object_type,
const char *datatype_uri);
void (*emit_finish)(void* user_data);
} flickcurl_serializer_factory;
typedef struct flickcurl_serializer_s flickcurl_serializer;
FLICKCURL_API
flickcurl_serializer* flickcurl_new_serializer(flickcurl* fc, void* data, flickcurl_serializer_factory* factory);
FLICKCURL_API
void flickcurl_free_serializer(flickcurl_serializer* serializer);
FLICKCURL_API
int flickcurl_serialize_photo(flickcurl_serializer* fcs, flickcurl_photo* photo);
/**
* flickcurl_member:
* @nsid: NSID
* @username: User name
* @iconserver: icon server
* @iconfarm: icon farm
* @member_type: member type - 1: narwhal, 2: member, 3: moderator 4: admin
*
* Member in a group
*/
typedef struct {
char *nsid;
char *username;
int iconserver;
int iconfarm;
int member_type;
} flickcurl_member;
/* callback handlers */
/**
* flickcurl_message_handler:
* @user_data: user data pointer
* @message: error message
*
* Flickcurl Message handler callback.
*/
typedef void (*flickcurl_message_handler)(void *user_data, const char *message);
/**
* flickcurl_tag_handler:
* @user_data: user data pointer
* @tag: tag
*
* Flickcurl Tag handler callback.
*/
typedef void (*flickcurl_tag_handler)(void *user_data, flickcurl_tag* tag);
/**
* flickcurl_curl_setopt_handler:
* @user_data: user data pointer
* @curl_handle: curl CURL* handle
*
* Flickcurl curl options handle callback.
*
* For use with flickcurl_set_curl_setopt_handler() to set curl
* handle options once Flickcurl has created the CURL* handle
* internally.
*
* NOTE: The type of @curl_handle is void* so that curl headers are
* optional when compiling against flickcurl.
*
* 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.
*
*/
typedef void (*flickcurl_curl_setopt_handler)(void *user_data, void *curl_handle);
/* library constants */
FLICKCURL_API
extern const char* const flickcurl_short_copyright_string;
FLICKCURL_API
extern const char* const flickcurl_copyright_string;
FLICKCURL_API
extern const char* const flickcurl_license_string;
FLICKCURL_API
extern const char* const flickcurl_home_url_string;
FLICKCURL_API
extern const char* const flickcurl_version_string;
FLICKCURL_API
extern const char* const flickcurl_flickr_service_uri;
FLICKCURL_API
extern const char* const flickcurl_flickr_upload_service_uri;
FLICKCURL_API
extern const char* const flickcurl_flickr_replace_service_uri;
/* library init - call once before creating anything */
FLICKCURL_API
int flickcurl_init(void);
/* library cleanup - call once before exit */
FLICKCURL_API
void flickcurl_finish(void);
/* flickcurl* object constructor */
FLICKCURL_API
flickcurl* flickcurl_new(void);
FLICKCURL_API
flickcurl* flickcurl_new_with_handle(void* curl_handle);
/* flickcurl* object destructor */
FLICKCURL_API
void flickcurl_free(flickcurl *fc);
/* flickcurl* object set methods */
FLICKCURL_API
void flickcurl_set_curl_setopt_handler(flickcurl *fc, flickcurl_curl_setopt_handler curl_handler, void* curl_handler_data);
FLICKCURL_API
void flickcurl_set_service_uri(flickcurl *fc, const char *uri);
FLICKCURL_API
void flickcurl_set_upload_service_uri(flickcurl *fc, const char *uri);
FLICKCURL_API
void flickcurl_set_replace_service_uri(flickcurl *fc, const char *uri);
FLICKCURL_API
void flickcurl_set_api_key(flickcurl* fc, const char *api_key);
FLICKCURL_API
void flickcurl_set_auth_token(flickcurl *fc, const char* auth_token);
FLICKCURL_API
void flickcurl_set_data(flickcurl *fc, void* data, size_t data_length);
FLICKCURL_API
void flickcurl_set_error_handler(flickcurl* fc, flickcurl_message_handler error_handler, void *error_data);
FLICKCURL_API
void flickcurl_set_http_accept(flickcurl* fc, const char *value);
FLICKCURL_API
void flickcurl_set_proxy(flickcurl* fc, const char *proxy);
FLICKCURL_API
void flickcurl_set_request_delay(flickcurl *fc, long delay_msec);
FLICKCURL_API
void flickcurl_set_shared_secret(flickcurl* fc, const char *secret);
FLICKCURL_API
void flickcurl_set_sign(flickcurl *fc);
FLICKCURL_API
void flickcurl_set_tag_handler(flickcurl* fc, flickcurl_tag_handler tag_handler, void *tag_data);
FLICKCURL_API
void flickcurl_set_user_agent(flickcurl* fc, const char *user_agent);
FLICKCURL_API
void flickcurl_set_write(flickcurl *fc, int is_write);
FLICKCURL_API
void flickcurl_set_xml_data(flickcurl *fc, xmlDocPtr doc);
FLICKCURL_API
int flickcurl_get_current_request_wait(flickcurl *fc);
/* flickcurl* object set methods */
FLICKCURL_API
const char* flickcurl_get_api_key(flickcurl *fc);
FLICKCURL_API
const char* flickcurl_get_shared_secret(flickcurl *fc);
FLICKCURL_API
const char* flickcurl_get_auth_token(flickcurl *fc);
/* other flickcurl class destructors */
FLICKCURL_API
void flickcurl_free_collection(flickcurl_collection *collection);
FLICKCURL_API
void flickcurl_free_collections(flickcurl_collection** collections);
FLICKCURL_API
void flickcurl_free_gallery(flickcurl_gallery *gallery);
FLICKCURL_API
void flickcurl_free_tag_namespace(flickcurl_tag_namespace *tag_nspace);
FLICKCURL_API
void flickcurl_free_tag_namespaces(flickcurl_tag_namespace** tag_nspaces);
FLICKCURL_API
void flickcurl_free_tag(flickcurl_tag *t);
FLICKCURL_API
void flickcurl_free_tag_clusters(flickcurl_tag_clusters *tcs);
FLICKCURL_API
void flickcurl_free_photo(flickcurl_photo *photo);
FLICKCURL_API
void flickcurl_free_photos(flickcurl_photo** photos);
FLICKCURL_API
void flickcurl_free_photos_list(flickcurl_photos_list* photos_list);
FLICKCURL_API
void flickcurl_free_photoset(flickcurl_photoset *photoset);
FLICKCURL_API
void flickcurl_free_photosets(flickcurl_photoset **photosets_object);
/* void flickcurl_free_license(flickcurl_person *license); */
FLICKCURL_API
void flickcurl_free_person(flickcurl_person *person);
FLICKCURL_API
void flickcurl_free_persons(flickcurl_person** persons);
FLICKCURL_API
void flickcurl_free_context(flickcurl_context *context);
FLICKCURL_API
void flickcurl_free_contexts(flickcurl_context** contexts);
FLICKCURL_API
void flickcurl_free_institution(flickcurl_institution *institution);
FLICKCURL_API
void flickcurl_free_institutions(flickcurl_institution **institutions_object);
FLICKCURL_API
void flickcurl_free_perms(flickcurl_perms *perms);
FLICKCURL_API
void flickcurl_free_location(flickcurl_location *location);
FLICKCURL_API
void flickcurl_free_exif(flickcurl_exif *exif);
FLICKCURL_API
void flickcurl_free_exifs(flickcurl_exif **exifs_object);
FLICKCURL_API
void flickcurl_free_ticket(flickcurl_ticket *ticket);
FLICKCURL_API
void flickcurl_free_tickets(flickcurl_ticket **tickets_object);
FLICKCURL_API
void flickcurl_free_user_upload_status(flickcurl_user_upload_status *u);
FLICKCURL_API
void flickcurl_free_place(flickcurl_place* place);
FLICKCURL_API
void flickcurl_free_places(flickcurl_place** places_object);
FLICKCURL_API
void flickcurl_free_place_type_infos(flickcurl_place_type_info **ptis_object);
FLICKCURL_API
void flickcurl_free_shape(flickcurl_shapedata *shape);
FLICKCURL_API
void flickcurl_free_shapes(flickcurl_shapedata **shapes_object);
FLICKCURL_API
void flickcurl_free_video(flickcurl_video *video);
FLICKCURL_API
void flickcurl_free_tag_predicate_value(flickcurl_tag_predicate_value* tag_pv);
FLICKCURL_API
void flickcurl_free_tag_predicate_values(flickcurl_tag_predicate_value **tag_pvs);
/* utility methods */
/* get an image URL for a photo in some size */
FLICKCURL_API
char* flickcurl_photo_as_source_uri(flickcurl_photo *photo, const char c);
/* get a photo ID from an image URL */
FLICKCURL_API
char* flickcurl_source_uri_as_photo_id(const char *uri);
/* get a page URL for a photo */
FLICKCURL_API
char* flickcurl_photo_as_page_uri(flickcurl_photo *photo);
/* get a owner icon URL for a photo */
FLICKCURL_API
char* flickcurl_user_icon_uri(int farm, int server, char *nsid);
FLICKCURL_API
char* flickcurl_photo_as_user_icon_uri(flickcurl_photo *photo);
/* get a short URL for a photo ID - http://flic.kr */
FLICKCURL_API
char* flickcurl_photo_id_as_short_uri(char *photo_id);
/* get a short URL for a photo object - http://flic.kr */
FLICKCURL_API
char* flickcurl_photo_as_short_uri(flickcurl_photo *photo);
/* get labels for various field/types */
FLICKCURL_API
const char* flickcurl_get_photo_field_label(flickcurl_photo_field_type field);
FLICKCURL_API
const char* flickcurl_get_person_field_label(flickcurl_person_field_type field);
FLICKCURL_API
const char* flickcurl_get_field_value_type_label(flickcurl_field_value_type datatype);
FLICKCURL_API
const char* flickcurl_get_context_type_field_label(flickcurl_context_type type);
FLICKCURL_API
const char* flickcurl_get_content_type_label(int content_type);
FLICKCURL_API
int flickcurl_get_content_type_from_string(const char* content_type_string);
FLICKCURL_API
const char* flickcurl_get_safety_level_label(int safety_level);
FLICKCURL_API
int flickcurl_get_safety_level_from_string(const char* safety_level_string);
FLICKCURL_API
int flickcurl_get_feed_format_info(int feed_format, const char** name_p, const char** label_p, const char** mime_type_p);
FLICKCURL_API
int flickcurl_get_extras_format_info(int extras_format, const char** name_p, const char** label_p);
FLICKCURL_API
int flickcurl_photos_list_params_init(flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_search_params_init(flickcurl_search_params* params);
/**
* set_config_var_handler:
* @userdata: user data pointer
* @key: key
* @value: value
*
* Handler to get variables returned from an 'INI' style configuration file
*/
typedef void (*set_config_var_handler)(void* userdata, const char* key, const char* value);
FLICKCURL_API
int read_ini_config(const char* filename, const char* application, void* user_data, set_config_var_handler handler);
/* Flickr API calls */
/* flickr.activity */
FLICKCURL_API
flickcurl_activity** flickcurl_activity_userComments(flickcurl* fc, int per_page, int page);
FLICKCURL_API
flickcurl_activity** flickcurl_activity_userPhotos(flickcurl* fc, const char* timeframe, int per_page, int page);
FLICKCURL_API
void flickcurl_free_activities(flickcurl_activity **activities_object);
/* flickr.auth */
FLICKCURL_API
char* flickcurl_auth_checkToken(flickcurl* fc, const char* token);
FLICKCURL_API
char* flickcurl_auth_getFrob(flickcurl* fc);
FLICKCURL_API
char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob);
FLICKCURL_API
char* flickcurl_auth_getToken(flickcurl* fc, const char* frob);
/* flickr.blogs */
FLICKCURL_API
flickcurl_blog** flickcurl_blogs_getList(flickcurl* fc);
FLICKCURL_API
int flickcurl_blogs_postPhoto(flickcurl* fc, const char* blog_id, const char* photo_id, const char* title, const char* description, const char* blog_password);
FLICKCURL_API
void flickcurl_free_blogs(flickcurl_blog **blogs_object);
FLICKCURL_API
flickcurl_blog_service** flickcurl_blogs_getServices(flickcurl* fc);
FLICKCURL_API
void flickcurl_free_blog_services(flickcurl_blog_service **blog_services_object);
/* flickr.collections */
FLICKCURL_API
flickcurl_collection* flickcurl_collections_getInfo(flickcurl* fc, const char* collection_id);
FLICKCURL_API
flickcurl_collection* flickcurl_collections_getTree(flickcurl* fc, const char* collection_id, const char* user_id);
/* flickr.commons */
FLICKCURL_API
flickcurl_institution** flickcurl_commons_getInstitutions(flickcurl* fc);
const char* flickcurl_get_institution_url_type_label(flickcurl_institution_url_type url_type);
/* flickr.favorites */
FLICKCURL_API
int flickcurl_favorites_add(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_favorites_getList(flickcurl* fc, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_favorites_getList_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_favorites_getPublicList(flickcurl* fc, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_favorites_getPublicList_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_favorites_remove(flickcurl* fc, const char* photo_id);
/* flickr.galleries */
FLICKCURL_API
int flickcurl_galleries_addPhoto(flickcurl* fc, const char* gallery_id, const char* photo_id, const char* comment_text);
FLICKCURL_API
char* flickcurl_galleries_create(flickcurl* fc, const char* title, const char* description, const char* primary_photo_id, char** gallery_url_p);
FLICKCURL_API
int flickcurl_galleries_editMeta(flickcurl* fc, const char* gallery_id, const char* title, const char* description);
FLICKCURL_API
int flickcurl_galleries_editPhoto(flickcurl* fc, const char* gallery_id, const char* photo_id, const char* new_comment);
FLICKCURL_API
int flickcurl_galleries_editPhotos(flickcurl* fc, const char* gallery_id, const char* primary_photo_id, const char** photo_ids_array);
FLICKCURL_API
flickcurl_gallery* flickcurl_galleries_getInfo(flickcurl* fc, const char* gallery_id);
FLICKCURL_API
flickcurl_gallery** flickcurl_galleries_getList(flickcurl* fc, const char* user_id, int per_page, int page);
FLICKCURL_API
flickcurl_gallery** flickcurl_galleries_getListForPhoto(flickcurl* fc, const char* photo_id, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_galleries_getPhotos_params(flickcurl* fc, const char* gallery_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_galleries_getPhotos(flickcurl* fc, const char* gallery_id, const char* extras, int per_page, int page);
FLICKCURL_API
void flickcurl_free_galleries(flickcurl_gallery **galleries_object);
/* flickr.groups */
FLICKCURL_API
void flickcurl_free_category(flickcurl_category *category);
FLICKCURL_API
void flickcurl_free_categories(flickcurl_category **categories_object);
FLICKCURL_API
flickcurl_category* flickcurl_groups_browse(flickcurl* fc, int cat_id);
FLICKCURL_API
flickcurl_group* flickcurl_groups_getInfo(flickcurl* fc, const char* group_id, const char* lang);
FLICKCURL_API
flickcurl_group** flickcurl_groups_search(flickcurl* fc, const char* text, int per_page, int page);
/* flickr.groups.members */
FLICKCURL_API
void flickcurl_free_member(flickcurl_member *member_object);
FLICKCURL_API
void flickcurl_free_members(flickcurl_member **members_object);
FLICKCURL_API
flickcurl_member** flickcurl_groups_members_getList(flickcurl* fc, const char* group_id, const char* membertypes, int per_page, int page);
/* flickr.groups.pools */
FLICKCURL_API
int flickcurl_groups_pools_add(flickcurl* fc, const char* photo_id, const char* group_id);
FLICKCURL_API
flickcurl_context** flickcurl_groups_pools_getContext(flickcurl* fc, const char* photo_id, const char* group_id);
FLICKCURL_API
flickcurl_group** flickcurl_groups_pools_getGroups(flickcurl* fc, int page, int per_page);
FLICKCURL_API
flickcurl_photo** flickcurl_groups_pools_getPhotos(flickcurl* fc, const char* group_id, const char* tags, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_groups_pools_getPhotos_params(flickcurl* fc, const char* group_id, const char* tags, const char* user_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_groups_pools_remove(flickcurl* fc, const char* photo_id, const char* group_id);
FLICKCURL_API
void flickcurl_free_group(flickcurl_group *group);
FLICKCURL_API
void flickcurl_free_groups(flickcurl_group **groups_object);
/* flickr.interestingness */
FLICKCURL_API
flickcurl_photo** flickcurl_interestingness_getList(flickcurl* fc, const char* date, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_interestingness_getList_params(flickcurl* fc, const char* date, flickcurl_photos_list_params* list_params);
/* flickr.machinetags */
FLICKCURL_API
flickcurl_tag_namespace** flickcurl_machinetags_getNamespaces(flickcurl* fc, const char* predicate, int per_page, int page);
FLICKCURL_API
flickcurl_tag_predicate_value** flickcurl_machinetags_getPairs(flickcurl* fc, const char *nspace, const char* predicate, int per_page, int page);
FLICKCURL_API
flickcurl_tag_predicate_value** flickcurl_machinetags_getPredicates(flickcurl* fc, const char *nspace, int per_page, int page);
FLICKCURL_API
flickcurl_tag_predicate_value** flickcurl_machinetags_getValues(flickcurl* fc, const char *nspace, const char* predicate, int per_page, int page);
FLICKCURL_API
flickcurl_tag_predicate_value** flickcurl_machinetags_getRecentValues(flickcurl* fc, const char *nspace, const char* predicate, int added_since);
/* flickr.panda */
FLICKCURL_API
char** flickcurl_panda_getList(flickcurl* fc);
FLICKCURL_API
flickcurl_photo** flickcurl_panda_getPhotos(flickcurl *fc, const char *panda_name);
/* flickr.photo.getSizes */
FLICKCURL_API
void flickcurl_free_size(flickcurl_size *size);
FLICKCURL_API
void flickcurl_free_sizes(flickcurl_size **sizes_object);
/* flickr.people */
FLICKCURL_API
char* flickcurl_people_findByEmail(flickcurl* fc, const char* email);
FLICKCURL_API
char* flickcurl_people_findByUsername(flickcurl* fc, const char* username);
FLICKCURL_API
flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_id);
FLICKCURL_API
flickcurl_photos_list* flickcurl_people_getPhotos_params(flickcurl* fc, const char* user_id, int safe_search, const char* min_upload_date, const char* max_upload_date, const char* min_taken_date, const char* max_taken_date, int content_type, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_people_getPhotos(flickcurl* fc, const char* user_id, int safe_search, const char* min_upload_date, const char* max_upload_date, const char* min_taken_date, const char* max_taken_date, int content_type, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_people_getPhotosOf_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_people_getPhotosOf(flickcurl* fc, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_group** flickcurl_people_getPublicGroups(flickcurl* fc, const char* user_id);
FLICKCURL_API
flickcurl_photo** flickcurl_people_getPublicPhotos(flickcurl* fc, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_people_getPublicPhotos_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_user_upload_status* flickcurl_people_getUploadStatus(flickcurl* fc);
/* flickr.photos */
FLICKCURL_API
int flickcurl_photos_addTags(flickcurl* fc, const char* photo_id, const char* tags);
FLICKCURL_API
int flickcurl_photos_delete(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_context** flickcurl_photos_getAllContexts(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getContactsPhotos(flickcurl* fc, int contact_count, int just_friends, int single_photo, int include_self, const char* extras);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getContactsPhotos_params(flickcurl* fc, int contact_count, int just_friends, int single_photo, int include_self, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getContactsPublicPhotos(flickcurl* fc, const char* user_id, int photo_count, int just_friends, int single_photo, int include_self, const char* extras);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getContactsPublicPhotos_params(flickcurl* fc, const char* user_id, int photo_count, int just_friends, int single_photo, int include_self, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char* photo_id);
FLICKCURL_API
int** flickcurl_photos_getCounts(flickcurl* fc, const char** dates_array, const char** taken_dates_array);
FLICKCURL_API
flickcurl_exif** flickcurl_photos_getExif(flickcurl* fc, const char* photo_id, const char* secret);
FLICKCURL_API
flickcurl_person** flickcurl_photos_getFavorites(flickcurl* fc, const char* photo_id, int page, int per_page);
FLICKCURL_API
flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getNotInSet(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getNotInSet_params(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_perms* flickcurl_photos_getPerms(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getRecent(flickcurl* fc, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getRecent_params(flickcurl* fc, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_size** flickcurl_photos_getSizes(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getUntagged(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getUntagged_params(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getWithGeoData(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getWithGeoData_params(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getWithoutGeoData(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_getWithoutGeoData_params(flickcurl* fc, int min_upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_recentlyUpdated(flickcurl* fc, int min_date, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_recentlyUpdated_params(flickcurl* fc, int min_date, flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_photos_removeTag(flickcurl* fc, const char* tag_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_search(flickcurl* fc, flickcurl_search_params* params);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_search_params(flickcurl* fc, flickcurl_search_params* params, flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_photos_setContentType(flickcurl* fc, const char* photo_id, int content_type);
FLICKCURL_API
int flickcurl_photos_setDates(flickcurl* fc, const char* photo_id, int date_posted, int date_taken, int date_taken_granularity);
FLICKCURL_API
int flickcurl_photos_setMeta(flickcurl* fc, const char* photo_id, const char* title, const char* description);
FLICKCURL_API
int flickcurl_photos_setPerms(flickcurl* fc, const char* photo_id, flickcurl_perms* perms);
FLICKCURL_API
int flickcurl_photos_setSafetyLevel(flickcurl* fc, const char* photo_id, int safety_level, int hidden);
FLICKCURL_API
int flickcurl_photos_setTags(flickcurl* fc, const char* photo_id, const char* tags);
/* flickr.photos.people */
FLICKCURL_API
int flickcurl_photos_people_add(flickcurl* fc, const char* photo_id, const char* user_id, int person_x, int person_y, int person_w, int person_h);
FLICKCURL_API
int flickcurl_photos_people_delete(flickcurl* fc, const char* photo_id, const char* user_id);
FLICKCURL_API
int flickcurl_photos_people_deleteCoords(flickcurl* fc, const char* photo_id, const char* user_id);
FLICKCURL_API
int flickcurl_photos_people_editCoords(flickcurl* fc, const char* photo_id, const char* user_id, int person_x, int person_y, int person_w, int person_h);
FLICKCURL_API
flickcurl_person** flickcurl_photos_people_getList(flickcurl* fc, const char* photo_id);
/* flickr.places */
FLICKCURL_API
flickcurl_place** flickcurl_places_find(flickcurl* fc, const char* query);
FLICKCURL_API
flickcurl_place* flickcurl_places_findByLatLon(flickcurl* fc, double lat, double lon, int accuracy);
FLICKCURL_API FLICKCURL_DEPRECATED
flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic(flickcurl* fc, const char* place_id, const char* woe_id);
FLICKCURL_API
flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic2(flickcurl* fc, const char* place_id, int woe_id);
FLICKCURL_API FLICKCURL_DEPRECATED
flickcurl_place* flickcurl_places_getInfo(flickcurl* fc, const char* place_id, const char* woe_id);
FLICKCURL_API
flickcurl_place* flickcurl_places_getInfo2(flickcurl* fc, const char* place_id, const int woe_id);
FLICKCURL_API
flickcurl_place** flickcurl_places_getTopPlacesList(flickcurl* fc, flickcurl_place_type place_type, const char* date, int woe_id, const char* place_id);
FLICKCURL_API
flickcurl_place* flickcurl_places_getInfoByUrl(flickcurl* fc, const char* url);
FLICKCURL_API
flickcurl_place* flickcurl_places_resolvePlaceId(flickcurl* fc, const char* place_id);
FLICKCURL_API
flickcurl_place* flickcurl_places_resolvePlaceURL(flickcurl* fc, const char* url);
FLICKCURL_API
const char* flickcurl_get_place_type_label(flickcurl_place_type place_type);
flickcurl_place_type flickcurl_get_place_type_by_label(const char* place_label);
FLICKCURL_API
flickcurl_place_type_info** flickcurl_places_getPlaceTypes(flickcurl* fc);
FLICKCURL_API
flickcurl_shapedata** flickcurl_places_getShapeHistory(flickcurl* fc, const char* place_id, int woe_id);
FLICKCURL_API
flickcurl_place** flickcurl_places_placesForBoundingBox(flickcurl* fc, flickcurl_place_type place_type, double minimum_longitude, double minimum_latitude, double maximum_longitude, double maximum_latitude);
FLICKCURL_API
flickcurl_place** flickcurl_places_placesForContacts(flickcurl* fc, flickcurl_place_type place_type, int woe_id, const char* place_id, int threshold, const char* contacts, int min_upload_date, int max_upload_date, int min_taken_date, int max_taken_date);
FLICKCURL_API
int flickcurl_places_placesForTags(flickcurl* fc, flickcurl_place_type place_type, int woe_id, const char* place_id, const char* threshold, const char* tags, const char* tag_mode, const char* machine_tags, const char* machine_tag_mode, const char* min_upload_date, const char* max_upload_date, const char* min_taken_date, const char* max_taken_date);
FLICKCURL_API
flickcurl_place** flickcurl_places_placesForUser(flickcurl* fc, flickcurl_place_type place_type, int woe_id, const char* place_id, int threshold);
FLICKCURL_API FLICKCURL_DEPRECATED
flickcurl_place** flickcurl_places_forUser(flickcurl* fc, flickcurl_place_type place_type, int woe_id, const char* place_id, int threshold);
FLICKCURL_API
flickcurl_tag** flickcurl_places_tagsForPlace(flickcurl* fc, int woe_id, const char* place_id, int min_upload_date, int max_upload_date, int min_taken_date, int max_taken_date);
int flickcurl_place_type_to_id(flickcurl_place_type place_type);
flickcurl_place_type flickcurl_place_id_to_type(int place_type_id);
/* flickr.contacts */
FLICKCURL_API
void flickcurl_free_contact(flickcurl_contact *contact_object);
FLICKCURL_API
void flickcurl_free_contacts(flickcurl_contact **contacts_object);
FLICKCURL_API
flickcurl_contact** flickcurl_contacts_getList(flickcurl* fc, const char* filter, int page, int per_page);
FLICKCURL_API
flickcurl_contact** flickcurl_contacts_getListRecentlyUploaded(flickcurl* fc, int date_lastupload, const char* filter);
FLICKCURL_API
flickcurl_contact** flickcurl_contacts_getPublicList(flickcurl* fc, const char* user_id, int page, int per_page);
/* flickr.photos.comments */
FLICKCURL_API
void flickcurl_free_comment(flickcurl_comment *comment_object);
FLICKCURL_API
void flickcurl_free_comments(flickcurl_comment **comments_object);
FLICKCURL_API
char* flickcurl_photos_comments_addComment(flickcurl* fc, const char* photo_id, const char* comment_text);
FLICKCURL_API
int flickcurl_photos_comments_deleteComment(flickcurl* fc, const char* comment_id);
FLICKCURL_API
int flickcurl_photos_comments_editComment(flickcurl* fc, const char* comment_id, const char* comment_text);
FLICKCURL_API
flickcurl_comment** flickcurl_photos_comments_getList(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_comments_getRecentForContacts_params(flickcurl* fc, int date_lastcomment, const char* contacts_filter, flickcurl_photos_list_params* list_params);
/* flickr.photos.geo */
FLICKCURL_API
int flickcurl_photos_geo_batchCorrectLocation(flickcurl* fc, flickcurl_location* location, const char* place_id, int woe_id);
FLICKCURL_API
int flickcurl_photos_geo_correctLocation(flickcurl* fc, const char* photo_id, const char* place_id, int woe_id);
FLICKCURL_API
flickcurl_location* flickcurl_photos_geo_getLocation(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_perms* flickcurl_photos_geo_getPerms(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photos_geo_photosForLocation_params(flickcurl* fc, flickcurl_location* location, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_geo_photosForLocation(flickcurl* fc, flickcurl_location* location, const char* extras, int per_page, int page);
FLICKCURL_API
int flickcurl_photos_geo_removeLocation(flickcurl* fc, const char* photo_id);
FLICKCURL_API
int flickcurl_photos_geo_setContext(flickcurl* fc, const char* photo_id, int context);
FLICKCURL_API
int flickcurl_photos_geo_setLocation(flickcurl* fc, const char* photo_id, flickcurl_location* location);
FLICKCURL_API
int flickcurl_photos_geo_setPerms(flickcurl* fc, const char* photo_id, flickcurl_perms* perms);
FLICKCURL_API
const char* flickcurl_get_location_accuracy_label(int accuracy);
/* flickr.photos.licenses */
FLICKCURL_API
flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc);
FLICKCURL_API
flickcurl_license* flickcurl_photos_licenses_getInfo_by_id(flickcurl *fc, int id);
FLICKCURL_API
int flickcurl_photos_licenses_setLicense(flickcurl* fc, const char* photo_id, int license_id);
/* flickr.photos.notes */
FLICKCURL_API
char* flickcurl_photos_notes_add(flickcurl* fc, const char* photo_id, int note_x, int note_y, int note_w, int note_h, const char* note_text);
FLICKCURL_API
int flickcurl_photos_notes_delete(flickcurl* fc, const char* note_id);
FLICKCURL_API
int flickcurl_photos_notes_edit(flickcurl* fc, const char* note_id, int note_x, int note_y, int note_w, int note_h, const char* note_text);
FLICKCURL_API
/* flickr.photos.upload */
FLICKCURL_API
flickcurl_ticket** flickcurl_photos_upload_checkTickets(flickcurl* fc, const char** tickets_ids);
/* flickr.photos.transform */
FLICKCURL_API
int flickcurl_photos_transform_rotate(flickcurl* fc, const char* photo_id, int degrees);
/* flickr.photosets */
FLICKCURL_API
int flickcurl_photosets_addPhoto(flickcurl* fc, const char* photoset_id, const char* photo_id);
FLICKCURL_API
char* flickcurl_photosets_create(flickcurl* fc, const char* title, const char* description, const char* primary_photo_id, char** photoset_url_p);
FLICKCURL_API
int flickcurl_photosets_delete(flickcurl* fc, const char* photoset_id);
FLICKCURL_API
int flickcurl_photosets_editMeta(flickcurl* fc, const char* photoset_id, const char* title, const char* description);
FLICKCURL_API
int flickcurl_photosets_editPhotos(flickcurl* fc, const char* photoset_id, const char* primary_photo_id, const char** photo_ids_array);
FLICKCURL_API
flickcurl_context** flickcurl_photosets_getContext(flickcurl* fc, const char* photo_id, const char* photoset_id);
FLICKCURL_API
flickcurl_photoset* flickcurl_photosets_getInfo(flickcurl* fc, const char* photoset_id);
FLICKCURL_API
flickcurl_photoset** flickcurl_photosets_getList(flickcurl* fc, const char* user_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photosets_getPhotos(flickcurl* fc, const char* photoset_id, const char* extras, int privacy_filter, int per_page, int page);
FLICKCURL_API
flickcurl_photos_list* flickcurl_photosets_getPhotos_params(flickcurl* fc, const char* photoset_id, int privacy_filter, flickcurl_photos_list_params* list_params);
FLICKCURL_API
int flickcurl_photosets_orderSets(flickcurl* fc, const char** photoset_ids_array);
FLICKCURL_API
int flickcurl_photosets_removePhoto(flickcurl* fc, const char* photoset_id, const char* photo_id);
FLICKCURL_API
int flickcurl_photosets_removePhotos(flickcurl* fc, const char* photoset_id, const char** photo_ids_array);
FLICKCURL_API
int flickcurl_photosets_reorderPhotos(flickcurl* fc, const char* photoset_id, const char** photo_ids_array);
FLICKCURL_API
int flickcurl_photosets_setPrimaryPhoto(flickcurl* fc, const char* photoset_id, const char* photo_id);
/* flickr.photosets.comments */
FLICKCURL_API
char* flickcurl_photosets_comments_addComment(flickcurl* fc, const char* photoset_id, const char* comment_text);
FLICKCURL_API
int flickcurl_photosets_comments_deleteComment(flickcurl* fc, const char* comment_id);
FLICKCURL_API
int flickcurl_photosets_comments_editComment(flickcurl* fc, const char* comment_id, const char* comment_text);
FLICKCURL_API
flickcurl_comment** flickcurl_photosets_comments_getList(flickcurl* fc, const char* photoset_id);
/* flickr.prefs */
FLICKCURL_API
int flickcurl_prefs_getContentType(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getGeoPerms(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getHidden(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getPrivacy(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getSafetyLevel(flickcurl* fc);
/* flickr.reflection */
FLICKCURL_API
void flickcurl_free_method(flickcurl_method *method);
FLICKCURL_API
char** flickcurl_reflection_getMethods(flickcurl* fc);
FLICKCURL_API
flickcurl_method* flickcurl_reflection_getMethodInfo(flickcurl* fc, const char* name);
/* flickr.stats */
FLICKCURL_API
int flickcurl_stats_getCSVFiles(flickcurl* fc);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getCollectionDomains(flickcurl* fc, const char* date, const char* collection_id, int per_page, int page);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getCollectionReferrers(flickcurl* fc, const char* date, const char* domain, const char* collection_id, int per_page, int page);
FLICKCURL_API
int flickcurl_stats_getCollectionStats(flickcurl* fc, const char* date, const char* collection_id);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotoDomains(flickcurl* fc, const char* date, const char* photo_id, int per_page, int page);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotoReferrers(flickcurl* fc, const char* date, const char* domain, const char* photo_id, int per_page, int page);
FLICKCURL_API
flickcurl_stat* flickcurl_stats_getPhotoStats(flickcurl* fc, const char* date, const char* photo_id);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotosetDomains(flickcurl* fc, const char* date, const char* photoset_id, int per_page, int page);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotosetReferrers(flickcurl* fc, const char* date, const char* domain, const char* photoset_id, int per_page, int page);
FLICKCURL_API
int flickcurl_stats_getPhotosetStats(flickcurl* fc, const char* date, const char* photoset_id);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotostreamDomains(flickcurl* fc, const char* date, int per_page, int page);
FLICKCURL_API
flickcurl_stat** flickcurl_stats_getPhotostreamReferrers(flickcurl* fc, const char* date, const char* domain, int per_page, int page);
FLICKCURL_API
int flickcurl_stats_getPhotostreamStats(flickcurl* fc, const char* date);
FLICKCURL_API
flickcurl_photo** flickcurl_stats_getPopularPhotos(flickcurl* fc, const char* date, const char* sort, int per_page, int page, const char* extras);
FLICKCURL_API
flickcurl_view_stats* flickcurl_stats_getTotalViews(flickcurl* fc, const char* date);
FLICKCURL_API
void flickcurl_free_stat(flickcurl_stat *stat);
FLICKCURL_API
void flickcurl_free_stats(flickcurl_stat **stats_object);
FLICKCURL_API
void flickcurl_free_view_stats(flickcurl_view_stats *view_stats);
/* flickr.tag */
FLICKCURL_API
flickcurl_photos_list* flickcurl_tags_getClusterPhotos(flickcurl* fc, const char* tag, const char* cluster_id, flickcurl_photos_list_params* list_params);
FLICKCURL_API
flickcurl_tag_clusters* flickcurl_tags_getClusters(flickcurl* fc, const char* tag);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getHotList(flickcurl* fc, const char* period, int tag_count);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListPhoto(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUser(flickcurl* fc, const char* user_id);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUserPopular(flickcurl* fc, const char* user_id, int pop_count);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUserRaw(flickcurl* fc, const char* tag);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getRelated(flickcurl* fc, const char* tag);
/* flickr.test */
FLICKCURL_API
int flickcurl_test_echo(flickcurl* fc, const char* key, const char* value);
FLICKCURL_API
char* flickcurl_test_login(flickcurl* fc);
FLICKCURL_API
int flickcurl_test_null(flickcurl* fc);
/* flickr.urls */
FLICKCURL_API
char* flickcurl_urls_getGroup(flickcurl* fc, const char* group_id);
FLICKCURL_API
char* flickcurl_urls_getUserPhotos(flickcurl* fc, const char* user_id);
FLICKCURL_API
char* flickcurl_urls_getUserProfile(flickcurl* fc, const char* user_id);
FLICKCURL_API
char* flickcurl_urls_lookupGallery(flickcurl* fc, const char* url);
FLICKCURL_API
char* flickcurl_urls_lookupGroup(flickcurl* fc, const char* url);
FLICKCURL_API
char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url);
/* Upload API */
FLICKCURL_API
FLICKCURL_DEPRECATED flickcurl_upload_status* flickcurl_photos_upload(flickcurl* fc, const char* photo_file, const char *title, const char *description, const char *tags, int is_public, int is_friend, int is_family);
FLICKCURL_API
flickcurl_upload_status* flickcurl_photos_upload_params(flickcurl* fc, flickcurl_upload_params* params);
FLICKCURL_API
flickcurl_upload_status* flickcurl_photos_replace(flickcurl* fc, const char* photo_file, const char *photo_id, int async);
FLICKCURL_API
void flickcurl_free_upload_status(flickcurl_upload_status* status);
FLICKCURL_API
FLICKCURL_DEPRECATED void flickcurl_upload_status_free(flickcurl_upload_status* status);
FLICKCURL_API
char* flickcurl_array_join(const char *array[], char delim);
FLICKCURL_API
char** flickcurl_array_split(const char *str, char delim);
FLICKCURL_API
void flickcurl_array_free(char *array[]);
/* ignore these */
/**
* FLICKCURL_DEPRECATED:
*
* deprecated
*/
/**
* flickcurl_category_s:
* @id: ignore
* @name: ignore
* @path: ignore
* @count: ignore
* @categories: ignore
* @categories_count: ignore
* @groups: ignore
* @groups_count: ignore
*
* category_s
*/
/**
* flickcurl_photo_s:
*
* photo_s
*/
/**
* flickcurl_s:
*
* flickcurl_s
*/
/**
* flickcurl_serializer_s:
*
* flickcurl_serializer_s
*/
/**
* flickcurl_shapedata_s:
*
* flickcurl_shapedata_s
*/
#ifdef __cplusplus
}
#endif
#endif
|