/usr/share/gir-1.0/Couchdb-1.0.gir is in libcouchdb-glib-dev 0.7.4-0ubuntu3.
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 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Json" version="1.0"/>
<namespace name="Couchdb"
version="1.0"
shared-library="libcouchdb-glib-1.0.so.2"
c:identifier-prefixes="Couchdb"
c:symbol-prefixes="couchdb">
<class name="ArrayField"
c:symbol-prefix="array_field"
c:type="CouchdbArrayField"
parent="GObject.Object"
glib:type-name="CouchdbArrayField"
glib:get-type="couchdb_array_field_get_type"
glib:type-struct="ArrayFieldClass">
<constructor name="new" c:identifier="couchdb_array_field_new">
<doc xml:whitespace="preserve">Create a new array field object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbArrayField object.</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</return-value>
</constructor>
<method name="add_array_element"
c:identifier="couchdb_array_field_add_array_element">
<doc xml:whitespace="preserve">Add a new element of type array to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</parameter>
</parameters>
</method>
<method name="add_boolean_element"
c:identifier="couchdb_array_field_add_boolean_element">
<doc xml:whitespace="preserve">Add a new element of type boolean to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="add_double_element"
c:identifier="couchdb_array_field_add_double_element">
<doc xml:whitespace="preserve">Add a new element of type double to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</method>
<method name="add_int_element"
c:identifier="couchdb_array_field_add_int_element">
<doc xml:whitespace="preserve">Add a new element of type integer to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="add_string_element"
c:identifier="couchdb_array_field_add_string_element">
<doc xml:whitespace="preserve">Add a new element of type string to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="add_struct_element"
c:identifier="couchdb_array_field_add_struct_element">
<doc xml:whitespace="preserve">Add a new element of type struct to the given array.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to be added</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</method>
<method name="get_array_element"
c:identifier="couchdb_array_field_get_array_element"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve an array value on the given position of the array.</doc>
<return-value>
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_boolean_element"
c:identifier="couchdb_array_field_get_boolean_element">
<doc xml:whitespace="preserve">Retrieve a boolean value on the given position of the array.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_double_element"
c:identifier="couchdb_array_field_get_double_element">
<doc xml:whitespace="preserve">Retrieve a double value on the given position of the array.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="gdouble" c:type="gdouble"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_int_element"
c:identifier="couchdb_array_field_get_int_element">
<doc xml:whitespace="preserve">Retrieve an integer value on the given position of the array.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_length" c:identifier="couchdb_array_field_get_length">
<doc xml:whitespace="preserve">Get the number of elements on the given #CouchdbArrayField object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of elements in the given array.</doc>
<type name="guint" c:type="guint"/>
</return-value>
</method>
<method name="get_string_element"
c:identifier="couchdb_array_field_get_string_element">
<doc xml:whitespace="preserve">Retrieve a string value on the given position of the array.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_struct_element"
c:identifier="couchdb_array_field_get_struct_element"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve a struct value on the given position of the array.</doc>
<return-value>
<doc xml:whitespace="preserve">Value of the element stored in the given position of the array.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to retrieve</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="remove_element"
c:identifier="couchdb_array_field_remove_element">
<doc xml:whitespace="preserve">Remove an element from the given #CouchdbArrayField object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="index" transfer-ownership="none">
<doc xml:whitespace="preserve">Position of the element to remove</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ArrayFieldPrivate" c:type="CouchdbArrayFieldPrivate*"/>
</field>
</class>
<record name="ArrayFieldClass"
c:type="CouchdbArrayFieldClass"
glib:is-gtype-struct-for="ArrayField">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="ArrayFieldPrivate"
c:type="CouchdbArrayFieldPrivate"
disguised="1">
</record>
<constant name="CREDENTIALS_ITEM_OAUTH_CONSUMER_KEY"
value="oauth_consumer_key"
c:type="COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_KEY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CREDENTIALS_ITEM_OAUTH_CONSUMER_SECRET"
value="oauth_consumer_secret"
c:type="COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_SECRET">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CREDENTIALS_ITEM_OAUTH_TOKEN_KEY"
value="oauth_token_key"
c:type="COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_KEY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CREDENTIALS_ITEM_OAUTH_TOKEN_SECRET"
value="oauth_token_secret"
c:type="COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_SECRET">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CREDENTIALS_ITEM_PASSWORD"
value="password"
c:type="COUCHDB_CREDENTIALS_ITEM_PASSWORD">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CREDENTIALS_ITEM_USERNAME"
value="username"
c:type="COUCHDB_CREDENTIALS_ITEM_USERNAME">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Credentials"
c:symbol-prefix="credentials"
c:type="CouchdbCredentials"
parent="GObject.Object"
glib:type-name="CouchdbCredentials"
glib:get-type="couchdb_credentials_get_type"
glib:type-struct="CredentialsClass">
<constructor name="new_with_oauth"
c:identifier="couchdb_credentials_new_with_oauth">
<doc xml:whitespace="preserve">Create a new #CouchdbCredentials object to be used for OAuth authentication.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A #CouchdbCredentials object.</doc>
<type name="Credentials" c:type="CouchdbCredentials*"/>
</return-value>
<parameters>
<parameter name="consumer_key" transfer-ownership="none">
<doc xml:whitespace="preserve">OAuth consumer key</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="consumer_secret" transfer-ownership="none">
<doc xml:whitespace="preserve">OAuth consumer secret</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="token_key" transfer-ownership="none">
<doc xml:whitespace="preserve">OAuth token key</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="token_secret" transfer-ownership="none">
<doc xml:whitespace="preserve">OAuth token secret</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_username_and_password"
c:identifier="couchdb_credentials_new_with_username_and_password">
<doc xml:whitespace="preserve">Create a new #CouchdbCredentials object to be used for username
and password based HTTP authentication scheme such as Basic or
Digest.
Authentication is delegated to LibSoup.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A #CouchdbCredentials object.</doc>
<type name="Credentials" c:type="CouchdbCredentials*"/>
</return-value>
<parameters>
<parameter name="username" transfer-ownership="none">
<doc xml:whitespace="preserve">HTTP Authentication username</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:whitespace="preserve">HTTP Authentication password</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="get_auth_type"
c:identifier="couchdb_credentials_get_auth_type">
<doc xml:whitespace="preserve">Retrieve the type of authentication defined for the given #CouchdbCredentials object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbCredentialsType specifying the type of authentication.</doc>
<type name="CredentialsType" c:type="CouchdbCredentialsType"/>
</return-value>
</method>
<method name="get_item" c:identifier="couchdb_credentials_get_item">
<doc xml:whitespace="preserve">Get the value associated with one authentication item on the given #CouchdbCredentials object.
The valid values are the COUCHDB_CREDENTIALS_ITEM_* values defined in couchdb-credentials.h.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value associated with the given item, or NULL if not found.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the item to retrieve</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_item" c:identifier="couchdb_credentials_set_item">
<doc xml:whitespace="preserve">Set the value associated with one authentication item on the given #CouchdbCredentials object.
The valid values are the COUCHDB_CREDENTIALS_ITEM_* values defined in couchdb-credentials.h.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the item to set the value of #value: Value of the item</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="CredentialsPrivate" c:type="CouchdbCredentialsPrivate*"/>
</field>
</class>
<record name="CredentialsClass"
c:type="CouchdbCredentialsClass"
glib:is-gtype-struct-for="Credentials">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="CredentialsPrivate"
c:type="CouchdbCredentialsPrivate"
disguised="1">
</record>
<enumeration name="CredentialsType" c:type="CouchdbCredentialsType">
<member name="unknown"
value="-1"
c:identifier="COUCHDB_CREDENTIALS_TYPE_UNKNOWN"/>
<member name="oauth"
value="0"
c:identifier="COUCHDB_CREDENTIALS_TYPE_OAUTH"/>
<member name="username_and_password"
value="1"
c:identifier="COUCHDB_CREDENTIALS_TYPE_USERNAME_AND_PASSWORD"/>
</enumeration>
<constant name="DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_HOME"
value="home"
c:type="COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_HOME">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_OTHER"
value="other"
c:type="COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_OTHER">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_WORK"
value="work"
c:type="COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_WORK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_EMAIL_DESCRIPTION_HOME"
value="home"
c:type="COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_HOME">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_EMAIL_DESCRIPTION_OTHER"
value="other"
c:type="COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_OTHER">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_EMAIL_DESCRIPTION_WORK"
value="work"
c:type="COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_WORK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_AIM"
value="aim"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_AIM">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_GADU_GADU"
value="gadu-gadu"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GADU_GADU">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_GROUPWISE"
value="groupwise"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GROUPWISE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_ICQ"
value="icq"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_ICQ">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_IRC"
value="irc"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_IRC">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_JABBER"
value="jabber"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_JABBER">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_MSN"
value="msn"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_MSN">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_SKYPE"
value="skype"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_SKYPE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_IM_PROTOCOL_YAHOO"
value="yahoo"
c:type="COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_YAHOO">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_ASSISTANT"
value="assistant"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_ASSISTANT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_CALLBACK"
value="callback"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CALLBACK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_CAR"
value="car"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CAR">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_COMPANY"
value="company"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_COMPANY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME"
value="home"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME_FAX"
value="home fax"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME_FAX">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_MOBILE"
value="mobile"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_MOBILE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER"
value="other"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER_FAX"
value="other fax"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER_FAX">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_PAGER"
value="pager"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PAGER">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_PRIMARY"
value="primary"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PRIMARY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_RADIO"
value="radio"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_RADIO">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_TELEX"
value="telex"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_TELEX">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK"
value="work"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK_FAX"
value="work fax"
c:type="COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK_FAX">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_URL_DESCRIPTION_BLOG"
value="blog"
c:type="COUCHDB_DOCUMENT_CONTACT_URL_DESCRIPTION_BLOG">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="DOCUMENT_CONTACT_URL_DESCRIPTION_HOMEPAGE"
value="home page"
c:type="COUCHDB_DOCUMENT_CONTACT_URL_DESCRIPTION_HOMEPAGE">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Database"
c:symbol-prefix="database"
c:type="CouchdbDatabase"
parent="GObject.Object"
glib:type-name="CouchdbDatabase"
glib:get-type="couchdb_database_get_type"
glib:type-struct="DatabaseClass">
<constructor name="new" c:identifier="couchdb_database_new">
<doc xml:whitespace="preserve">Create a new #CouchdbDatabase object, which is to be used for operations on specific
databases on the underlying CouchDB instance.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #CouchdbDatabase object.</doc>
<type name="Database" c:type="CouchdbDatabase*"/>
</return-value>
<parameters>
<parameter name="session" transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbSession object</doc>
<type name="Session" c:type="CouchdbSession*"/>
</parameter>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<function name="free_document_list"
c:identifier="couchdb_database_free_document_list"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="doclist" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</function>
<virtual-method name="document_created">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="document" transfer-ownership="none">
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="document_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="docid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="document_updated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="document" transfer-ownership="none">
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</virtual-method>
<method name="delete_document"
c:identifier="couchdb_database_delete_document"
throws="1">
<doc xml:whitespace="preserve">Delete an existing document from a CouchDB instance.
Please take note that this operation can fail if there was an update to the
document and that last revision was not retrieved by the calling application.
This is due to the fact that, to remove a document from CouchDB, the latest
revision needs to be sent, so if the #CouchdbDocument object passed to this
function does not contain the last revision, the operation will fail. In that
case, retrieving the latest revision from CouchDB (with #couchdb_database_get_document)
and trying the delete operation again should fix the issue.
argument will contain information about the error.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise, in which case the error</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="document" transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbDocument object</doc>
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</method>
<method name="execute_view"
c:identifier="couchdb_database_execute_view"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Run a view on the database to retrieve documents. For
each document found in the database, a #CouchdbDocument object is returned
on the list, which represents the document's contents as found on the
underlying database.
or there was an error (in which case the error argument will contain information
about the error). Once no longer needed, the list should be freed by calling
#couchdb_database_free_document_list.</doc>
<return-value>
<doc xml:whitespace="preserve">a list of #CouchdbDocument objects, or NULL if there are none</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<parameter name="design_doc" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the design document where the view to execute is</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="view_name" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the view to execute</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_all_documents"
c:identifier="couchdb_database_get_all_documents"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Retrieve all documents from a database on a running CouchDB instance. For
each document found in the database, a #CouchdbDocument object is returned
on the list, which represents the document's contents as found on the
underlying database.
or there was an error (in which case the error argument will contain information
about the error). Once no longer needed, the list should be freed by calling
#couchdb_database_free_document_list.</doc>
<return-value>
<doc xml:whitespace="preserve">a list of #CouchdbDocument objects, or NULL if there are none</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_design_document"
c:identifier="couchdb_database_get_design_document"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Retrieve a design document from the given database.
which case, the error argument will contain information about the error.</doc>
<return-value>
<doc xml:whitespace="preserve">A #CouchdbDesignDocument object if successful, NULL otherwise, in</doc>
<type name="DesignDocument" c:type="CouchdbDesignDocument*"/>
</return-value>
<parameters>
<parameter name="docid" transfer-ownership="none">
<doc xml:whitespace="preserve">ID of the design document</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_design_documents"
c:identifier="couchdb_database_get_design_documents"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Retrieve all design documents from the given database.
Design documents are special documents (well, they are really normal documents in
the CouchDB database, just with a special ID) that contain views' code, which are used
to create queries on the database that are cached and so make access to the database
much quicker.
or there was an error (in which case the error argument will contain information
about the error). Once no longer needed, the list should be freed by calling
#couchdb_database_free_document_list.</doc>
<return-value>
<doc xml:whitespace="preserve">A list of #CouchdbDesignDocument objects, or NULL if there are none</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_document"
c:identifier="couchdb_database_get_document"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Retrieve the last revision of a document from the given database.
which case, the error argument will contain information about the error.</doc>
<return-value>
<doc xml:whitespace="preserve">A #CouchdbDocument object if successful, NULL otherwise, in</doc>
<type name="Document" c:type="CouchdbDocument*"/>
</return-value>
<parameters>
<parameter name="docid" transfer-ownership="none">
<doc xml:whitespace="preserve">Unique ID of the document to be retrieved</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_name" c:identifier="couchdb_database_get_name">
<doc xml:whitespace="preserve">Retrieve the name of the database the given #CouchdbDatabase object maps to.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the database</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_session"
c:identifier="couchdb_database_get_session"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the #CouchdbSession associated with the given database object.</doc>
<return-value>
<doc xml:whitespace="preserve">A #CouchdbSession object.</doc>
<type name="Session" c:type="CouchdbSession*"/>
</return-value>
</method>
<method name="listen_for_changes"
c:identifier="couchdb_database_listen_for_changes">
<doc xml:whitespace="preserve">Setup a listener to get information about changes done to a specific database. Please
note that changes done in the application using couchdb-glib will be notified
without the need of calling this function. But if the application wants to receive
notifications of changes done externally (by another application, or by any other
means, like replication with a remote database), it needs to call this function.
For each change, one of the signals on the #CouchdbDatabase object will be emitted,
so applications just have to connect to those signals before calling this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="put_document"
c:identifier="couchdb_database_put_document"
throws="1">
<doc xml:whitespace="preserve">Store a document on a CouchDB database.
If it is a new document, and hence does not have a unique ID, a unique ID
will be generated and stored on the #CouchdbDocument object. Likewise,
whether the document is new or just an update to an existing one, the
#CouchdbDocument object passed to this function will be updated to contain
the latest revision of the document, as returned by CouchDB (revision that
can be retrieved by calling #couchdb_document_get_revision).
argument will contain information about the error.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise, in which case the error</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="document" transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbDocument object</doc>
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</method>
<property name="database-name"
writable="1"
construct="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="session"
writable="1"
construct="1"
transfer-ownership="none">
<type name="Session"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="DatabasePrivate" c:type="CouchdbDatabasePrivate*"/>
</field>
<glib:signal name="document-created" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="Document"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="document-deleted" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="document-updated" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="Document"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="DatabaseClass"
c:type="CouchdbDatabaseClass"
glib:is-gtype-struct-for="Database">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="document_created">
<callback name="document_created">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="database" transfer-ownership="none">
<type name="Database" c:type="CouchdbDatabase*"/>
</parameter>
<parameter name="document" transfer-ownership="none">
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="document_updated">
<callback name="document_updated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="database" transfer-ownership="none">
<type name="Database" c:type="CouchdbDatabase*"/>
</parameter>
<parameter name="document" transfer-ownership="none">
<type name="Document" c:type="CouchdbDocument*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="document_deleted">
<callback name="document_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="database" transfer-ownership="none">
<type name="Database" c:type="CouchdbDatabase*"/>
</parameter>
<parameter name="docid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<record name="DatabaseInfo"
c:type="CouchdbDatabaseInfo"
glib:type-name="CouchdbDatabaseInfo"
glib:get-type="couchdb_database_info_get_type"
c:symbol-prefix="database_info">
<constructor name="new" c:identifier="couchdb_database_info_new">
<doc xml:whitespace="preserve">Create a new @CouchdbDatabaseInfo object, which is used to store information
(name, number of documents, etc) of a database in CouchDB.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbDatabaseInfo object.</doc>
<type name="DatabaseInfo" c:type="CouchdbDatabaseInfo*"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Database name</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="doc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">Number of documents in the database</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="doc_del_count" transfer-ownership="none">
<doc xml:whitespace="preserve">Number of deleted documents in the database</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="update_seq" transfer-ownership="none">
<doc xml:whitespace="preserve">Last update sequence</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="purse_seq" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="compact_running" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether compacting is in progress</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="disk_size" transfer-ownership="none">
<doc xml:whitespace="preserve">Size of database on disk</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="disk_format_version" transfer-ownership="none">
<doc xml:whitespace="preserve">Current version of the internal database format on disk</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="instance_start_time" transfer-ownership="none">
<doc xml:whitespace="preserve">Timestamp of CouchDBs start time</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</constructor>
<method name="get_dbname"
c:identifier="couchdb_database_info_get_dbname">
<doc xml:whitespace="preserve">Get the database name stored in the #CouchdbDatabaseInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_deleted_documents_count"
c:identifier="couchdb_database_info_get_deleted_documents_count">
<doc xml:whitespace="preserve">Get the number of deleted documents stored in the #CouchdbDatabaseInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of deleted documents.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_disk_format_version"
c:identifier="couchdb_database_info_get_disk_format_version">
<doc xml:whitespace="preserve">Get the current version of the internal database format on disk.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Current version of the internal database format on disk.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_disk_size"
c:identifier="couchdb_database_info_get_disk_size">
<doc xml:whitespace="preserve">Get the size of database on disk stored in the #CouchdbDatabaseInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Size of the database on disk.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_documents_count"
c:identifier="couchdb_database_info_get_documents_count">
<doc xml:whitespace="preserve">Get the number of documents stored in the #CouchdbDatabaseInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of documents in the database.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_instance_start_time"
c:identifier="couchdb_database_info_get_instance_start_time">
<doc xml:whitespace="preserve">Get the timestamp of CouchDBs start time.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Timestamp of CouchDBs start time.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_purge_sequence"
c:identifier="couchdb_database_info_get_purge_sequence">
<doc xml:whitespace="preserve">Get the number of purge operations.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of purge operations.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_update_sequence"
c:identifier="couchdb_database_info_get_update_sequence">
<doc xml:whitespace="preserve">Get the last update sequence stored in the #CouchdbDatabaseInfo object.
This sequence is incremented with each change done to the database.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Last update sequence.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="is_compact_running"
c:identifier="couchdb_database_info_is_compact_running">
<doc xml:whitespace="preserve">Get whether compacting is running on the database at the time the information
was retrieved.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Whether compacting is running or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="ref" c:identifier="couchdb_database_info_ref">
<doc xml:whitespace="preserve">Increments reference counting of the given #CouchdbDatabaseInfo object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A pointer to the object being referenced.</doc>
<type name="DatabaseInfo" c:type="CouchdbDatabaseInfo*"/>
</return-value>
</method>
<method name="unref" c:identifier="couchdb_database_info_unref">
<doc xml:whitespace="preserve">Decrements reference counting of the given #CouchdbDatabaseInfo object.
When the reference count is equal to 0, the object will be destroyed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
</record>
<record name="DatabasePrivate"
c:type="CouchdbDatabasePrivate"
disguised="1">
</record>
<class name="DesignDocument"
c:symbol-prefix="design_document"
c:type="CouchdbDesignDocument"
parent="Document"
glib:type-name="CouchdbDesignDocument"
glib:get-type="couchdb_design_document_get_type"
glib:type-struct="DesignDocumentClass">
<constructor name="new" c:identifier="couchdb_design_document_new">
<doc xml:whitespace="preserve">Create a new design document, to contain views' code.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #CouchdbDesignDocument object.</doc>
<type name="DesignDocument" c:type="CouchdbDesignDocument*"/>
</return-value>
</constructor>
<function name="free_views_list"
c:identifier="couchdb_design_document_free_views_list"
introspectable="0">
<doc xml:whitespace="preserve">Free the list of views' names returned by #couchdb_design_document_list_views.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">A list of views' names, as returned by #couchdb_design_document_list_views</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</function>
<method name="add_view" c:identifier="couchdb_design_document_add_view">
<doc xml:whitespace="preserve">Add a new view to the given #CouchdbDesignDocument object. If the view already exists,
it will get replaced by the new one. To make the change permanent, the document
must be saved to the database by calling #couchdb_database_put_document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the view</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="map_function" transfer-ownership="none">
<doc xml:whitespace="preserve">Source code for the map function</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="reduce_function" transfer-ownership="none">
<doc xml:whitespace="preserve">Source code for the reduce function</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="delete_view"
c:identifier="couchdb_design_document_delete_view">
<doc xml:whitespace="preserve">Delete a view from the given #CouchdbDesignDocument object. To make the change permanent,
the document must be saved to the database by calling #couchdb_database_put_document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the view to remove</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_language"
c:identifier="couchdb_design_document_get_language">
<doc xml:whitespace="preserve">Return the programming language in which the views on the given design
document are written.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A value representing the language the views are written in.</doc>
<type name="DesignDocumentLanguage"
c:type="CouchdbDesignDocumentLanguage"/>
</return-value>
</method>
<method name="list_views"
c:identifier="couchdb_design_document_list_views"
introspectable="0">
<doc xml:whitespace="preserve">Return a list of the names of the views contained in the given
#CouchdbDesignDocument object.
should be freed by calling #couchdb_design_document_free_views_list.</doc>
<return-value>
<doc xml:whitespace="preserve">A list of names of views. When no longer needed, this list</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="set_language"
c:identifier="couchdb_design_document_set_language">
<doc xml:whitespace="preserve">Set the language used in the views contained in the given #CouchdbDesignDocument
object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">Language for the views in this design document</doc>
<type name="DesignDocumentLanguage"
c:type="CouchdbDesignDocumentLanguage"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="Document" c:type="CouchdbDocument"/>
</field>
</class>
<record name="DesignDocumentClass"
c:type="CouchdbDesignDocumentClass"
glib:is-gtype-struct-for="DesignDocument">
<field name="parent_class">
<type name="DocumentClass" c:type="CouchdbDocumentClass"/>
</field>
</record>
<enumeration name="DesignDocumentLanguage"
c:type="CouchdbDesignDocumentLanguage">
<member name="unknown"
value="0"
c:identifier="COUCHDB_DESIGN_DOCUMENT_LANGUAGE_UNKNOWN"/>
<member name="javascript"
value="1"
c:identifier="COUCHDB_DESIGN_DOCUMENT_LANGUAGE_JAVASCRIPT"/>
<member name="python"
value="2"
c:identifier="COUCHDB_DESIGN_DOCUMENT_LANGUAGE_PYTHON"/>
</enumeration>
<class name="Document"
c:symbol-prefix="document"
c:type="CouchdbDocument"
parent="GObject.Object"
glib:type-name="CouchdbDocument"
glib:get-type="couchdb_document_get_type"
glib:type-struct="DocumentClass">
<constructor name="new" c:identifier="couchdb_document_new">
<doc xml:whitespace="preserve">Create an empty #CouchdbDocument object, which can then be populated with data
and added to a database.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbDocument object, with no data on it.</doc>
<type name="Document" c:type="CouchdbDocument*"/>
</return-value>
</constructor>
<method name="get_application_annotations"
c:identifier="couchdb_document_get_application_annotations"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the application annotations for the given document.
Application annotations is a special field (named "application_annotations"), used
in Desktopcouch to allow applications to set values on standard documents (as defined
at http://www.freedesktop.org/wiki/Specifications/desktopcouch#Formats) that are
not part of the standard, but still needed by the application.
annotations for the given document.</doc>
<return-value>
<doc xml:whitespace="preserve">A #CouchdbStructField containing the value of the application</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
</method>
<method name="get_array_field"
c:identifier="couchdb_document_get_array_field"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the value of an array field from the given document.</doc>
<return-value>
<doc xml:whitespace="preserve">The value of the given array field.</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_boolean_field"
c:identifier="couchdb_document_get_boolean_field">
<doc xml:whitespace="preserve">Retrieve the value of a boolean field from the given document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given boolean field.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_double_field"
c:identifier="couchdb_document_get_double_field">
<doc xml:whitespace="preserve">Retrieve the value of a decimal number field from the given document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given decimal number field.</doc>
<type name="gdouble" c:type="gdouble"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_field_names"
c:identifier="couchdb_document_get_field_names"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the list of fields contained in the given #CouchdbDocument.
in the given #CouchdbDocument object. When no longer needed, the list should
be freed by calling #g_slist_free.</doc>
<return-value>
<doc xml:whitespace="preserve">A list of strings containing the names of all the fields contained</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_field_type"
c:identifier="couchdb_document_get_field_type">
<doc xml:whitespace="preserve">Get the value type of the given #CouchdbDocument's field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Type of the field.</doc>
<type name="GType" c:type="GType"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to get type</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_id" c:identifier="couchdb_document_get_id">
<doc xml:whitespace="preserve">Retrieve the unique ID of the given document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The unique ID of the given document.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_int_field"
c:identifier="couchdb_document_get_int_field">
<doc xml:whitespace="preserve">Retrieve the value of an integer field from the given document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given integer field.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_record_type"
c:identifier="couchdb_document_get_record_type">
<doc xml:whitespace="preserve">Retrieve the record type of the given document. Record types are special
fields in the CouchDB documents, used in Desktopcouch, to identify
standard records. All supported record types are listed at
http://www.freedesktop.org/wiki/Specifications/desktopcouch#Formats.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The record type of the given document.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_revision" c:identifier="couchdb_document_get_revision">
<doc xml:whitespace="preserve">Retrieve the revision of a given document.
CouchDB does not overwrite updated documents in place, instead it creates a
new document at the end of the database file, with the same ID but a new revision.
Document revisions are used for optimistic concurrency control and applications
should not rely on document revisions for any other purpose than concurrency control.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Revision of the given document.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_string_field"
c:identifier="couchdb_document_get_string_field">
<doc xml:whitespace="preserve">Retrieve the value of a string field from the given document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given string field.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_struct_field"
c:identifier="couchdb_document_get_struct_field"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the value of a struct field from the given document.</doc>
<return-value>
<doc xml:whitespace="preserve">The value of the given struct field.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="has_field" c:identifier="couchdb_document_has_field">
<doc xml:whitespace="preserve">Check whether the given document has a field with a specific name.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the field exists in the document, FALSE if not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to check existence for in the document</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="is_contact" c:identifier="couchdb_document_is_contact">
<doc xml:whitespace="preserve">Check whether the given document represents a contact record, as specified
at http://www.freedesktop.org/wiki/Specifications/desktopcouch/contact</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the document represents a contact, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="is_task" c:identifier="couchdb_document_is_task">
<doc xml:whitespace="preserve">Check whether the given document represents a contact record, as specified
at http://www.freedesktop.org/wiki/Specifications/desktopcouch/task</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the document represents a task, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="list_attachments"
c:identifier="couchdb_document_list_attachments"
introspectable="0">
<doc xml:whitespace="preserve">List all the attachments for the given document.
given document. When no longer needed, the list should
be freed by calling #g_slist_free.</doc>
<return-value>
<doc xml:whitespace="preserve">A list containing the IDs of all the attachments for the</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="remove_field" c:identifier="couchdb_document_remove_field">
<doc xml:whitespace="preserve">Remove a field from the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to remove from the document</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_application_annotations"
c:identifier="couchdb_document_set_application_annotations">
<doc xml:whitespace="preserve">Set the application annotations for the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="annotations" transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbStructField with the contents of the application_annotations field.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</method>
<method name="set_array_field"
c:identifier="couchdb_document_set_array_field">
<doc xml:whitespace="preserve">Set the value of an array field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</parameter>
</parameters>
</method>
<method name="set_boolean_field"
c:identifier="couchdb_document_set_boolean_field">
<doc xml:whitespace="preserve">Set the value of a boolean field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_double_field"
c:identifier="couchdb_document_set_double_field">
<doc xml:whitespace="preserve">Set the value of a decimal number field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</method>
<method name="set_id" c:identifier="couchdb_document_set_id">
<doc xml:whitespace="preserve">Set the unique ID for a given document.
This usually is not needed by calling applications, unless they want to
force IDs on the CouchDB documents created/updated for some reason, like
compatibility with 3rd party applications. In most cases, the autogenerated
IDs from CouchDB when new documents are created (see #couchdb_document_put)
should be ok for most applications.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">New unique ID for the given document.</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_int_field"
c:identifier="couchdb_document_set_int_field">
<doc xml:whitespace="preserve">Set the value of an integer field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="set_record_type"
c:identifier="couchdb_document_set_record_type">
<doc xml:whitespace="preserve">Set the record type of the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="record_type" transfer-ownership="none">
<doc xml:whitespace="preserve">Record type to set the document to</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_revision" c:identifier="couchdb_document_set_revision">
<doc xml:whitespace="preserve">Set the revision of the given document. This should never be used by applications,
unless they really know what they are doing, since using a wrong revision string
will confuse CouchDB when doing updates to the document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="revision" transfer-ownership="none">
<doc xml:whitespace="preserve">String specifying the revision to set the document to</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_string_field"
c:identifier="couchdb_document_set_string_field">
<doc xml:whitespace="preserve">Set the value of a string field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_struct_field"
c:identifier="couchdb_document_set_struct_field">
<doc xml:whitespace="preserve">Set the value of a struct field in the given document.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to set</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">Value to set the field to</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</method>
<method name="to_string" c:identifier="couchdb_document_to_string">
<doc xml:whitespace="preserve">Convert the given #CouchdbDocument to a JSON string.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A string containing the given document in JSON format.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<property name="database"
writable="1"
construct="1"
transfer-ownership="none">
<type name="Database"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="DocumentPrivate" c:type="CouchdbDocumentPrivate*"/>
</field>
</class>
<record name="DocumentClass"
c:type="CouchdbDocumentClass"
glib:is-gtype-struct-for="Document">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<class name="DocumentContact"
c:symbol-prefix="document_contact"
c:type="CouchdbDocumentContact"
parent="Document"
glib:type-name="CouchdbDocumentContact"
glib:get-type="couchdb_document_contact_get_type"
glib:type-struct="DocumentContactClass">
<constructor name="address_new"
c:identifier="couchdb_document_contact_address_new">
<return-value transfer-ownership="full">
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="street" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="ext_street" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="city" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="state" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="country" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="postalcode" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="pobox" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="email_new"
c:identifier="couchdb_document_contact_email_new">
<return-value transfer-ownership="full">
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="address" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="im_new"
c:identifier="couchdb_document_contact_im_new">
<return-value transfer-ownership="full">
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="address" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="protocol" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new" c:identifier="couchdb_document_contact_new">
<doc xml:whitespace="preserve">Create a new #CouchdbDocumentContact object.</doc>
<return-value transfer-ownership="full">
<type name="DocumentContact" c:type="CouchdbDocumentContact*"/>
</return-value>
</constructor>
<constructor name="phone_new"
c:identifier="couchdb_document_contact_phone_new">
<return-value transfer-ownership="full">
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="number" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="priority" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</constructor>
<constructor name="url_new"
c:identifier="couchdb_document_contact_url_new">
<return-value transfer-ownership="full">
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="address" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<function name="address_get_city"
c:identifier="couchdb_document_contact_address_get_city">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_country"
c:identifier="couchdb_document_contact_address_get_country">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_description"
c:identifier="couchdb_document_contact_address_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_ext_street"
c:identifier="couchdb_document_contact_address_get_ext_street">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_pobox"
c:identifier="couchdb_document_contact_address_get_pobox">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_postalcode"
c:identifier="couchdb_document_contact_address_get_postalcode">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_state"
c:identifier="couchdb_document_contact_address_get_state">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_get_street"
c:identifier="couchdb_document_contact_address_get_street">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="address_set_city"
c:identifier="couchdb_document_contact_address_set_city">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="city" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_country"
c:identifier="couchdb_document_contact_address_set_country">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="country" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_description"
c:identifier="couchdb_document_contact_address_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_ext_street"
c:identifier="couchdb_document_contact_address_set_ext_street">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="ext_street" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_pobox"
c:identifier="couchdb_document_contact_address_set_pobox">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="pobox" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_postalcode"
c:identifier="couchdb_document_contact_address_set_postalcode">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="postalcode" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_state"
c:identifier="couchdb_document_contact_address_set_state">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="state" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="address_set_street"
c:identifier="couchdb_document_contact_address_set_street">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="street" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="email_get_address"
c:identifier="couchdb_document_contact_email_get_address">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="email_get_description"
c:identifier="couchdb_document_contact_email_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="email_set_address"
c:identifier="couchdb_document_contact_email_set_address">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="email" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="email_set_description"
c:identifier="couchdb_document_contact_email_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="im_get_address"
c:identifier="couchdb_document_contact_im_get_address">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="im_get_description"
c:identifier="couchdb_document_contact_im_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="im_get_protocol"
c:identifier="couchdb_document_contact_im_get_protocol">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="im_set_address"
c:identifier="couchdb_document_contact_im_set_address">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="address" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="im_set_description"
c:identifier="couchdb_document_contact_im_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="im_set_protocol"
c:identifier="couchdb_document_contact_im_set_protocol">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="protocol" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="phone_get_description"
c:identifier="couchdb_document_contact_phone_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="phone_get_number"
c:identifier="couchdb_document_contact_phone_get_number">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="phone_get_priority"
c:identifier="couchdb_document_contact_phone_get_priority">
<return-value transfer-ownership="none">
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="phone_set_description"
c:identifier="couchdb_document_contact_phone_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="phone_set_number"
c:identifier="couchdb_document_contact_phone_set_number">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="number" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="phone_set_priority"
c:identifier="couchdb_document_contact_phone_set_priority">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="priority" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</function>
<function name="url_get_address"
c:identifier="couchdb_document_contact_url_get_address">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="url_get_description"
c:identifier="couchdb_document_contact_url_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</function>
<function name="url_set_address"
c:identifier="couchdb_document_contact_url_set_address">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="address" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<function name="url_set_description"
c:identifier="couchdb_document_contact_url_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sf" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</function>
<method name="get_addresses"
c:identifier="couchdb_document_contact_get_addresses"
introspectable="0">
<return-value>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_assistant_name"
c:identifier="couchdb_document_contact_get_assistant_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_birth_date"
c:identifier="couchdb_document_contact_get_birth_date">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_categories"
c:identifier="couchdb_document_contact_get_categories">
<doc xml:whitespace="preserve">Get the list of categories (as a string) for this contact document.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A comma separated list of categories as a string.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_company"
c:identifier="couchdb_document_contact_get_company">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_department"
c:identifier="couchdb_document_contact_get_department">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_email_addresses"
c:identifier="couchdb_document_contact_get_email_addresses"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve a list of email addresses from the specified contact document.
Email addresses are returned in a GSList of #CouchdbStructField objects,
which can be manipulated with the couchdb_document_contact_email_* functions
and freed with:
g_slist_foreach (list, (GFunc) couchdb_struct_field_unref, NULL);
g_slist_free (list);</doc>
<return-value>
<doc xml:whitespace="preserve">a #GSList of #CouchdbStructField objects.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_first_name"
c:identifier="couchdb_document_contact_get_first_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_im_addresses"
c:identifier="couchdb_document_contact_get_im_addresses"
introspectable="0">
<return-value>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_job_title"
c:identifier="couchdb_document_contact_get_job_title">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_last_name"
c:identifier="couchdb_document_contact_get_last_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_manager_name"
c:identifier="couchdb_document_contact_get_manager_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_middle_name"
c:identifier="couchdb_document_contact_get_middle_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_nick_name"
c:identifier="couchdb_document_contact_get_nick_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_notes"
c:identifier="couchdb_document_contact_get_notes">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_office"
c:identifier="couchdb_document_contact_get_office">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_phone_numbers"
c:identifier="couchdb_document_contact_get_phone_numbers"
introspectable="0">
<return-value>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_spouse_name"
c:identifier="couchdb_document_contact_get_spouse_name">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_suffix"
c:identifier="couchdb_document_contact_get_suffix">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_title"
c:identifier="couchdb_document_contact_get_title">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_urls"
c:identifier="couchdb_document_contact_get_urls"
introspectable="0">
<return-value>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_wedding_date"
c:identifier="couchdb_document_contact_get_wedding_date">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="set_addresses"
c:identifier="couchdb_document_contact_set_addresses"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="set_assistant_name"
c:identifier="couchdb_document_contact_set_assistant_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="assistant_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_birth_date"
c:identifier="couchdb_document_contact_set_birth_date">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="birth_date" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_categories"
c:identifier="couchdb_document_contact_set_categories">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="categories" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_company"
c:identifier="couchdb_document_contact_set_company">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="company" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_department"
c:identifier="couchdb_document_contact_set_department">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="department" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_email_addresses"
c:identifier="couchdb_document_contact_set_email_addresses"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="set_first_name"
c:identifier="couchdb_document_contact_set_first_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="first_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_im_addresses"
c:identifier="couchdb_document_contact_set_im_addresses"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="set_job_title"
c:identifier="couchdb_document_contact_set_job_title">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="job_title" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_last_name"
c:identifier="couchdb_document_contact_set_last_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="last_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_manager_name"
c:identifier="couchdb_document_contact_set_manager_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_middle_name"
c:identifier="couchdb_document_contact_set_middle_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="middle_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_nick_name"
c:identifier="couchdb_document_contact_set_nick_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="nick_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_notes"
c:identifier="couchdb_document_contact_set_notes">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="notes" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_office"
c:identifier="couchdb_document_contact_set_office">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="office" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_phone_numbers"
c:identifier="couchdb_document_contact_set_phone_numbers"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="set_spouse_name"
c:identifier="couchdb_document_contact_set_spouse_name">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="spouse_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_suffix"
c:identifier="couchdb_document_contact_set_suffix">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="suffix" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_title"
c:identifier="couchdb_document_contact_set_title">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="title" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_urls"
c:identifier="couchdb_document_contact_set_urls"
introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="set_wedding_date"
c:identifier="couchdb_document_contact_set_wedding_date">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="wedding_date" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="Document" c:type="CouchdbDocument"/>
</field>
</class>
<record name="DocumentContactClass"
c:type="CouchdbDocumentContactClass"
glib:is-gtype-struct-for="DocumentContact">
<field name="parent_class">
<type name="DocumentClass" c:type="CouchdbDocumentClass"/>
</field>
</record>
<record name="DocumentInfo"
c:type="CouchdbDocumentInfo"
glib:type-name="CouchdbDocumentInfo"
glib:get-type="couchdb_document_info_get_type"
c:symbol-prefix="document_info">
<constructor name="new" c:identifier="couchdb_document_info_new">
<doc xml:whitespace="preserve">Create a new #CouchdbDocumentInfo object, which is used to store information
about a document on a CouchDB database. It contains information like the
Unique ID and revision of the document.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchDocumentInfo object.</doc>
<type name="DocumentInfo" c:type="CouchdbDocumentInfo*"/>
</return-value>
<parameters>
<parameter name="docid" transfer-ownership="none">
<doc xml:whitespace="preserve">Unique ID of the document</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="revision" transfer-ownership="none">
<doc xml:whitespace="preserve">Current revision of the document</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<method name="get_docid" c:identifier="couchdb_document_info_get_docid">
<doc xml:whitespace="preserve">Get the unique ID stored in the #CouchdbDocumentInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Unique ID.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_revision"
c:identifier="couchdb_document_info_get_revision">
<doc xml:whitespace="preserve">Get the revision stored in the #CouchdbDocumentInfo object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Revision number.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="ref" c:identifier="couchdb_document_info_ref">
<doc xml:whitespace="preserve">Increments reference counting of the given #CouchdbDocumentInfo object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A pointer to the object being referenced.</doc>
<type name="DocumentInfo" c:type="CouchdbDocumentInfo*"/>
</return-value>
</method>
<method name="unref" c:identifier="couchdb_document_info_unref">
<doc xml:whitespace="preserve">Decrements reference counting of the given #CouchdbDocumentInfo object.
When the reference count is equal to 0, the object will be destroyed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
</record>
<record name="DocumentPrivate"
c:type="CouchdbDocumentPrivate"
disguised="1">
</record>
<class name="DocumentTask"
c:symbol-prefix="document_task"
c:type="CouchdbDocumentTask"
parent="Document"
glib:type-name="CouchdbDocumentTask"
glib:get-type="couchdb_document_task_get_type"
glib:type-struct="DocumentTaskClass">
<constructor name="new" c:identifier="couchdb_document_task_new">
<doc xml:whitespace="preserve">Create a new #CouchdbDocumentTask object.</doc>
<return-value transfer-ownership="full">
<type name="DocumentTask" c:type="CouchdbDocumentTask*"/>
</return-value>
</constructor>
<method name="get_description"
c:identifier="couchdb_document_task_get_description">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_summary"
c:identifier="couchdb_document_task_get_summary">
<return-value transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="set_description"
c:identifier="couchdb_document_task_set_description">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="description" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_summary"
c:identifier="couchdb_document_task_set_summary">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="summary" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="Document" c:type="CouchdbDocument"/>
</field>
</class>
<record name="DocumentTaskClass"
c:type="CouchdbDocumentTaskClass"
glib:is-gtype-struct-for="DocumentTask">
<field name="parent_class">
<type name="DocumentClass" c:type="CouchdbDocumentClass"/>
</field>
</record>
<class name="Query"
c:symbol-prefix="query"
c:type="CouchdbQuery"
parent="GObject.Object"
glib:type-name="CouchdbQuery"
glib:get-type="couchdb_query_get_type"
glib:type-struct="QueryClass">
<constructor name="new" c:identifier="couchdb_query_new">
<doc xml:whitespace="preserve">Creates and returns a new #CouchdbQuery object
when no longer needed.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #CouchdbQuery object, to be unreferenced</doc>
<type name="Query" c:type="CouchdbQuery*"/>
</return-value>
</constructor>
<constructor name="new_for_path"
c:identifier="couchdb_query_new_for_path">
<doc xml:whitespace="preserve">Creates and returns a new #CouchdbQuery object for a give design document
and view. It's a shortcut for this code:
[[[
const gchar *design_doc, *view_name;
CouchdbQuery *query;
design_doc = "document";
view_name = "view";
path = g_str_concat ("_design/", design_doc, "_view", view_name);
query = couchdb_query_new ();
couchdb_query_set_path (query, path);
g_free (path);
]]]
when no longer needed.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #CouchdbQuery object, to be unreferenced</doc>
<type name="Query" c:type="CouchdbQuery*"/>
</return-value>
<parameters>
<parameter name="path" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_for_view"
c:identifier="couchdb_query_new_for_view">
<return-value transfer-ownership="full">
<type name="Query" c:type="CouchdbQuery*"/>
</return-value>
<parameters>
<parameter name="design_doc" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="view_name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<method name="get_json_object"
c:identifier="couchdb_query_get_json_object">
<doc xml:whitespace="preserve">Sets the given Json object as a body of the query that is going to be
send to the CouchDB server. It doesn't change the query's method so it has
to be set to either PUT or POST by calling #couchdb_query_set_method.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A JsonObject to be set as a Query's body.</doc>
<type name="Json.Object" c:type="JsonObject*"/>
</return-value>
</method>
<method name="get_method" c:identifier="couchdb_query_get_method">
<doc xml:whitespace="preserve">Returns method set for the query.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">string containing method set for the query.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_option" c:identifier="couchdb_query_get_option">
<doc xml:whitespace="preserve">Returns the value of the given key, or %NULL if it wasn't set
or %NULL if it hasn't been set.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the value of the given key,</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_path" c:identifier="couchdb_query_get_path">
<doc xml:whitespace="preserve">Returns path set for the query.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">string containing path set for the query.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_query_options_string"
c:identifier="couchdb_query_get_query_options_string">
<doc xml:whitespace="preserve">Returns options as a query string that can be used to create
a complete uri for querying server.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A string containing all query options.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="set_json_object"
c:identifier="couchdb_query_set_json_object">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="Json.Object" c:type="JsonObject*"/>
</parameter>
</parameters>
</method>
<method name="set_method" c:identifier="couchdb_query_set_method">
<doc xml:whitespace="preserve">Sets method for the Query.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="method" transfer-ownership="none">
<doc xml:whitespace="preserve">A method for query.</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_option" c:identifier="couchdb_query_set_option">
<doc xml:whitespace="preserve">Set's the value of the given key, overwriting the current one if it's
already set</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_path" c:identifier="couchdb_query_set_path">
<doc xml:whitespace="preserve">Sets path for the Query.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="path" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<property name="path" writable="1" transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="query-options" writable="1" transfer-ownership="none">
<type name="GLib.HashTable">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="QueryPrivate" c:type="CouchdbQueryPrivate*"/>
</field>
</class>
<record name="QueryClass"
c:type="CouchdbQueryClass"
glib:is-gtype-struct-for="Query">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="QueryPrivate" c:type="CouchdbQueryPrivate" disguised="1">
</record>
<constant name="RECORD_TYPE_CONTACT"
value="http://www.freedesktop.org/wiki/Specifications/desktopcouch/contact"
c:type="COUCHDB_RECORD_TYPE_CONTACT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RECORD_TYPE_TASK"
value="http://www.freedesktop.org/wiki/Specifications/desktopcouch/task"
c:type="COUCHDB_RECORD_TYPE_TASK">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Response"
c:symbol-prefix="response"
c:type="CouchdbResponse"
parent="GObject.Object"
glib:type-name="CouchdbResponse"
glib:get-type="couchdb_response_get_type"
glib:type-struct="ResponseClass">
<constructor name="new" c:identifier="couchdb_response_new">
<return-value transfer-ownership="full">
<type name="Response" c:type="CouchdbResponse*"/>
</return-value>
</constructor>
<method name="get_content_length"
c:identifier="couchdb_response_get_content_length">
<doc xml:whitespace="preserve">Returns content length of the CouchDB response.
any body.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">content length or 0 if response doesn't contain</doc>
<type name="gsize" c:type="gsize"/>
</return-value>
</method>
<method name="get_content_type"
c:identifier="couchdb_response_get_content_type">
<doc xml:whitespace="preserve">Returns the string containing content type of the response.
wasn't set</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Content-Type of the response or %NULL if the header</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_etag" c:identifier="couchdb_response_get_etag">
<doc xml:whitespace="preserve">Returns the value of ETag header from the response. This header
is set to the current revision of the document requested.
if there has been no ETag in response headers.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A @string containing the ETag header or %NULL</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="get_json_object"
c:identifier="couchdb_response_get_json_object">
<doc xml:whitespace="preserve">Returns a #JsonObject containing the response from CouchDB server.
the server. Object is owned by #CouchdbResponse and should not be
freed.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A #JsonObject containing response from</doc>
<type name="Json.Object" c:type="JsonObject*"/>
</return-value>
</method>
<method name="get_rows" c:identifier="couchdb_response_get_rows">
<doc xml:whitespace="preserve">Returns a list of #JsonObject rows returned by the CouchDB server.
of #JsonObject objects. Returned objects are owned by #CouchdbResponse,
#GList should be freed by caller when no longer needed.</doc>
<return-value transfer-ownership="container">
<doc xml:whitespace="preserve">A #GList</doc>
<type name="GLib.List" c:type="GList*">
<type name="Json.Object"/>
</type>
</return-value>
</method>
<method name="get_status_code"
c:identifier="couchdb_response_get_status_code">
<doc xml:whitespace="preserve">Returns the response status code</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">status code of the response</doc>
<type name="guint" c:type="guint"/>
</return-value>
</method>
<property name="content-length"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gulong"/>
</property>
<property name="content-type"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="etag"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="response"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="Json.Object"/>
</property>
<property name="status-code"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="guint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ResponsePrivate" c:type="CouchdbResponsePrivate*"/>
</field>
</class>
<record name="ResponseClass"
c:type="CouchdbResponseClass"
glib:is-gtype-struct-for="Response">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="ResponsePrivate"
c:type="CouchdbResponsePrivate"
disguised="1">
</record>
<class name="Session"
c:symbol-prefix="session"
c:type="CouchdbSession"
parent="GObject.Object"
glib:type-name="CouchdbSession"
glib:get-type="couchdb_session_get_type"
glib:type-struct="SessionClass">
<constructor name="new" c:identifier="couchdb_session_new">
<doc xml:whitespace="preserve">Create a new #CouchdbSession object, which is the entry point for operations on a
CouchDB instance.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbSession object.</doc>
<type name="Session" c:type="CouchdbSession*"/>
</return-value>
<parameters>
<parameter name="uri" transfer-ownership="none">
<doc xml:whitespace="preserve">URI of the CouchDB instance to connect to</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<function name="free_database_list"
c:identifier="couchdb_session_free_database_list"
introspectable="0">
<doc xml:whitespace="preserve">Free the list of databases returned by #couchdb_session_list_databases.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dblist" transfer-ownership="none">
<doc xml:whitespace="preserve">A list of databases, as returned by #couchdb_session_list_databases</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</function>
<virtual-method name="authentication_failed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</virtual-method>
<virtual-method name="database_created">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="database_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</virtual-method>
<method name="compact_database"
c:identifier="couchdb_session_compact_database"
throws="1">
<doc xml:whitespace="preserve">Compact the given database, which means removing outdated document
revisions and deleted documents.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database to be compacted</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="create_database"
c:identifier="couchdb_session_create_database"
throws="1">
<doc xml:whitespace="preserve">Create a new database on a CouchDB instance.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database to be created</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="delete_database"
c:identifier="couchdb_session_delete_database"
throws="1">
<doc xml:whitespace="preserve">Delete an existing database on a CouchDB instance.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database to be deleted</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="disable_authentication"
c:identifier="couchdb_session_disable_authentication">
<doc xml:whitespace="preserve">Disables authentication for the given #CouchdbSession object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="enable_authentication"
c:identifier="couchdb_session_enable_authentication">
<doc xml:whitespace="preserve">Enables authentication for the given #CouchdbSession object. The authentication
mechanism should be specificied when creating the #CouchdbCredentials object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="credentials" transfer-ownership="none">
<doc xml:whitespace="preserve">A #CouchdbCredentials object</doc>
<type name="Credentials" c:type="CouchdbCredentials*"/>
</parameter>
</parameters>
</method>
<method name="get_database"
c:identifier="couchdb_session_get_database"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Get a #CouchdbDatabase object reference for an existing database.
#CouchdbSession object, or NULL if the database does not exist.</doc>
<return-value>
<doc xml:whitespace="preserve">A #CouchdbDatabase object if the database exists on the specified</doc>
<type name="Database" c:type="CouchdbDatabase*"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database to retrieve</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_database_info"
c:identifier="couchdb_session_get_database_info"
throws="1">
<doc xml:whitespace="preserve">Retrieve information about a given database.
all the information returned by CouchDB about this database.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A #CouchdbDatabaseInfo object, whose API can be used to retrieve</doc>
<type name="DatabaseInfo" c:type="CouchdbDatabaseInfo*"/>
</return-value>
<parameters>
<parameter name="dbname" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the database for which to retrieve the information</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_uri" c:identifier="couchdb_session_get_uri">
<doc xml:whitespace="preserve">Retrieve the URI of the CouchDB instance a #CouchdbSession object is bound to.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the URI of the CouchDB instance used by this #CouchdbSession object.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="is_authentication_enabled"
c:identifier="couchdb_session_is_authentication_enabled">
<doc xml:whitespace="preserve">Gets whether the given #CouchdbSession object has authentication enabled.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if authentication is enabled, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="list_databases"
c:identifier="couchdb_session_list_databases"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Retrieve the list of databases that exist in the CouchDB instance being used.
that exist in the CouchDB instance connected to. Once no longer needed, this
list can be freed by calling #couchdb_session_free_database_list.</doc>
<return-value>
<doc xml:whitespace="preserve">A list of strings containing the names of all the databases</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="replicate"
c:identifier="couchdb_session_replicate"
throws="1">
<doc xml:whitespace="preserve">Replicates a source database to another database, on the same CouchDB instance
or on a remote instance.
If @continous is FALSE, the replication will happen once, but if set to TRUE,
CouchDB will listen to all changes made to the source database, and automatically
replicate over any new docs as they come into the source to the target.
parameter will be set to contain information about the error.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if successful, FALSE otherwise, in which case the @error</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="source" transfer-ownership="none">
<doc xml:whitespace="preserve">Source database</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="target" transfer-ownership="none">
<doc xml:whitespace="preserve">Target database</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="continous" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether to replicate once or keep replicating</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<property name="uri"
writable="1"
construct="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="SessionPrivate" c:type="CouchdbSessionPrivate*"/>
</field>
<glib:signal name="authentication-failed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
</glib:signal>
<glib:signal name="database-created" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="database-deleted" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="SessionClass"
c:type="CouchdbSessionClass"
glib:is-gtype-struct-for="Session">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="authentication_failed">
<callback name="authentication_failed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="session" transfer-ownership="none">
<type name="Session" c:type="CouchdbSession*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="database_created">
<callback name="database_created">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="session" transfer-ownership="none">
<type name="Session" c:type="CouchdbSession*"/>
</parameter>
<parameter name="dbname" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="database_deleted">
<callback name="database_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="session" transfer-ownership="none">
<type name="Session" c:type="CouchdbSession*"/>
</parameter>
<parameter name="dbname" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<record name="SessionPrivate" c:type="CouchdbSessionPrivate" disguised="1">
</record>
<class name="StructField"
c:symbol-prefix="struct_field"
c:type="CouchdbStructField"
parent="GObject.Object"
glib:type-name="CouchdbStructField"
glib:get-type="couchdb_struct_field_get_type"
glib:type-struct="StructFieldClass">
<constructor name="new" c:identifier="couchdb_struct_field_new">
<doc xml:whitespace="preserve">Create a new struct field object, to be added to a #CouchdbDocument or to
another #CouchdbStructField.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbStructField object.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
</constructor>
<constructor name="new_from_string"
c:identifier="couchdb_struct_field_new_from_string">
<doc xml:whitespace="preserve">Create a new struct field object, filling it with values taken from a string
representing a JSON object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #CouchdbStructField object.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="str" transfer-ownership="none">
<doc xml:whitespace="preserve">A JSON string</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<method name="get_array_field"
c:identifier="couchdb_struct_field_get_array_field"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the value of an array field from the given struct field.</doc>
<return-value>
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_boolean_field"
c:identifier="couchdb_struct_field_get_boolean_field">
<doc xml:whitespace="preserve">Retrieve the value of a boolean field from the given struct field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_double_field"
c:identifier="couchdb_struct_field_get_double_field">
<doc xml:whitespace="preserve">Retrieve the value of a decimal number field from the given struct field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="gdouble" c:type="gdouble"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_field_names"
c:identifier="couchdb_struct_field_get_field_names"
introspectable="0">
<doc xml:whitespace="preserve">Get the list of field names the given #CouchdbStructField object contains.
in the given #CouchdbStructField object. When no longer needed, the list should
be freed by calling #g_slist_free.</doc>
<return-value>
<doc xml:whitespace="preserve">A list of strings containing the names of all the fields contained</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="get_field_type"
c:identifier="couchdb_struct_field_get_field_type">
<doc xml:whitespace="preserve">Get the value type of the given #CouchdbStructField's field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Type of the field.</doc>
<type name="GType" c:type="GType"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to get type</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_int_field"
c:identifier="couchdb_struct_field_get_int_field">
<doc xml:whitespace="preserve">Retrieve the value of an integer field from the given struct field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_string_field"
c:identifier="couchdb_struct_field_get_string_field">
<doc xml:whitespace="preserve">Retrieve the value of a string field from the given struct field.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_struct_field"
c:identifier="couchdb_struct_field_get_struct_field"
introspectable="0">
<doc xml:whitespace="preserve">Retrieve the value of a struct field from the given struct field.</doc>
<return-value>
<doc xml:whitespace="preserve">The value of the given field.</doc>
<type name="StructField" c:type="CouchdbStructField*"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="get_uuid" c:identifier="couchdb_struct_field_get_uuid">
<doc xml:whitespace="preserve">Retrieve the unique ID of the given struct field. Note that this is a convenience
function to allow documents with a format similar to:
"list": {
"unique-id-1": { "field": "value" },
"unique-id-2": { "field": "value" }
}
So, not all #CouchdbStructField objects would have a value for this, unless explicitly
used by the applications storing the documents on the CouchDB database.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The unique ID of the given struct field.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<method name="has_field" c:identifier="couchdb_struct_field_has_field">
<doc xml:whitespace="preserve">Check whether a given field exists in the given #CouchdbStructField object.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the field exists, FALSE if not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to check</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="remove_field"
c:identifier="couchdb_struct_field_remove_field">
<doc xml:whitespace="preserve">Remove a field from the given #CouchdbStructField object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field to remove</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_array_field"
c:identifier="couchdb_struct_field_set_array_field">
<doc xml:whitespace="preserve">Set the value of an array field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="ArrayField" c:type="CouchdbArrayField*"/>
</parameter>
</parameters>
</method>
<method name="set_boolean_field"
c:identifier="couchdb_struct_field_set_boolean_field">
<doc xml:whitespace="preserve">Set the value of a boolean field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_double_field"
c:identifier="couchdb_struct_field_set_double_field">
<doc xml:whitespace="preserve">Set the value of a decimal number field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</method>
<method name="set_int_field"
c:identifier="couchdb_struct_field_set_int_field">
<doc xml:whitespace="preserve">Set the value of an integer field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="set_string_field"
c:identifier="couchdb_struct_field_set_string_field">
<doc xml:whitespace="preserve">Set the value of a string field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="set_struct_field"
c:identifier="couchdb_struct_field_set_struct_field">
<doc xml:whitespace="preserve">Set the value of a string field in the given struct field.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="field" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the field</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="StructField" c:type="CouchdbStructField*"/>
</parameter>
</parameters>
</method>
<method name="set_uuid" c:identifier="couchdb_struct_field_set_uuid">
<doc xml:whitespace="preserve">Set the unique ID for the given struct field. See the explanation for #couchdb_struct_field_get_uuid
for knowing when to use this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="uuid" transfer-ownership="none">
<doc xml:whitespace="preserve">Unique ID</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="to_string" c:identifier="couchdb_struct_field_to_string">
<doc xml:whitespace="preserve">Convert a #CouchdbStructField to a JSON string.
object in JSON format.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A string representing the contents of the given #CouchdbStructField</doc>
<type name="utf8" c:type="char*"/>
</return-value>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="StructFieldPrivate" c:type="CouchdbStructFieldPrivate*"/>
</field>
</class>
<record name="StructFieldClass"
c:type="CouchdbStructFieldClass"
glib:is-gtype-struct-for="StructField">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="StructFieldPrivate"
c:type="CouchdbStructFieldPrivate"
disguised="1">
</record>
</namespace>
</repository>
|