/usr/share/gtk-doc/html/rhythmbox/RhythmDB.html is in rhythmbox-doc 2.96-0ubuntu4.1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RhythmDB</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual">
<link rel="up" href="ch04.html" title="RhythmDB">
<link rel="prev" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults">
<link rel="next" href="ch05.html" title="Shell">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="RhythmDBQueryResults.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Rhythmbox Development Reference Manual</th>
<td><a accesskey="n" href="ch05.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#RhythmDB.synopsis" class="shortcut">Top</a>
|
<a href="#RhythmDB.description" class="shortcut">Description</a>
|
<a href="#RhythmDB.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#RhythmDB.properties" class="shortcut">Properties</a>
|
<a href="#RhythmDB.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="RhythmDB"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="RhythmDB.top_of_page"></a>RhythmDB</span></h2>
<p>RhythmDB — Rhythmbox database functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="RhythmDB.synopsis"></a><h2>Synopsis</h2>
<a name="RhythmDBEntry"></a><a name="RhythmDBQuery"></a><a name="RhythmDBQueryType"></a><a name="RhythmDBPropType"></a><pre class="synopsis">struct <a class="link" href="RhythmDB.html#RhythmDB-struct" title="struct RhythmDB">RhythmDB</a>;
<a class="link" href="RhythmDB.html#RhythmDBEntry-struct" title="RhythmDBEntry">RhythmDBEntry</a>;
typedef <a class="link" href="RhythmDB.html#RhythmDBQuery">RhythmDBQuery</a>;
enum <a class="link" href="RhythmDB.html#RhythmDBQueryType-enum" title="enum RhythmDBQueryType">RhythmDBQueryType</a>;
enum <a class="link" href="RhythmDB.html#RhythmDBPropType-enum" title="enum RhythmDBPropType">RhythmDBPropType</a>;
#define <a class="link" href="RhythmDB.html#RHYTHMDB-PROP-STREAM-SONG-TITLE:CAPS" title="RHYTHMDB_PROP_STREAM_SONG_TITLE">RHYTHMDB_PROP_STREAM_SONG_TITLE</a>
#define <a class="link" href="RhythmDB.html#RHYTHMDB-PROP-STREAM-SONG-ARTIST:CAPS" title="RHYTHMDB_PROP_STREAM_SONG_ARTIST">RHYTHMDB_PROP_STREAM_SONG_ARTIST</a>
#define <a class="link" href="RhythmDB.html#RHYTHMDB-PROP-STREAM-SONG-ALBUM:CAPS" title="RHYTHMDB_PROP_STREAM_SONG_ALBUM">RHYTHMDB_PROP_STREAM_SONG_ALBUM</a>
<a class="link" href="RhythmDB.html#RhythmDBQueryData" title="RhythmDBQueryData">RhythmDBQueryData</a>;
<a class="link" href="RhythmDB.html#RhythmDBEntryChange" title="RhythmDBEntryChange">RhythmDBEntryChange</a>;
const <span class="returnvalue">char</span> * <a class="link" href="RhythmDB.html#rhythmdb-entry-get-string" title="rhythmdb_entry_get_string ()">rhythmdb_entry_get_string</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<span class="returnvalue">RBRefString</span> * <a class="link" href="RhythmDB.html#rhythmdb-entry-get-refstring" title="rhythmdb_entry_get_refstring ()">rhythmdb_entry_get_refstring</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="RhythmDB.html#rhythmdb-entry-dup-string" title="rhythmdb_entry_dup_string ()">rhythmdb_entry_dup_string</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-get-boolean" title="rhythmdb_entry_get_boolean ()">rhythmdb_entry_get_boolean</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<span class="returnvalue">guint64</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-get-uint64" title="rhythmdb_entry_get_uint64 ()">rhythmdb_entry_get_uint64</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-get-ulong" title="rhythmdb_entry_get_ulong ()">rhythmdb_entry_get_ulong</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<span class="returnvalue">double</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-get-double" title="rhythmdb_entry_get_double ()">rhythmdb_entry_get_double</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-get-object" title="rhythmdb_entry_get_object ()">rhythmdb_entry_get_object</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="returnvalue">RhythmDBEntryType</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-get-entry-type" title="rhythmdb_entry_get_entry_type ()">rhythmdb_entry_get_entry_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
enum <a class="link" href="RhythmDB.html#RhythmDBError" title="enum RhythmDBError">RhythmDBError</a>;
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-shutdown" title="rhythmdb_shutdown ()">rhythmdb_shutdown</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-load" title="rhythmdb_load ()">rhythmdb_load</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-save" title="rhythmdb_save ()">rhythmdb_save</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-save-async" title="rhythmdb_save_async ()">rhythmdb_save_async</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-start-action-thread" title="rhythmdb_start_action_thread ()">rhythmdb_start_action_thread</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-commit" title="rhythmdb_commit ()">rhythmdb_commit</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-new" title="rhythmdb_entry_new ()">rhythmdb_entry_new</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-example-new" title="rhythmdb_entry_example_new ()">rhythmdb_entry_example_new</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-add-uri" title="rhythmdb_add_uri ()">rhythmdb_add_uri</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-add-uri-with-types" title="rhythmdb_add_uri_with_types ()">rhythmdb_add_uri_with_types</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *ignore_type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *error_type</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-get" title="rhythmdb_entry_get ()">rhythmdb_entry_get</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *val</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-set" title="rhythmdb_entry_set ()">rhythmdb_entry_set</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> propid</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-get-type-data" title="rhythmdb_entry_get_type_data ()">rhythmdb_entry_get_type_data</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> expected_size</code></em>);
#define <a class="link" href="RhythmDB.html#RHYTHMDB-ENTRY-GET-TYPE-DATA:CAPS" title="RHYTHMDB_ENTRY_GET_TYPE_DATA()">RHYTHMDB_ENTRY_GET_TYPE_DATA</a> (e,
t)
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-delete" title="rhythmdb_entry_delete ()">rhythmdb_entry_delete</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-delete-by-type" title="rhythmdb_entry_delete_by_type ()">rhythmdb_entry_delete_by_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-move-to-trash" title="rhythmdb_entry_move_to_trash ()">rhythmdb_entry_move_to_trash</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-lookup-by-location" title="rhythmdb_entry_lookup_by_location ()">rhythmdb_entry_lookup_by_location</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-lookup-by-id" title="rhythmdb_entry_lookup_by_id ()">rhythmdb_entry_lookup_by_id</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-lookup-from-string" title="rhythmdb_entry_lookup_from_string ()">rhythmdb_entry_lookup_from_string</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_id</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-evaluate-query" title="rhythmdb_evaluate_query ()">rhythmdb_evaluate_query</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-foreach" title="rhythmdb_entry_foreach ()">rhythmdb_entry_foreach</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> func</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">gint64</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-count" title="rhythmdb_entry_count ()">rhythmdb_entry_count</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-foreach-by-type" title="rhythmdb_entry_foreach_by_type ()">rhythmdb_entry_foreach_by_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> func</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">gint64</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-count-by-type" title="rhythmdb_entry_count_by_type ()">rhythmdb_entry_count_by_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-keyword-add" title="rhythmdb_entry_keyword_add ()">rhythmdb_entry_keyword_add</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-keyword-remove" title="rhythmdb_entry_keyword_remove ()">rhythmdb_entry_keyword_remove</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-keyword-has" title="rhythmdb_entry_keyword_has ()">rhythmdb_entry_keyword_has</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-do-full-query" title="rhythmdb_do_full_query ()">rhythmdb_do_full_query</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-do-full-query-parsed" title="rhythmdb_do_full_query_parsed ()">rhythmdb_do_full_query_parsed</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-do-full-query-async" title="rhythmdb_do_full_query_async ()">rhythmdb_do_full_query_async</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-do-full-query-async-parsed" title="rhythmdb_do_full_query_async_parsed ()">rhythmdb_do_full_query_async_parsed</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-query-parse" title="rhythmdb_query_parse ()">rhythmdb_query_parse</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-append" title="rhythmdb_query_append ()">rhythmdb_query_append</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-append-params" title="rhythmdb_query_append_params ()">rhythmdb_query_append_params</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQueryType"><span class="type">RhythmDBQueryType</span></a> type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> prop</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-append-prop-multiple" title="rhythmdb_query_append_prop_multiple ()">rhythmdb_query_append_prop_multiple</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *items</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-concatenate" title="rhythmdb_query_concatenate ()">rhythmdb_query_concatenate</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query1</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-free" title="rhythmdb_query_free ()">rhythmdb_query_free</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-query-copy" title="rhythmdb_query_copy ()">rhythmdb_query_copy</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *array</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-preprocess" title="rhythmdb_query_preprocess ()">rhythmdb_query_preprocess</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-query-serialize" title="rhythmdb_query_serialize ()">rhythmdb_query_serialize</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">xmlNodePtr</span> parent</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-query-deserialize" title="rhythmdb_query_deserialize ()">rhythmdb_query_deserialize</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><span class="type">xmlNodePtr</span> parent</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="RhythmDB.html#rhythmdb-query-to-string" title="rhythmdb_query_to_string ()">rhythmdb_query_to_string</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-query-is-time-relative" title="rhythmdb_query_is_time_relative ()">rhythmdb_query_is_time_relative</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);
const <span class="returnvalue">xmlChar</span> * <a class="link" href="RhythmDB.html#rhythmdb-nice-elt-name-from-propid" title="rhythmdb_nice_elt_name_from_propid ()">rhythmdb_nice_elt_name_from_propid</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);
<span class="returnvalue">int</span> <a class="link" href="RhythmDB.html#rhythmdb-propid-from-nice-elt-name" title="rhythmdb_propid_from_nice_elt_name ()">rhythmdb_propid_from_nice_elt_name</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">xmlChar</span> *name</code></em>);
<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-request-extra-metadata" title="rhythmdb_entry_request_extra_metadata ()">rhythmdb_entry_request_extra_metadata</a>
(<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>);
<a class="link" href="RBStringValueMap.html" title="RBStringValueMap"><span class="returnvalue">RBStringValueMap</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-gather-metadata" title="rhythmdb_entry_gather_metadata ()">rhythmdb_entry_gather_metadata</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-emit-entry-extra-metadata-notify" title="rhythmdb_emit_entry_extra_metadata_notify ()">rhythmdb_emit_entry_extra_metadata_notify</a>
(<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *metadata</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-is-busy" title="rhythmdb_is_busy ()">rhythmdb_is_busy</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="RhythmDB.html#rhythmdb-compute-status-normal" title="rhythmdb_compute_status_normal ()">rhythmdb_compute_status_normal</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_songs</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#glong"><span class="type">glong</span></a> duration</code></em>,
<em class="parameter"><code><span class="type">guint64</span> size</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *singular</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *plural</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-register-entry-type" title="rhythmdb_register_entry_type ()">rhythmdb_register_entry_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>);
<a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="returnvalue">RhythmDBEntryType</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-type-get-by-name" title="rhythmdb_entry_type_get_by_name ()">rhythmdb_entry_type_get_by_name</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
<a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="RhythmDB.html#rhythmdb-get-property-type" title="rhythmdb_get_property_type ()">rhythmdb_get_property_type</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> property_id</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * <a class="link" href="RhythmDB.html#rhythmdb-entry-ref" title="rhythmdb_entry_ref ()">rhythmdb_entry_ref</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="RhythmDB.html#rhythmdb-entry-unref" title="rhythmdb_entry_unref ()">rhythmdb_entry_unref</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RhythmDB.html#rhythmdb-entry-is-lossless" title="rhythmdb_entry_is_lossless ()">rhythmdb_entry_is_lossless</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="RhythmDB.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----RhythmDB
</pre>
<pre class="synopsis">
GBoxed
+----RhythmDBEntry
</pre>
<pre class="synopsis">
GBoxed
+----RhythmDBQuery
</pre>
<pre class="synopsis">
GEnum
+----RhythmDBQueryType
</pre>
<pre class="synopsis">
GEnum
+----RhythmDBPropType
</pre>
</div>
<div class="refsect1">
<a name="RhythmDB.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="RhythmDB.html#RhythmDB--dry-run" title='The "dry-run" property'>dry-run</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
"<a class="link" href="RhythmDB.html#RhythmDB--name" title='The "name" property'>name</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="RhythmDB.html#RhythmDB--no-update" title='The "no-update" property'>no-update</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="RhythmDB.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="RhythmDB.html#RhythmDB-create-mount-op" title='The "create-mount-op" signal'>create-mount-op</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-added" title='The "entry-added" signal'>entry-added</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-changed" title='The "entry-changed" signal'>entry-changed</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-deleted" title='The "entry-deleted" signal'>entry-deleted</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-extra-metadata-gather" title='The "entry-extra-metadata-gather" signal'>entry-extra-metadata-gather</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-extra-metadata-notify" title='The "entry-extra-metadata-notify" signal'>entry-extra-metadata-notify</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-extra-metadata-request" title='The "entry-extra-metadata-request" signal'>entry-extra-metadata-request</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-keyword-added" title='The "entry-keyword-added" signal'>entry-keyword-added</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-entry-keyword-removed" title='The "entry-keyword-removed" signal'>entry-keyword-removed</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-load-complete" title='The "load-complete" signal'>load-complete</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-read-only" title='The "read-only" signal'>read-only</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-save-complete" title='The "save-complete" signal'>save-complete</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="RhythmDB.html#RhythmDB-save-error" title='The "save-error" signal'>save-error</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
</pre>
</div>
<div class="refsect1">
<a name="RhythmDB.description"></a><h2>Description</h2>
<p>
RhythmDB is an in-memory database containing <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> items. It
runs queries represented as <a href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a>s containing query criteria,
feeding the results into <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> implementations such as
<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>. From there, entries are grouped by particular property
values to form <a class="link" href="RhythmDBPropertyModel.html" title="RhythmDBPropertyModel"><span class="type">RhythmDBPropertyModel</span></a>s.
</p>
<p>
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> contains a fixed set of properties, defined by <a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a>,
</p>
</div>
<div class="refsect1">
<a name="RhythmDB.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="RhythmDB-struct"></a><h3>struct RhythmDB</h3>
<pre class="programlisting">struct RhythmDB;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBEntry-struct"></a><h3>RhythmDBEntry</h3>
<pre class="programlisting">typedef struct _RhythmDBEntry RhythmDBEntry;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQuery"></a><h3>RhythmDBQuery</h3>
<pre class="programlisting">typedef GPtrArray RhythmDBQuery;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryType-enum"></a><h3>enum RhythmDBQueryType</h3>
<pre class="programlisting">typedef enum {
RHYTHMDB_QUERY_END,
RHYTHMDB_QUERY_DISJUNCTION,
RHYTHMDB_QUERY_SUBQUERY,
/* general */
RHYTHMDB_QUERY_PROP_EQUALS,
RHYTHMDB_QUERY_PROP_NOT_EQUAL,
/* string */
RHYTHMDB_QUERY_PROP_LIKE,
RHYTHMDB_QUERY_PROP_NOT_LIKE,
RHYTHMDB_QUERY_PROP_PREFIX,
RHYTHMDB_QUERY_PROP_SUFFIX,
/* numerical */
RHYTHMDB_QUERY_PROP_GREATER,
RHYTHMDB_QUERY_PROP_LESS,
/* synthetic query types, translated into non-synthetic ones internally */
RHYTHMDB_QUERY_PROP_CURRENT_TIME_WITHIN,
RHYTHMDB_QUERY_PROP_CURRENT_TIME_NOT_WITHIN,
RHYTHMDB_QUERY_PROP_YEAR_EQUALS,
RHYTHMDB_QUERY_PROP_YEAR_NOT_EQUAL,
RHYTHMDB_QUERY_PROP_YEAR_GREATER,
RHYTHMDB_QUERY_PROP_YEAR_LESS,
} RhythmDBQueryType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBPropType-enum"></a><h3>enum RhythmDBPropType</h3>
<pre class="programlisting">typedef enum {
RHYTHMDB_PROP_TYPE = 0,
RHYTHMDB_PROP_ENTRY_ID,
RHYTHMDB_PROP_TITLE,
RHYTHMDB_PROP_GENRE,
RHYTHMDB_PROP_ARTIST,
RHYTHMDB_PROP_ALBUM,
RHYTHMDB_PROP_TRACK_NUMBER,
RHYTHMDB_PROP_DISC_NUMBER,
RHYTHMDB_PROP_DURATION,
RHYTHMDB_PROP_FILE_SIZE,
RHYTHMDB_PROP_LOCATION,
RHYTHMDB_PROP_MOUNTPOINT,
RHYTHMDB_PROP_MTIME,
RHYTHMDB_PROP_FIRST_SEEN,
RHYTHMDB_PROP_LAST_SEEN,
RHYTHMDB_PROP_RATING,
RHYTHMDB_PROP_PLAY_COUNT,
RHYTHMDB_PROP_LAST_PLAYED,
RHYTHMDB_PROP_BITRATE,
RHYTHMDB_PROP_DATE,
RHYTHMDB_PROP_TRACK_GAIN, /* obsolete */
RHYTHMDB_PROP_TRACK_PEAK, /* obsolete */
RHYTHMDB_PROP_ALBUM_GAIN, /* obsolete */
RHYTHMDB_PROP_ALBUM_PEAK, /* obsolete */
RHYTHMDB_PROP_MEDIA_TYPE,
RHYTHMDB_PROP_TITLE_SORT_KEY,
RHYTHMDB_PROP_GENRE_SORT_KEY,
RHYTHMDB_PROP_ARTIST_SORT_KEY,
RHYTHMDB_PROP_ALBUM_SORT_KEY,
RHYTHMDB_PROP_TITLE_FOLDED,
RHYTHMDB_PROP_GENRE_FOLDED,
RHYTHMDB_PROP_ARTIST_FOLDED,
RHYTHMDB_PROP_ALBUM_FOLDED,
RHYTHMDB_PROP_LAST_PLAYED_STR,
RHYTHMDB_PROP_HIDDEN,
RHYTHMDB_PROP_PLAYBACK_ERROR,
RHYTHMDB_PROP_FIRST_SEEN_STR,
RHYTHMDB_PROP_LAST_SEEN_STR,
/* synthetic properties */
RHYTHMDB_PROP_SEARCH_MATCH,
RHYTHMDB_PROP_YEAR,
RHYTHMDB_PROP_KEYWORD, /**/
/* Podcast properties */
RHYTHMDB_PROP_STATUS,
RHYTHMDB_PROP_DESCRIPTION,
RHYTHMDB_PROP_SUBTITLE,
RHYTHMDB_PROP_SUMMARY,
RHYTHMDB_PROP_LANG,
RHYTHMDB_PROP_COPYRIGHT,
RHYTHMDB_PROP_IMAGE,
RHYTHMDB_PROP_POST_TIME,
RHYTHMDB_PROP_MUSICBRAINZ_TRACKID,
RHYTHMDB_PROP_MUSICBRAINZ_ARTISTID,
RHYTHMDB_PROP_MUSICBRAINZ_ALBUMID,
RHYTHMDB_PROP_MUSICBRAINZ_ALBUMARTISTID,
RHYTHMDB_PROP_ARTIST_SORTNAME,
RHYTHMDB_PROP_ALBUM_SORTNAME,
RHYTHMDB_PROP_ARTIST_SORTNAME_SORT_KEY,
RHYTHMDB_PROP_ARTIST_SORTNAME_FOLDED,
RHYTHMDB_PROP_ALBUM_SORTNAME_SORT_KEY,
RHYTHMDB_PROP_ALBUM_SORTNAME_FOLDED,
RHYTHMDB_PROP_COMMENT,
RHYTHMDB_PROP_ALBUM_ARTIST,
RHYTHMDB_PROP_ALBUM_ARTIST_SORT_KEY,
RHYTHMDB_PROP_ALBUM_ARTIST_FOLDED,
RHYTHMDB_PROP_ALBUM_ARTIST_SORTNAME,
RHYTHMDB_PROP_ALBUM_ARTIST_SORTNAME_SORT_KEY,
RHYTHMDB_PROP_ALBUM_ARTIST_SORTNAME_FOLDED,
RHYTHMDB_PROP_BPM,
RHYTHMDB_NUM_PROPERTIES
} RhythmDBPropType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RHYTHMDB-PROP-STREAM-SONG-TITLE:CAPS"></a><h3>RHYTHMDB_PROP_STREAM_SONG_TITLE</h3>
<pre class="programlisting">#define RHYTHMDB_PROP_STREAM_SONG_TITLE "rb:stream-song-title"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RHYTHMDB-PROP-STREAM-SONG-ARTIST:CAPS"></a><h3>RHYTHMDB_PROP_STREAM_SONG_ARTIST</h3>
<pre class="programlisting">#define RHYTHMDB_PROP_STREAM_SONG_ARTIST "rb:stream-song-artist"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RHYTHMDB-PROP-STREAM-SONG-ALBUM:CAPS"></a><h3>RHYTHMDB_PROP_STREAM_SONG_ALBUM</h3>
<pre class="programlisting">#define RHYTHMDB_PROP_STREAM_SONG_ALBUM "rb:stream-song-album"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryData"></a><h3>RhythmDBQueryData</h3>
<pre class="programlisting">typedef struct {
guint type;
guint propid;
GValue *val;
RhythmDBQuery *subquery;
} RhythmDBQueryData;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBEntryChange"></a><h3>RhythmDBEntryChange</h3>
<pre class="programlisting">typedef struct {
RhythmDBPropType prop;
GValue old;
GValue new;
} RhythmDBEntryChange;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-string"></a><h3>rhythmdb_entry_get_string ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * rhythmdb_entry_get_string (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of a string property of <span class="type">entry</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value, must not be freed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-refstring"></a><h3>rhythmdb_entry_get_refstring ()</h3>
<pre class="programlisting"><span class="returnvalue">RBRefString</span> * rhythmdb_entry_get_refstring (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns an <span class="type">RBRefString</span> containing a string property of <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">RBRefString</span>, must be unreffed by caller.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-dup-string"></a><h3>rhythmdb_entry_dup_string ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * rhythmdb_entry_dup_string (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-boolean"></a><h3>rhythmdb_entry_get_boolean ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_entry_get_boolean (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of a boolean property of <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-uint64"></a><h3>rhythmdb_entry_get_uint64 ()</h3>
<pre class="programlisting"><span class="returnvalue">guint64</span> rhythmdb_entry_get_uint64 (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of a 64bit unsigned integer property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-ulong"></a><h3>rhythmdb_entry_get_ulong ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a> rhythmdb_entry_get_ulong (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of an unsigned long integer property of <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-double"></a><h3>rhythmdb_entry_get_double ()</h3>
<pre class="programlisting"><span class="returnvalue">double</span> rhythmdb_entry_get_double (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of a double-precision floating point property of <em class="parameter"><code>value</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-object"></a><h3>rhythmdb_entry_get_object ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> * rhythmdb_entry_get_object (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns the value of an object property of <em class="parameter"><code>entry</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the property to return</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-entry-type"></a><h3>rhythmdb_entry_get_entry_type ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="returnvalue">RhythmDBEntryType</span></a> * rhythmdb_entry_get_entry_type (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Returns the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> for <em class="parameter"><code>entry</code></em>. This is used to access
entry type properties, to check that entries are of the same type,
and to call entry type methods.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> for <em class="parameter"><code>entry</code></em>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBError"></a><h3>enum RhythmDBError</h3>
<pre class="programlisting">typedef enum {
RHYTHMDB_ERROR_ACCESS_FAILED,
} RhythmDBError;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-shutdown"></a><h3>rhythmdb_shutdown ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_shutdown (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Ceases all <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> operations, including stopping all directory monitoring, and
removing all actions and events currently queued.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-load"></a><h3>rhythmdb_load ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_load (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Load the database from disk.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-save"></a><h3>rhythmdb_save ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_save (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Save the database to disk, not returning until it has been saved.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-save-async"></a><h3>rhythmdb_save_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_save_async (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Save the database to disk, asynchronously.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-start-action-thread"></a><h3>rhythmdb_start_action_thread ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_start_action_thread (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Starts the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> processing thread. Needs to be called during startup.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-commit"></a><h3>rhythmdb_commit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_commit (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Apply all database changes, and send notification of changes and new entries.
This needs to be called after any changes have been made, such as a group of
<a class="link" href="RhythmDB.html#rhythmdb-entry-set" title="rhythmdb_entry_set ()"><code class="function">rhythmdb_entry_set()</code></a> calls, or a new entry has been added.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-new"></a><h3>rhythmdb_entry_new ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_new (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Creates a new entry of type <em class="parameter"><code>type</code></em> and location <em class="parameter"><code>uri</code></em>, and inserts
it into the database. You must call <a class="link" href="RhythmDB.html#rhythmdb-commit" title="rhythmdb_commit ()"><code class="function">rhythmdb_commit()</code></a> at some point
after invoking this function.
</p>
<p>
This may return NULL if entry creation fails. This can occur if there is
already an entry with the given uri.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>type of entry to create</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the location of the entry, this be unique amongst all entries.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly created <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-example-new"></a><h3>rhythmdb_entry_example_new ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_example_new (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Creates a new sample entry of type <em class="parameter"><code>type</code></em> and location <em class="parameter"><code>uri</code></em>, it does not insert
it into the database. This is indended for use as a example entry.
</p>
<p>
This may return NULL if entry creation fails.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>type of entry to create</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the location of the entry, this be unique amongst all entries.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly created <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-add-uri"></a><h3>rhythmdb_add_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_add_uri (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Adds the file(s) pointed to by <em class="parameter"><code>uri</code></em> to the database, as entries of type
RHYTHMDB_ENTRY_TYPE_SONG. If the URI is that of a file, it will be added.
If the URI is that of a directory, everything under it will be added recursively.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the URI to add an entry/entries for</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-add-uri-with-types"></a><h3>rhythmdb_add_uri_with_types ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_add_uri_with_types (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *ignore_type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *error_type</code></em>);</pre>
<p>
Adds the file(s) pointed to by <em class="parameter"><code>uri</code></em> to the database, as entries
of the specified type. If the URI points to a file, it will be added.
The the URI identifies a directory, everything under it will be added
recursively.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the URI to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> to use for new entries</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ignore_type</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> to use for ignored files</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_type</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> to use for import errors</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get"></a><h3>rhythmdb_entry_get ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_get (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *val</code></em>);</pre>
<p>
Gets a property of an entry, storing it in the given <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the id of the property to get.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
<td>return location for the property value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-set"></a><h3>rhythmdb_entry_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_set (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> propid</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
<p>
This function can be called by any code which wishes to change a
song property and send a notification. It may be called when the
database is read-only; in this case the change will be queued for
an unspecified time in the future. The implication of this is that
<a class="link" href="RhythmDB.html#rhythmdb-entry-get" title="rhythmdb_entry_get ()"><code class="function">rhythmdb_entry_get()</code></a> may not reflect the changes immediately. However,
if this property is exposed in the user interface, you should still
make the change in the widget. Then when the database returns to a
writable state, your change will take effect in the database too,
and a notification will be sent at that point.
</p>
<p>
Note that you must call <a class="link" href="RhythmDB.html#rhythmdb-commit" title="rhythmdb_commit ()"><code class="function">rhythmdb_commit()</code></a> at some point after invoking
this function, and that even after the commit, your change may not
have taken effect.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td># a RhythmDB.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>the id of the property to set.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>the property value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-get-type-data"></a><h3>rhythmdb_entry_get_type_data ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> rhythmdb_entry_get_type_data (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> expected_size</code></em>);</pre>
<p>
Retrieves a pointer to the entry's type-specific data, checking that
the size of the data structure matches what is expected.
Callers should use the RHYTHMDB_ENTRY_GET_TYPE_DATA macro for
a slightly more friendly interface to this functionality.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expected_size</code></em> :</span></p></td>
<td>expected size of the type-specific data.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>type-specific data pointer. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RHYTHMDB-ENTRY-GET-TYPE-DATA:CAPS"></a><h3>RHYTHMDB_ENTRY_GET_TYPE_DATA()</h3>
<pre class="programlisting">#define RHYTHMDB_ENTRY_GET_TYPE_DATA(e,t) ((t*)rhythmdb_entry_get_type_data((e),sizeof(t)))
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-delete"></a><h3>rhythmdb_entry_delete ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_delete (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Delete entry <em class="parameter"><code>entry</code></em> from the database, sending notification of its deletion.
This is usually used by sources where entries can disappear randomly, such
as a network source.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-delete-by-type"></a><h3>rhythmdb_entry_delete_by_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_delete_by_type (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *type</code></em>);</pre>
<p>
Delete all entries from the database of the given type.
This is usually used by non-permanent sources when they disappear, such as
removable media being removed, or a network share becoming unavailable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>type of entried to delete.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-move-to-trash"></a><h3>rhythmdb_entry_move_to_trash ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_move_to_trash (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Trashes the file represented by <span class="type">entry</span>. If possible, the file is
moved to the user's trash directory and the entry is set to hidden,
otherwise the error will be stored as the playback error for the entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to trash</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-lookup-by-location"></a><h3>rhythmdb_entry_lookup_by_location ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_lookup_by_location (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Looks up the entry with location <em class="parameter"><code>uri</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the URI of the entry to lookup.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the entry with location <em class="parameter"><code>uri</code></em>, or NULL if no such entry exists.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-lookup-by-id"></a><h3>rhythmdb_entry_lookup_by_id ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_lookup_by_id (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>);</pre>
<p>
Looks up the entry with id <em class="parameter"><code>id</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>entry ID</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the entry with id <em class="parameter"><code>id</code></em>, or NULL if no such entry exists.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-lookup-from-string"></a><h3>rhythmdb_entry_lookup_from_string ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_lookup_from_string (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_id</code></em>);</pre>
<p>
Locates an entry using a string containing either an entry ID
or a location.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
<td>string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_id</code></em> :</span></p></td>
<td>whether the string is an entry ID or a location.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the entry matching the string, or NULL if no such entry exists.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-evaluate-query"></a><h3>rhythmdb_evaluate_query ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_evaluate_query (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Evaluates the given entry against the given query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>a query.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <em class="parameter"><code>RhythmDBEntry</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the given entry matches the criteria of the given query.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-foreach"></a><h3>rhythmdb_entry_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_foreach (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> func</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<p>
Calls the given function for each of the entries in the database.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>the function to call with each entry. <span class="annotation">[<a href="http://foldoc.org/scope%20call"><span class="acronym">scope call</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to the function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-count"></a><h3>rhythmdb_entry_count ()</h3>
<pre class="programlisting"><span class="returnvalue">gint64</span> rhythmdb_entry_count (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Returns the number of entries in the database.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of entries</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-foreach-by-type"></a><h3>rhythmdb_entry_foreach_by_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_foreach_by_type (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> func</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<p>
Calls the given function for each of the entries in the database
of a given type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry_type</code></em> :</span></p></td>
<td>the type of entry to retrieve</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>the function to call with each entry. <span class="annotation">[<a href="http://foldoc.org/scope%20call"><span class="acronym">scope call</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to the function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-count-by-type"></a><h3>rhythmdb_entry_count_by_type ()</h3>
<pre class="programlisting"><span class="returnvalue">gint64</span> rhythmdb_entry_count_by_type (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>);</pre>
<p>
Returns the number of entries in the database of a particular type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry_type</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>entry count</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-keyword-add"></a><h3>rhythmdb_entry_keyword_add ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_entry_keyword_add (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);</pre>
<p>
Adds a keyword to an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyword</code></em> :</span></p></td>
<td>the keyword to add.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the keyword was already on the entry</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-keyword-remove"></a><h3>rhythmdb_entry_keyword_remove ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_entry_keyword_remove (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);</pre>
<p>
Removed a keyword from an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyword</code></em> :</span></p></td>
<td>the keyword to remove.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the keyword had previously been added to the entry.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-keyword-has"></a><h3>rhythmdb_entry_keyword_has ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_entry_keyword_has (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code><span class="type">RBRefString</span> *keyword</code></em>);</pre>
<p>
Checks whether a keyword is has been added to an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyword</code></em> :</span></p></td>
<td>the keyword to check for.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the keyword had been added to the entry.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-do-full-query"></a><h3>rhythmdb_do_full_query ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_do_full_query (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Synchronously evaluates <em class="parameter"><code>query</code></em>, feeding results to <em class="parameter"><code>results</code></em> in
chunks. Does not return until the query is complete.
This can only be called from the main thread.
</p>
<p>
FIXME: example
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> instance to feed results to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-do-full-query-parsed"></a><h3>rhythmdb_do_full_query_parsed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_do_full_query_parsed (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Synchronously evaluates the parsed query <em class="parameter"><code>query</code></em>, feeding results
to <em class="parameter"><code>results</code></em> in chunks. Does not return until the query is complete.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> instance to feed results to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>a parsed query</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-do-full-query-async"></a><h3>rhythmdb_do_full_query_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_do_full_query_async (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Asynchronously runs a query specified in the function arguments
across the database, feeding matching entries to <em class="parameter"><code>results</code></em> in chunks.
This can only be called from the main thread.
</p>
<p>
Since <em class="parameter"><code>results</code></em> is always a <em class="parameter"><code>RhythmDBQueryModel</code></em>,
use the RhythmDBQueryModel::complete signal to identify when the
query is complete.
</p>
<p>
FIXME: example
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> to feed results to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-do-full-query-async-parsed"></a><h3>rhythmdb_do_full_query_async_parsed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_do_full_query_async_parsed (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> *results</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Asynchronously runs a parsed query across the database, feeding matching
entries to <em class="parameter"><code>results</code></em> in chunks. This can only be called from the
main thread.
</p>
<p>
Since <em class="parameter"><code>results</code></em> is always a <em class="parameter"><code>RhythmDBQueryModel</code></em>,
use the RhythmDBQueryModel::complete signal to identify when the
query is complete.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults"><span class="type">RhythmDBQueryResults</span></a> instance to feed results to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the query to run</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-parse"></a><h3>rhythmdb_query_parse ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * rhythmdb_query_parse (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a query from a list of criteria.
</p>
<p>
Most criteria consists of an operator (<a class="link" href="RhythmDB.html#RhythmDBQueryType"><span class="type">RhythmDBQueryType</span></a>),
a property (<a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a>) and the data to compare with. An entry
matches a criteria if the operator returns true with the value of the
entries property as the first argument, and the given data as the second
argument.
</p>
<p>
Three types criteria are special. Passing RHYTHMDB_QUERY_END indicates the
end of the list of criteria, and must be the last passes parameter.
</p>
<p>
The second special criteria is a subquery which is defined by passing
RHYTHMDB_QUERY_SUBQUERY, followed by a query (<a href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a>). An entry will
match a subquery criteria if it matches all criteria in the subquery.
</p>
<p>
The third special criteria is a disjunction which is defined by passing
RHYTHMDB_QUERY_DISJUNCTION, which will make an entry match the query if
it matches the criteria before the disjunction, the criteria after the
disjunction, or both.
</p>
<p>
Example:
rhythmdb_query_parse (db,
RHYTHMDB_QUERY_SUBQUERY, subquery,
RHYTHMDB_QUERY_DISJUNCTION
RHYTHMDB_QUERY_PROP_LIKE, RHYTHMDB_PROP_TITLE, "cat",
RHYTHMDB_QUERY_DISJUNCTION
RHYTHMDB_QUERY_PROP_GREATER, RHYTHMDB_PROP_RATING, 2.5,
RHYTHMDB_QUERY_PROP_LESS, RHYTHMDB_PROP_PLAY_COUNT, 10,
RHYTHMDB_QUERY_END);
</p>
<p>
will create a query that matches entries:
a) that match the query "subquery", or
b) that have "cat" in their title, or
c) have a rating of at least 2.5, and a play count of at most 10
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> instance</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a the newly created query.
It must be freed with <a class="link" href="RhythmDB.html#rhythmdb-query-free" title="rhythmdb_query_free ()"><code class="function">rhythmdb_query_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-append"></a><h3>rhythmdb_query_append ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_append (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Appends new criteria to the query <em class="parameter"><code>query</code></em>.
</p>
<p>
The list of criteria must be in the same format as for rhythmdb_query_parse,
and ended by RHYTHMDB_QUERY_END.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> instance</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>a query.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-append-params"></a><h3>rhythmdb_query_append_params ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_append_params (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQueryType"><span class="type">RhythmDBQueryType</span></a> type</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> prop</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
<p>
Appends a new query term to <em class="parameter"><code>query</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the query to append to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>query type</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prop</code></em> :</span></p></td>
<td>query property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>query value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-append-prop-multiple"></a><h3>rhythmdb_query_append_prop_multiple ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_append_prop_multiple (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *items</code></em>);</pre>
<p>
Appends a set of criteria to a query to match against any of the values
listed in <em class="parameter"><code>items</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the query to append to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>property ID to match</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>items</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of values to match against. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GObject.Value]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-concatenate"></a><h3>rhythmdb_query_concatenate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_concatenate (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query1</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query2</code></em>);</pre>
<p>
Appends <em class="parameter"><code>query2</code></em> to <em class="parameter"><code>query1</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>query1</code></em> :</span></p></td>
<td>query to append to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query2</code></em> :</span></p></td>
<td>query to append</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-free"></a><h3>rhythmdb_query_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_free (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Frees the query <em class="parameter"><code>query</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>a query.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-copy"></a><h3>rhythmdb_query_copy ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * rhythmdb_query_copy (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *array</code></em>);</pre>
<p>
Creates a copy of a query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>array</code></em> :</span></p></td>
<td>the query to copy.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a copy of the passed query.
It must be freed with <a class="link" href="RhythmDB.html#rhythmdb-query-free" title="rhythmdb_query_free ()"><code class="function">rhythmdb_query_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-preprocess"></a><h3>rhythmdb_query_preprocess ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_preprocess (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Preprocesses a query to prepare it for execution. This has two main
roles: to perform expensive data transformations once per query, rather
than once per entry, and converting criteria to lower-level forms that
are implemented by the database backend.
</p>
<p>
For RHYTHMDB_PROP_SEARCH_MATCH, this converts the search terms into
an array of case-folded words.
</p>
<p>
When matching against case-folded properties such as
<span class="type">RHYTHMDB_PROP_TITLE_FOLDED</span>, this case-folds the query value.
</p>
<p>
When performing year-based criteria such as <span class="type">RHYTHMDB_QUERY_PROP_YEAR_LESS</span>,
it converts the year into the Julian date such that a simple numeric
comparison will work.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>query to preprocess</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-serialize"></a><h3>rhythmdb_query_serialize ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_query_serialize (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>,
<em class="parameter"><code><span class="type">xmlNodePtr</span> parent</code></em>);</pre>
<p>
Converts <em class="parameter"><code>query</code></em> into XML form as a child of <em class="parameter"><code>parent</code></em>. It can be converted
back into a query by passing <em class="parameter"><code>parent</code></em> to <em class="parameter"><code>rhythmdb_query_deserialize</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>query to serialize</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>XML node to attach the query to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-deserialize"></a><h3>rhythmdb_query_deserialize ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="returnvalue">RhythmDBQuery</span></a> * rhythmdb_query_deserialize (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><span class="type">xmlNodePtr</span> parent</code></em>);</pre>
<p>
Converts a serialized query back into a <em class="parameter"><code>GPtrArray</code></em> query.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>parent XML node of serialized query</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>deserialized query. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-to-string"></a><h3>rhythmdb_query_to_string ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * rhythmdb_query_to_string (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Returns a supposedly human-readable form of the query.
This is only intended for debug usage.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> instance</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>a query.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>allocated string form of the query</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-is-time-relative"></a><h3>rhythmdb_query_is_time_relative ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_query_is_time_relative (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBQuery"><span class="type">RhythmDBQuery</span></a> *query</code></em>);</pre>
<p>
Checks if a query contains any time-relative criteria.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the query to check</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if time-relative criteria found</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-nice-elt-name-from-propid"></a><h3>rhythmdb_nice_elt_name_from_propid ()</h3>
<pre class="programlisting">const <span class="returnvalue">xmlChar</span> * rhythmdb_nice_elt_name_from_propid (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> propid</code></em>);</pre>
<p>
Returns a short non-translated name for the property <span class="type">propid</span>.
This name is suitable for use as an XML tag name, for example.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>propid</code></em> :</span></p></td>
<td>property ID</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property ID name, must not be freed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-propid-from-nice-elt-name"></a><h3>rhythmdb_propid_from_nice_elt_name ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rhythmdb_propid_from_nice_elt_name (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">xmlChar</span> *name</code></em>);</pre>
<p>
Converts a property name returned by <em class="parameter"><code>rhythmdb_propid_from_nice_elt_name</code></em>
back to a <a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a>. If the name does not match a property ID,
-1 will be returned instead.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>a property ID name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a>, or -1</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-request-extra-metadata"></a><h3>rhythmdb_entry_request_extra_metadata ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> * rhythmdb_entry_request_extra_metadata
(<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>);</pre>
<p>
Emits a request for extra metadata for the <em class="parameter"><code>entry</code></em>.
The <em class="parameter"><code>property_name</code></em> argument is emitted as the ::detail part of the
"entry_extra_metadata_request" signal. It should be a namespaced RDF
predicate e.g. from Dublin Core, MusicBrainz, or internal to Rhythmbox
(namespace "rb:"). Suitable predicates would be those that are expensive to
acquire or only apply to a limited range of entries.
Handlers capable of providing a particular predicate may ensure they only
see appropriate requests by supplying an appropriate ::detail part when
connecting to the signal. Upon a handler returning a non-<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value,
emission will be stopped and the value returned to the caller; if no
handlers return a non-<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value, the caller will receive <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Priority
is determined by signal connection order, with <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-CONNECT-AFTER:CAPS"><code class="literal">G_CONNECT_AFTER</code></a> providing a
second, lower rank of priority.
A handler returning a value should do so in a <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> allocated on the heap;
the accumulator will take ownership. The caller should unset and free the
<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> if non-<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when finished with it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td>the metadata predicate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an allocated, initialised, set <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>, or NULL</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-gather-metadata"></a><h3>rhythmdb_entry_gather_metadata ()</h3>
<pre class="programlisting"><a class="link" href="RBStringValueMap.html" title="RBStringValueMap"><span class="returnvalue">RBStringValueMap</span></a> * rhythmdb_entry_gather_metadata (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Gathers all metadata for the <em class="parameter"><code>entry</code></em>. The returned GHashTable maps property
names and extra metadata names (described under
<em class="parameter"><code>rhythmdb_entry_request_extra_metadata</code></em>) to GValues. Anything wanting to
provide extra metadata should connect to the "entry_extra_metadata_gather"
signal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a RBStringValueMap containing metadata for the entry.
This must be freed using g_object_unref. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-emit-entry-extra-metadata-notify"></a><h3>rhythmdb_emit_entry_extra_metadata_notify ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_emit_entry_extra_metadata_notify
(<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *metadata</code></em>);</pre>
<p>
Emits a signal describing extra metadata for the <em class="parameter"><code>entry</code></em>. The <em class="parameter"><code>property_name</code></em>
argument is emitted as the ::detail part of the
"entry_extra_metadata_notify" signal and as the 'field' parameter. Handlers
can ensure they only get metadata they are interested in by supplying an
appropriate ::detail part when connecting to the signal. If handlers are
interested in the metadata they should ref or copy the contents of <em class="parameter"><code>metadata</code></em>
and unref or free it when they are finished with it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td>the metadata predicate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>metadata</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-is-busy"></a><h3>rhythmdb_is_busy ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_is_busy (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Checks if the database has events to process. This probably isn't
very useful.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> has events to process.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-compute-status-normal"></a><h3>rhythmdb_compute_status_normal ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * rhythmdb_compute_status_normal (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_songs</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#glong"><span class="type">glong</span></a> duration</code></em>,
<em class="parameter"><code><span class="type">guint64</span> size</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *singular</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *plural</code></em>);</pre>
<p>
Creates a string containing the "status" information about a list of tracks.
The singular and plural strings must be used in a direct ngettext call
elsewhere in order for them to be marked for translation correctly.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_songs</code></em> :</span></p></td>
<td>the number of tracks.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>duration</code></em> :</span></p></td>
<td>the total duration of the tracks.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the total size of the tracks.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>singular</code></em> :</span></p></td>
<td>singular form of the format string to use for entries (eg "<code class="literal">d</code> song")</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>plural</code></em> :</span></p></td>
<td>plural form of the format string to use for entries (eg "<code class="literal">d</code> songs")</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the string, which should be freed with g_free.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-register-entry-type"></a><h3>rhythmdb_register_entry_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_register_entry_type (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> *entry_type</code></em>);</pre>
<p>
Registers a new entry type. An entry type must be registered before
any entries can be created for it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry_type</code></em> :</span></p></td>
<td>the new entry type to register</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-type-get-by-name"></a><h3>rhythmdb_entry_type_get_by_name ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="returnvalue">RhythmDBEntryType</span></a> * rhythmdb_entry_type_get_by_name (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>
Locates a <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a> by name. Returns NULL if no entry
type is registered with the specified name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>name of the type to look for</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="RhythmDBEntryType.html" title="RhythmDBEntryType"><span class="type">RhythmDBEntryType</span></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-get-property-type"></a><h3>rhythmdb_get_property_type ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> rhythmdb_get_property_type (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> property_id</code></em>);</pre>
<p>
Returns the <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for the value of the property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_id</code></em> :</span></p></td>
<td>a property ID (<a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a>)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>property value type</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-ref"></a><h3>rhythmdb_entry_ref ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> * rhythmdb_entry_ref (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Increase the reference count of the entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the entry</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-unref"></a><h3>rhythmdb_entry_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rhythmdb_entry_unref (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Decrease the reference count of the entry, and destroys it if there are
no references left.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-entry-is-lossless"></a><h3>rhythmdb_entry_is_lossless ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rhythmdb_entry_is_lossless (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Checks if <em class="parameter"><code>entry</code></em> represents a file that is losslessly encoded.
An entry is considered lossless if it has no bitrate value and
its media type is "audio/x-flac". Other lossless encoding types
may be added in the future.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>entry</code></em> is lossless</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="RhythmDB.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="RhythmDB--dry-run"></a><h3>The <code class="literal">"dry-run"</code> property</h3>
<pre class="programlisting"> "dry-run" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>
If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, no metadata changes will be written back to media fies.
</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB--name"></a><h3>The <code class="literal">"name"</code> property</h3>
<pre class="programlisting"> "name" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>
Database name. Not sure whta this is used for.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB--no-update"></a><h3>The <code class="literal">"no-update"</code> property</h3>
<pre class="programlisting"> "no-update" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>
If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the database will not be updated.
</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="RhythmDB.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="RhythmDB-create-mount-op"></a><h3>The <code class="literal">"create-mount-op"</code> signal</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gio/GMountOperation.html"><span class="returnvalue">GMountOperation</span></a>* user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted to request creation of a <a href="/usr/share/gtk-doc/html/gio/GMountOperation.html"><span class="type">GMountOperation</span></a> to use to mount a volume.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GMountOperation.html"><span class="type">GMountOperation</span></a> (usually actually a <a href="/usr/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html#GtkMountOperation"><span class="type">GtkMountOperation</span></a>). <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-added"></a><h3>The <code class="literal">"entry-added"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a new entry is added to the database.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the newly added <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-changed"></a><h3>The <code class="literal">"entry-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"><span class="type">GValueArray</span></a> *changes,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a database entry is modified. The <em class="parameter"><code>changes</code></em> list
contains a structure for each entry property that has been modified.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the changed <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>changes</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"><span class="type">GValueArray</span></a> of <a class="link" href="RhythmDB.html#RhythmDBEntryChange" title="RhythmDBEntryChange"><span class="type">RhythmDBEntryChange</span></a> structures describing the changes</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-deleted"></a><h3>The <code class="literal">"entry-deleted"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when an entry is deleted from the database.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the deleted <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-extra-metadata-gather"></a><h3>The <code class="literal">"entry-extra-metadata-gather"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a class="link" href="RBStringValueMap.html" title="RBStringValueMap"><span class="type">RBStringValueMap</span></a> *data,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted to gather all available extra metadata for a database entry.
Handlers for this signal should insert any metadata they can provide
into the string-value map. Only immediately available metadata
items should be returned. If one or more metadata items is not
immediately available, the handler should not initiate an attempt to
retrieve them.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> for which to gather metadata</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>a <a class="link" href="RBStringValueMap.html" title="RBStringValueMap"><span class="type">RBStringValueMap</span></a> to hold the gathered metadata</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-extra-metadata-notify"></a><h3>The <code class="literal">"entry-extra-metadata-notify"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *field,
<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *metadata,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a></pre>
<p>
This signal is emitted when an extra metadata value is provided for a specific
entry independantly of an extra metadata request.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> for which extra metadata has been supplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td>
<td>the extra metadata field being supplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>metadata</code></em> :</span></p></td>
<td>the extra metadata value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-extra-metadata-request"></a><h3>The <code class="literal">"entry-extra-metadata-request"</code> signal</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a>* user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a></pre>
<p>
This signal is emitted to allow extra (transient) metadata to be supplied
for the given entry. The detail of the signal invocation describes the
specific metadata value being requested. If the object handling the signal
can provide the requested item, but it isn't immediately available, it can
initiate an attempt to retrieve it. If successful, it would call
<em class="parameter"><code>rhythmdb_emit_entry_extra_metadata_notify</code></em> when the metadata is available.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> for which extra metadata is being requested</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the extra metadata value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-keyword-added"></a><h3>The <code class="literal">"entry-keyword-added"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<span class="type">RBRefString</span> *keyword,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a keyword is added to an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to which a keyword has been added</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyword</code></em> :</span></p></td>
<td>the keyword that was added</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-entry-keyword-removed"></a><h3>The <code class="literal">"entry-keyword-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
<span class="type">RBRefString</span> *keyword,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a keyword is removed from an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> from which a keyword has been removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyword</code></em> :</span></p></td>
<td>the keyword that was removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-load-complete"></a><h3>The <code class="literal">"load-complete"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the database is fully loaded.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-read-only"></a><h3>The <code class="literal">"read-only"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> readonly,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the database becomes temporarily read-only, or becomes
writeable after being read-only.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>readonly</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the database is read-only</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-save-complete"></a><h3>The <code class="literal">"save-complete"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the database has been saved.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDB-save-error"></a><h3>The <code class="literal">"save-error"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> error,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when an error occurs while saving the database.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>URI of the database file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>the error that occurred</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|