/usr/share/gtk-doc/html/totem-pl-parser/totem-pl-parser-TotemPlParser.html is in libtotem-plparser-dev 3.26.0-1ubuntu2.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TotemPlParser: Totem Playlist Parser Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Totem Playlist Parser Reference Manual">
<link rel="up" href="api-reference.html" title="API Reference">
<link rel="prev" href="api-reference.html" title="API Reference">
<link rel="next" href="totem-pl-parser-TotemPlPlaylist.html" title="TotemPlPlaylist">
<meta name="generator" content="GTK-Doc V1.25 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#totem-pl-parser-TotemPlParser.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="api-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="api-reference.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="totem-pl-parser-TotemPlPlaylist.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="totem-pl-parser-TotemPlParser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="totem-pl-parser-TotemPlParser.top_of_page"></a>TotemPlParser</span></h2>
<p>TotemPlParser — playlist parser</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.stability-level"></a><h2>Stability Level</h2>
<acronym title="The intention of a Stable interface is to enable arbitrary third parties to
develop applications to these interfaces, release them, and have confidence that
they will run on all minor releases of the product (after the one in which the
interface was introduced, and within the same major release). Even at a major
release, incompatible changes are expected to be rare, and to have strong
justifications.
"><span class="acronym">Stable</span></acronym>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="returnvalue">TotemPlParser</span></a> *
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-new" title="totem_pl_parser_new ()">totem_pl_parser_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse" title="totem_pl_parser_parse ()">totem_pl_parser_parse</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-async" title="totem_pl_parser_parse_async ()">totem_pl_parser_parse_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-finish" title="totem_pl_parser_parse_finish ()">totem_pl_parser_parse_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-with-base" title="totem_pl_parser_parse_with_base ()">totem_pl_parser_parse_with_base</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-with-base-async" title="totem_pl_parser_parse_with_base_async ()">totem_pl_parser_parse_with_base_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-save" title="totem_pl_parser_save ()">totem_pl_parser_save</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-duration" title="totem_pl_parser_parse_duration ()">totem_pl_parser_parse_duration</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-date" title="totem_pl_parser_parse_date ()">totem_pl_parser_parse_date</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-add-ignored-scheme" title="totem_pl_parser_add_ignored_scheme ()">totem_pl_parser_add_ignored_scheme</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-add-ignored-mimetype" title="totem_pl_parser_add_ignored_mimetype ()">totem_pl_parser_add_ignored_mimetype</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-can-parse-from-data" title="totem_pl_parser_can_parse_from_data ()">totem_pl_parser_can_parse_from_data</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-can-parse-from-filename" title="totem_pl_parser_can_parse_from_filename ()">totem_pl_parser_can_parse_from_filename</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-can-parse-from-uri" title="totem_pl_parser_can_parse_from_uri ()">totem_pl_parser_can_parse_from_uri</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser">TotemPlParser</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserClass" title="TotemPlParserClass">TotemPlParserClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult">TotemPlParserResult</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserType" title="enum TotemPlParserType">TotemPlParserType</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserError" title="enum TotemPlParserError">TotemPlParserError</a></td>
</tr>
<tr>
<td class="typedef_keyword">typedef</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserMetadata" title="TotemPlParserMetadata">TotemPlParserMetadata</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-URI:CAPS" title="TOTEM_PL_PARSER_FIELD_URI">TOTEM_PL_PARSER_FIELD_URI</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-GENRE:CAPS" title="TOTEM_PL_PARSER_FIELD_GENRE">TOTEM_PL_PARSER_FIELD_GENRE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-TITLE:CAPS" title="TOTEM_PL_PARSER_FIELD_TITLE">TOTEM_PL_PARSER_FIELD_TITLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-AUTHOR:CAPS" title="TOTEM_PL_PARSER_FIELD_AUTHOR">TOTEM_PL_PARSER_FIELD_AUTHOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-ALBUM:CAPS" title="TOTEM_PL_PARSER_FIELD_ALBUM">TOTEM_PL_PARSER_FIELD_ALBUM</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-BASE:CAPS" title="TOTEM_PL_PARSER_FIELD_BASE">TOTEM_PL_PARSER_FIELD_BASE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-VOLUME:CAPS" title="TOTEM_PL_PARSER_FIELD_VOLUME">TOTEM_PL_PARSER_FIELD_VOLUME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-AUTOPLAY:CAPS" title="TOTEM_PL_PARSER_FIELD_AUTOPLAY">TOTEM_PL_PARSER_FIELD_AUTOPLAY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DURATION:CAPS" title="TOTEM_PL_PARSER_FIELD_DURATION">TOTEM_PL_PARSER_FIELD_DURATION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DURATION-MS:CAPS" title="TOTEM_PL_PARSER_FIELD_DURATION_MS">TOTEM_PL_PARSER_FIELD_DURATION_MS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-STARTTIME:CAPS" title="TOTEM_PL_PARSER_FIELD_STARTTIME">TOTEM_PL_PARSER_FIELD_STARTTIME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-ENDTIME:CAPS" title="TOTEM_PL_PARSER_FIELD_ENDTIME">TOTEM_PL_PARSER_FIELD_ENDTIME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-COPYRIGHT:CAPS" title="TOTEM_PL_PARSER_FIELD_COPYRIGHT">TOTEM_PL_PARSER_FIELD_COPYRIGHT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-ABSTRACT:CAPS" title="TOTEM_PL_PARSER_FIELD_ABSTRACT">TOTEM_PL_PARSER_FIELD_ABSTRACT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DESCRIPTION:CAPS" title="TOTEM_PL_PARSER_FIELD_DESCRIPTION">TOTEM_PL_PARSER_FIELD_DESCRIPTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-SUMMARY:CAPS" title="TOTEM_PL_PARSER_FIELD_SUMMARY">TOTEM_PL_PARSER_FIELD_SUMMARY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-MOREINFO:CAPS" title="TOTEM_PL_PARSER_FIELD_MOREINFO">TOTEM_PL_PARSER_FIELD_MOREINFO</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-SCREENSIZE:CAPS" title="TOTEM_PL_PARSER_FIELD_SCREENSIZE">TOTEM_PL_PARSER_FIELD_SCREENSIZE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-UI-MODE:CAPS" title="TOTEM_PL_PARSER_FIELD_UI_MODE">TOTEM_PL_PARSER_FIELD_UI_MODE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-PUB-DATE:CAPS" title="TOTEM_PL_PARSER_FIELD_PUB_DATE">TOTEM_PL_PARSER_FIELD_PUB_DATE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-FILESIZE:CAPS" title="TOTEM_PL_PARSER_FIELD_FILESIZE">TOTEM_PL_PARSER_FIELD_FILESIZE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-LANGUAGE:CAPS" title="TOTEM_PL_PARSER_FIELD_LANGUAGE">TOTEM_PL_PARSER_FIELD_LANGUAGE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-CONTACT:CAPS" title="TOTEM_PL_PARSER_FIELD_CONTACT">TOTEM_PL_PARSER_FIELD_CONTACT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-IMAGE-URI:CAPS" title="TOTEM_PL_PARSER_FIELD_IMAGE_URI">TOTEM_PL_PARSER_FIELD_IMAGE_URI</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DOWNLOAD-URI:CAPS" title="TOTEM_PL_PARSER_FIELD_DOWNLOAD_URI">TOTEM_PL_PARSER_FIELD_DOWNLOAD_URI</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-ID:CAPS" title="TOTEM_PL_PARSER_FIELD_ID">TOTEM_PL_PARSER_FIELD_ID</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-IS-PLAYLIST:CAPS" title="TOTEM_PL_PARSER_FIELD_IS_PLAYLIST">TOTEM_PL_PARSER_FIELD_IS_PLAYLIST</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-SUBTITLE-URI:CAPS" title="TOTEM_PL_PARSER_FIELD_SUBTITLE_URI">TOTEM_PL_PARSER_FIELD_SUBTITLE_URI</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-CONTENT-TYPE:CAPS" title="TOTEM_PL_PARSER_FIELD_CONTENT_TYPE">TOTEM_PL_PARSER_FIELD_CONTENT_TYPE</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <totem-pl-parser.h>
</pre>
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.description"></a><h2>Description</h2>
<p><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> is a general-purpose playlist parser and writer, with
support for several different types of playlist. Note that totem-pl-parser requires a main loop
to operate properly (e.g. for the <span class="type">“entry-parsed”</span> signal to be emitted).</p>
<div class="example">
<a name="id-1.2.2.7.3"></a><p class="title"><b>Example 1. Reading a Playlist</b></p>
<div class="example-contents">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9</pre></td>
<td class="listing_code"><pre class="programlisting">TotemPlParser <span class="gtkdoc opt">*</span>pl <span class="gtkdoc opt">=</span> <span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-new">totem_pl_parser_new</a></span> <span class="gtkdoc opt">();</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-set">g_object_set</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">,</span> <span class="string">"recurse"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span> <span class="string">"disable-unsafe"</span><span class="gtkdoc opt">,</span> TRUE<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span> <span class="gtkdoc opt">(</span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">),</span> <span class="string">"playlist-started"</span><span class="gtkdoc opt">,</span> <span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span> <span class="gtkdoc opt">(</span>playlist_started<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span> <span class="gtkdoc opt">(</span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">),</span> <span class="string">"entry-parsed"</span><span class="gtkdoc opt">,</span> <span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span> <span class="gtkdoc opt">(</span>entry_parsed<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="keyword">if</span> <span class="gtkdoc opt">(</span><span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse">totem_pl_parser_parse</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">,</span> <span class="string">"http://example.com/playlist.pls"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">) !=</span> TOTEM_PL_PARSER_RESULT_SUCCESS<span class="gtkdoc opt">)</span>
<span class="function"><a href="../glib/glib-Message-Logging.html#g-error">g_error</a></span> <span class="gtkdoc opt">(</span><span class="string">"Playlist parsing failed."</span><span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="example-break"><div class="example">
<a name="id-1.2.2.7.4"></a><p class="title"><b>Example 2. Reading a Playlist Asynchronously</b></p>
<div class="example-contents">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17</pre></td>
<td class="listing_code"><pre class="programlisting">TotemPlParser <span class="gtkdoc opt">*</span>pl <span class="gtkdoc opt">=</span> <span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-new">totem_pl_parser_new</a></span> <span class="gtkdoc opt">();</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-set">g_object_set</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">,</span> <span class="string">"recurse"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span> <span class="string">"disable-unsafe"</span><span class="gtkdoc opt">,</span> TRUE<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span> <span class="gtkdoc opt">(</span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">),</span> <span class="string">"playlist-started"</span><span class="gtkdoc opt">,</span> <span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span> <span class="gtkdoc opt">(</span>playlist_started<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span> <span class="gtkdoc opt">(</span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">),</span> <span class="string">"entry-parsed"</span><span class="gtkdoc opt">,</span> <span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span> <span class="gtkdoc opt">(</span>entry_parsed<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-async">totem_pl_parser_parse_async</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">,</span> <span class="string">"http://example.com/playlist.pls"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">,</span> parse_cb<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">);</span>
<span class="gtkdoc kwb">static void</span>
<span class="function">parse_cb</span> <span class="gtkdoc opt">(</span>TotemPlParser <span class="gtkdoc opt">*</span>parser<span class="gtkdoc opt">,</span> GAsyncResult <span class="gtkdoc opt">*</span>result<span class="gtkdoc opt">,</span> gpointer user_data<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
GError <span class="gtkdoc opt">*</span>error <span class="gtkdoc opt">=</span> NULL<span class="gtkdoc opt">;</span>
<span class="keyword">if</span> <span class="gtkdoc opt">(</span><span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-finish">totem_pl_parser_parse_finish</a></span> <span class="gtkdoc opt">(</span>parser<span class="gtkdoc opt">,</span> result<span class="gtkdoc opt">, &</span>error<span class="gtkdoc opt">) !=</span> TOTEM_PL_PARSER_RESULT_SUCCESS<span class="gtkdoc opt">) {</span>
<span class="function"><a href="../glib/glib-Message-Logging.html#g-error">g_error</a></span> <span class="gtkdoc opt">(</span><span class="string">"Playlist parsing failed: %s"</span><span class="gtkdoc opt">,</span> error<span class="gtkdoc opt">-></span>message<span class="gtkdoc opt">);</span>
<span class="function"><a href="../glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span> <span class="gtkdoc opt">(</span>error<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
<span class="gtkdoc opt">}</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="example-break"><div class="example">
<a name="id-1.2.2.7.5"></a><p class="title"><b>Example 3. Getting Metadata from Entries</b></p>
<div class="example-contents">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static void</span>
<span class="function">entry_parsed</span> <span class="gtkdoc opt">(</span>TotemPlParser <span class="gtkdoc opt">*</span>parser<span class="gtkdoc opt">,</span> <span class="gtkdoc kwb">const</span> gchar <span class="gtkdoc opt">*</span>uri<span class="gtkdoc opt">,</span> GHashTable <span class="gtkdoc opt">*</span>metadata<span class="gtkdoc opt">,</span> gpointer user_data<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
gchar <span class="gtkdoc opt">*</span>title <span class="gtkdoc opt">=</span> <span class="function"><a href="../glib/glib-Hash-Tables.html#g-hash-table-lookup">g_hash_table_lookup</a></span> <span class="gtkdoc opt">(</span>metadata<span class="gtkdoc opt">,</span> TOTEM_PL_PARSER_FIELD_TITLE<span class="gtkdoc opt">);</span>
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>title <span class="gtkdoc opt">!=</span> NULL<span class="gtkdoc opt">)</span>
<span class="function"><a href="../glib/glib-Message-Logging.html#g-message">g_message</a></span> <span class="gtkdoc opt">(</span><span class="string">"Entry title: %s"</span><span class="gtkdoc opt">,</span> title<span class="gtkdoc opt">);</span>
<span class="keyword">else</span>
<span class="function"><a href="../glib/glib-Message-Logging.html#g-message">g_message</a></span> <span class="gtkdoc opt">(</span><span class="string">"Entry (URI: %s) has no title."</span><span class="gtkdoc opt">,</span> uri<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="example-break"><div class="example">
<a name="id-1.2.2.7.6"></a><p class="title"><b>Example 4. Writing a Playlist</b></p>
<div class="example-contents">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>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</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc opt">{</span>
TotemPlParser <span class="gtkdoc opt">*</span>pl<span class="gtkdoc opt">;</span>
TotemPlPlaylist <span class="gtkdoc opt">*</span>playlist<span class="gtkdoc opt">;</span>
TotemPlPlaylistIter iter<span class="gtkdoc opt">;</span>
GFile <span class="gtkdoc opt">*</span>file<span class="gtkdoc opt">;</span>
pl <span class="gtkdoc opt">=</span> <span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-new">totem_pl_parser_new</a></span> <span class="gtkdoc opt">();</span>
playlist <span class="gtkdoc opt">=</span> <span class="function"><a href="totem-pl-parser-TotemPlPlaylist.html#totem-pl-playlist-new">totem_pl_playlist_new</a></span> <span class="gtkdoc opt">();</span>
file <span class="gtkdoc opt">=</span> <span class="function"><a href="../gio/GFile.html#g-file-new-for-path">g_file_new_for_path</a></span> <span class="gtkdoc opt">(</span><span class="string">"/tmp/playlist.pls"</span><span class="gtkdoc opt">);</span>
<span class="function"><a href="totem-pl-parser-TotemPlPlaylist.html#totem-pl-playlist-append">totem_pl_playlist_append</a></span> <span class="gtkdoc opt">(</span>playlist<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">);</span>
<span class="function"><a href="totem-pl-parser-TotemPlPlaylist.html#totem-pl-playlist-set">totem_pl_playlist_set</a></span> <span class="gtkdoc opt">(</span>playlist<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">,</span>
TOTEM_PL_PARSER_FIELD_URI<span class="gtkdoc opt">,</span> <span class="string">"file:///1.ogg"</span><span class="gtkdoc opt">,</span>
TOTEM_PL_PARSER_FIELD_TITLE<span class="gtkdoc opt">,</span> <span class="string">"1.ogg"</span><span class="gtkdoc opt">,</span>
NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="totem-pl-parser-TotemPlPlaylist.html#totem-pl-playlist-append">totem_pl_playlist_append</a></span> <span class="gtkdoc opt">(</span>playlist<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">);</span>
<span class="function"><a href="totem-pl-parser-TotemPlPlaylist.html#totem-pl-playlist-set">totem_pl_playlist_set</a></span> <span class="gtkdoc opt">(</span>playlist<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">,</span>
TOTEM_PL_PARSER_FIELD_URI<span class="gtkdoc opt">,</span> <span class="string">"file:///2.ogg"</span><span class="gtkdoc opt">,</span>
NULL<span class="gtkdoc opt">);</span>
<span class="keyword">if</span> <span class="gtkdoc opt">(</span><span class="function"><a href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-save">totem_pl_parser_save</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">,</span> playlist<span class="gtkdoc opt">,</span> file<span class="gtkdoc opt">,</span> <span class="string">"Title"</span><span class="gtkdoc opt">,</span>
TOTEM_PL_PARSER_PLS<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">) !=</span> TRUE<span class="gtkdoc opt">) {</span>
<span class="function"><a href="../glib/glib-Message-Logging.html#g-error">g_error</a></span> <span class="gtkdoc opt">(</span><span class="string">"Playlist writing failed."</span><span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>playlist<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>pl<span class="gtkdoc opt">);</span>
<span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>file<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="example-break">
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="totem-pl-parser-new"></a><h3>totem_pl_parser_new ()</h3>
<pre class="programlisting"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="returnvalue">TotemPlParser</span></a> *
totem_pl_parser_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> object.</p>
<div class="refsect3">
<a name="totem-pl-parser-new.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse"></a><h3>totem_pl_parser_parse ()</h3>
<pre class="programlisting"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
totem_pl_parser_parse (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fallback</code></em>);</pre>
<p>Parses a playlist given by the absolute URI <em class="parameter"><code>uri</code></em>
. This method is
synchronous, and will block on (e.g.) network requests to slow
servers. <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-async" title="totem_pl_parser_parse_async ()"><code class="function">totem_pl_parser_parse_async()</code></a> is recommended instead.</p>
<p>Return values are as <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-with-base" title="totem_pl_parser_parse_with_base ()"><code class="function">totem_pl_parser_parse_with_base()</code></a>.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description"><p>the URI of the playlist to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fallback</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the parser should add the playlist URI to the
end of the playlist on parse failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-parse.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="type">TotemPlParserResult</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-async"></a><h3>totem_pl_parser_parse_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
totem_pl_parser_parse_async (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fallback</code></em>,
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>Starts asynchronous parsing of a playlist given by the absolute URI <em class="parameter"><code>uri</code></em>
. <em class="parameter"><code>parser</code></em>
and <em class="parameter"><code>uri</code></em>
are both reffed/copied
when this function is called, so can safely be freed after this function returns.</p>
<p>For more details, see <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse" title="totem_pl_parser_parse ()"><code class="function">totem_pl_parser_parse()</code></a>, which is the synchronous version of this function.</p>
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
will be called. You can then call <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-finish" title="totem_pl_parser_parse_finish ()"><code class="function">totem_pl_parser_parse_finish()</code></a>
to get the results of the operation.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description"><p>the URI of the playlist to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fallback</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the parser should add the playlist URI to the
end of the playlist on parse failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p> a <a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when parsing is finished. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
function</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-finish"></a><h3>totem_pl_parser_parse_finish ()</h3>
<pre class="programlisting"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
totem_pl_parser_parse_finish (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Finishes an asynchronous playlist parsing operation started with <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-async" title="totem_pl_parser_parse_async ()"><code class="function">totem_pl_parser_parse_async()</code></a>
or <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-with-base-async" title="totem_pl_parser_parse_with_base_async ()"><code class="function">totem_pl_parser_parse_with_base_async()</code></a>.</p>
<p>If parsing of the playlist is cancelled part-way through, <a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-RESULT-CANCELLED:CAPS"><code class="literal">TOTEM_PL_PARSER_RESULT_CANCELLED</code></a> is returned when
this function is called.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>async_result</p></td>
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-parse-finish.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="type">TotemPlParserResult</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-with-base"></a><h3>totem_pl_parser_parse_with_base ()</h3>
<pre class="programlisting"><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="returnvalue">TotemPlParserResult</span></a>
totem_pl_parser_parse_with_base (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *base</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fallback</code></em>);</pre>
<p>Parses a playlist given by the absolute URI <em class="parameter"><code>uri</code></em>
, using
<em class="parameter"><code>base</code></em>
to resolve relative paths where appropriate.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-with-base.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description"><p>the URI of the playlist to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>base</p></td>
<td class="parameter_description"><p> the base path for relative filenames, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>fallback</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the parser should add the playlist URI to the
end of the playlist on parse failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-parse-with-base.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserResult" title="enum TotemPlParserResult"><span class="type">TotemPlParserResult</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-with-base-async"></a><h3>totem_pl_parser_parse_with_base_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
totem_pl_parser_parse_with_base_async (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *base</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fallback</code></em>,
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>Starts asynchronous parsing of a playlist given by the absolute URI <em class="parameter"><code>uri</code></em>
, using <em class="parameter"><code>base</code></em>
to resolve relative paths where appropriate.
<em class="parameter"><code>parser</code></em>
and <em class="parameter"><code>uri</code></em>
are both reffed/copied when this function is called, so can safely be freed after this function returns.</p>
<p>For more details, see <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-with-base" title="totem_pl_parser_parse_with_base ()"><code class="function">totem_pl_parser_parse_with_base()</code></a>, which is the synchronous version of this function.</p>
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
will be called. You can then call <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-finish" title="totem_pl_parser_parse_finish ()"><code class="function">totem_pl_parser_parse_finish()</code></a>
to get the results of the operation.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-with-base-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description"><p>the URI of the playlist to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>base</p></td>
<td class="parameter_description"><p> the base path for relative filenames, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>fallback</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the parser should add the playlist URI to the
end of the playlist on parse failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p> a <a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when parsing is finished. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
function</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-save"></a><h3>totem_pl_parser_save ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
totem_pl_parser_save (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlPlaylist.html#TotemPlPlaylist" title="TotemPlPlaylist"><span class="type">TotemPlPlaylist</span></a> *playlist</code></em>,
<em class="parameter"><code><a href="../gio/GFile.html#GFile-struct"><span class="type">GFile</span></a> *dest</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserType" title="enum TotemPlParserType"><span class="type">TotemPlParserType</span></a> type</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Writes the playlist held by <em class="parameter"><code>parser</code></em>
and <em class="parameter"><code>playlist</code></em>
out to the path
pointed by <em class="parameter"><code>dest</code></em>
. The playlist is written in the format <em class="parameter"><code>type</code></em>
and is
given the title <em class="parameter"><code>title</code></em>
.</p>
<p>If the <em class="parameter"><code>output</code></em>
file is a directory the <a href="../gio/gio-GIOError.html#G-IO-ERROR-IS-DIRECTORY:CAPS"><span class="type">G_IO_ERROR_IS_DIRECTORY</span></a> error
will be returned, and if the file is some other form of non-regular file
then a <a href="../gio/gio-GIOError.html#G-IO-ERROR-NOT-REGULAR-FILE:CAPS"><span class="type">G_IO_ERROR_NOT_REGULAR_FILE</span></a> error will be returned. Some file
systems don't allow all file names, and may return a
<a href="../gio/gio-GIOError.html#G-IO-ERROR-INVALID-FILENAME:CAPS"><span class="type">G_IO_ERROR_INVALID_FILENAME</span></a> error, and if the name is too long,
<a href="../gio/gio-GIOError.html#G-IO-ERROR-FILENAME-TOO-LONG:CAPS"><span class="type">G_IO_ERROR_FILENAME_TOO_LONG</span></a> will be returned. Other errors are possible
too, and depend on what kind of filesystem the file is on.</p>
<p>In extreme cases, a <a href="../gio/gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><span class="type">G_IO_ERROR_INVALID_ARGUMENT</span></a> error can be returned, if
parts of the playlist to be written are too long.</p>
<p>If writing a PLA playlist and there is an error converting a URI's encoding,
a code from <a href="../glib/glib-Character-Set-Conversion.html#GConvertError"><span class="type">GConvertError</span></a> will be returned.</p>
<div class="refsect3">
<a name="totem-pl-parser-save.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>playlist</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlPlaylist.html#TotemPlPlaylist" title="TotemPlPlaylist"><span class="type">TotemPlPlaylist</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dest</p></td>
<td class="parameter_description"><p>output <a href="../gio/GFile.html#GFile-struct"><span class="type">GFile</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>title</p></td>
<td class="parameter_description"><p>the playlist title</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>type</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserType" title="enum TotemPlParserType"><span class="type">TotemPlParserType</span></a> for the outputted playlist</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>return loction for a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-save.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-duration"></a><h3>totem_pl_parser_parse_duration ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
totem_pl_parser_parse_duration (<em class="parameter"><code>const <span class="type">char</span> *duration</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> debug</code></em>);</pre>
<p>Parses the given duration string and returns it as a <span class="type">gint64</span>
denoting the duration in seconds.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-duration.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>duration</p></td>
<td class="parameter_description"><p>the duration string to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debug statements should be printed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-parse-duration.returns"></a><h4>Returns</h4>
<p> the duration in seconds, or -1 on error</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-parse-date"></a><h3>totem_pl_parser_parse_date ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a>
totem_pl_parser_parse_date (<em class="parameter"><code>const <span class="type">char</span> *date_str</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> debug</code></em>);</pre>
<p>Parses the given date string and returns it as a <span class="type">gint64</span>
denoting the date in seconds since the UNIX Epoch.</p>
<div class="refsect3">
<a name="totem-pl-parser-parse-date.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>date_str</p></td>
<td class="parameter_description"><p>the date string to parse</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debug statements should be printed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-parse-date.returns"></a><h4>Returns</h4>
<p> the date in seconds, or -1 on error</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-add-ignored-scheme"></a><h3>totem_pl_parser_add_ignored_scheme ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
totem_pl_parser_add_ignored_scheme (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *scheme</code></em>);</pre>
<p>Adds a scheme to the list of schemes to ignore, so that
any URI using that scheme is ignored during playlist parsing.</p>
<div class="refsect3">
<a name="totem-pl-parser-add-ignored-scheme.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scheme</p></td>
<td class="parameter_description"><p>the scheme to ignore</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-add-ignored-mimetype"></a><h3>totem_pl_parser_add_ignored_mimetype ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
totem_pl_parser_add_ignored_mimetype (<em class="parameter"><code><a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> *parser</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *mimetype</code></em>);</pre>
<p>Adds a mimetype to the list of mimetypes to ignore, so that
any URI of that mimetype is ignored during playlist parsing.</p>
<div class="refsect3">
<a name="totem-pl-parser-add-ignored-mimetype.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parser</p></td>
<td class="parameter_description"><p>a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>mimetype</p></td>
<td class="parameter_description"><p>the mimetype to ignore</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-can-parse-from-data"></a><h3>totem_pl_parser_can_parse_from_data ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
totem_pl_parser_can_parse_from_data (<em class="parameter"><code>const <span class="type">char</span> *data</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> len</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> debug</code></em>);</pre>
<p>Checks if the first <em class="parameter"><code>len</code></em>
bytes of <em class="parameter"><code>data</code></em>
can be parsed.</p>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-data.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>the data to check for parsability</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>len</p></td>
<td class="parameter_description"><p>the length of data to check</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debug statements should be printed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-data.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>data</code></em>
can be parsed</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-can-parse-from-filename"></a><h3>totem_pl_parser_can_parse_from_filename ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
totem_pl_parser_can_parse_from_filename
(<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> debug</code></em>);</pre>
<p>Checks if the file can be parsed. Files can be parsed if:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>they have a special mimetype, or</p></li>
<li class="listitem"><p>they have a mimetype which could be a video or a playlist.</p></li>
</ul></div>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-filename.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>filename</p></td>
<td class="parameter_description"><p>the file to check for parsability</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debug statements should be printed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-filename.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>filename</code></em>
can be parsed</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="totem-pl-parser-can-parse-from-uri"></a><h3>totem_pl_parser_can_parse_from_uri ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
totem_pl_parser_can_parse_from_uri (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> debug</code></em>);</pre>
<p>Checks if the remote URI can be parsed. Note that this does
not actually try to open the remote URI, or deduce its mime-type
from filename, as this would bring too many false positives.</p>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-uri.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description"><p>the remote URI to check for parsability</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug</p></td>
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debug statements should be printed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="totem-pl-parser-can-parse-from-uri.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>uri</code></em>
could be parsed</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="totem-pl-parser-TotemPlParser.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TotemPlParser"></a><h3>TotemPlParser</h3>
<pre class="programlisting">typedef struct {
GObject parent;
TotemPlParserPrivate *priv;
} TotemPlParser;
</pre>
<p>All the fields in the <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> structure are private and should never be accessed directly.</p>
</div>
<hr>
<div class="refsect2">
<a name="TotemPlParserClass"></a><h3>TotemPlParserClass</h3>
<pre class="programlisting">typedef struct {
GObjectClass parent_class;
/* signals */
void (*entry_parsed) (TotemPlParser *parser,
const char *uri,
GHashTable *metadata);
void (*playlist_started) (TotemPlParser *parser,
const char *uri,
GHashTable *metadata);
void (*playlist_ended) (TotemPlParser *parser,
const char *uri);
} TotemPlParserClass;
</pre>
<p>The class structure for the <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> type.</p>
<div class="refsect3">
<a name="TotemPlParserClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TotemPlParserClass.entry-parsed"></a>entry_parsed</code></em> ()</p></td>
<td class="struct_member_description"><p>the generic signal handler for the <span class="type">“entry-parsed”</span> signal,
which can be overridden by inheriting classes</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TotemPlParserClass.playlist-started"></a>playlist_started</code></em> ()</p></td>
<td class="struct_member_description"><p>the generic signal handler for the <span class="type">“playlist-started”</span> signal,
which can be overridden by inheriting classes</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TotemPlParserClass.playlist-ended"></a>playlist_ended</code></em> ()</p></td>
<td class="struct_member_description"><p>the generic signal handler for the <span class="type">“playlist-ended”</span> signal,
which can be overridden by inheriting classes</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TotemPlParserResult"></a><h3>enum TotemPlParserResult</h3>
<p>Gives the result of parsing a playlist.</p>
<div class="refsect3">
<a name="TotemPlParserResult.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-RESULT-UNHANDLED:CAPS"></a>TOTEM_PL_PARSER_RESULT_UNHANDLED</p></td>
<td class="enum_member_description">
<p>The playlist could not be handled.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-RESULT-ERROR:CAPS"></a>TOTEM_PL_PARSER_RESULT_ERROR</p></td>
<td class="enum_member_description">
<p>There was an error parsing the playlist.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-RESULT-SUCCESS:CAPS"></a>TOTEM_PL_PARSER_RESULT_SUCCESS</p></td>
<td class="enum_member_description">
<p>The playlist was parsed successfully.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-RESULT-IGNORED:CAPS"></a>TOTEM_PL_PARSER_RESULT_IGNORED</p></td>
<td class="enum_member_description">
<p>The playlist was ignored due to its scheme or MIME type (see <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-add-ignored-scheme" title="totem_pl_parser_add_ignored_scheme ()"><code class="function">totem_pl_parser_add_ignored_scheme()</code></a>
and <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-add-ignored-mimetype" title="totem_pl_parser_add_ignored_mimetype ()"><code class="function">totem_pl_parser_add_ignored_mimetype()</code></a>).</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-RESULT-CANCELLED:CAPS"></a>TOTEM_PL_PARSER_RESULT_CANCELLED</p></td>
<td class="enum_member_description">
<p>Parsing of the playlist was cancelled part-way through.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TotemPlParserType"></a><h3>enum TotemPlParserType</h3>
<p>The type of playlist a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a> will parse.</p>
<div class="refsect3">
<a name="TotemPlParserType.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-PLS:CAPS"></a>TOTEM_PL_PARSER_PLS</p></td>
<td class="enum_member_description">
<p>PLS parser</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-M3U:CAPS"></a>TOTEM_PL_PARSER_M3U</p></td>
<td class="enum_member_description">
<p>M3U parser</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-M3U-DOS:CAPS"></a>TOTEM_PL_PARSER_M3U_DOS</p></td>
<td class="enum_member_description">
<p>M3U (DOS linebreaks) parser</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-XSPF:CAPS"></a>TOTEM_PL_PARSER_XSPF</p></td>
<td class="enum_member_description">
<p>XSPF parser</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-IRIVER-PLA:CAPS"></a>TOTEM_PL_PARSER_IRIVER_PLA</p></td>
<td class="enum_member_description">
<p>iRiver PLA parser</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TotemPlParserError"></a><h3>enum TotemPlParserError</h3>
<p>Allows you to differentiate between different
errors occurring during file operations in a <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParser" title="TotemPlParser"><span class="type">TotemPlParser</span></a>.</p>
<div class="refsect3">
<a name="TotemPlParserError.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-ERROR-NO-DISC:CAPS"></a>TOTEM_PL_PARSER_ERROR_NO_DISC</p></td>
<td class="enum_member_description">
<p>Error attempting to open a disc device when no disc is present</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-ERROR-MOUNT-FAILED:CAPS"></a>TOTEM_PL_PARSER_ERROR_MOUNT_FAILED</p></td>
<td class="enum_member_description">
<p>An attempted mount operation failed</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TOTEM-PL-PARSER-ERROR-EMPTY-PLAYLIST:CAPS"></a>TOTEM_PL_PARSER_ERROR_EMPTY_PLAYLIST</p></td>
<td class="enum_member_description">
<p>Playlist to be saved is empty</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TotemPlParserMetadata"></a><h3>TotemPlParserMetadata</h3>
<pre class="programlisting">typedef GHashTable TotemPlParserMetadata;
</pre>
<p>An alias for <a href="../glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a>, used in the <span class="type">“entry-parsed”</span> and
<span class="type">“playlist-started”</span> signals due to <a href="../glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> not being a
boxed type when totem-pl-parser was originally written.</p>
<p>The hash table is a mapping from field names (such as
<a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-ALBUM:CAPS" title="TOTEM_PL_PARSER_FIELD_ALBUM"><code class="literal">TOTEM_PL_PARSER_FIELD_ALBUM</code></a>) to their associated values.</p>
<p>It is safe to use <a href="../glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> instead of <a class="link" href="totem-pl-parser-TotemPlParser.html#TotemPlParserMetadata" title="TotemPlParserMetadata"><span class="type">TotemPlParserMetadata</span></a> everywhere.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-URI:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_URI</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_URI "url"
</pre>
<p>Metadata field for an entry's URI.</p>
<p class="since">Since: <a class="link" href="ix02.html#api-index-2.26">2.26</a></p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-GENRE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_GENRE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_GENRE "genre"
</pre>
<p>Metadata field for an entry's genre.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-TITLE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_TITLE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_TITLE "title"
</pre>
<p>Metadata field for an entry's displayable title.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-AUTHOR:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_AUTHOR</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_AUTHOR "author"
</pre>
<p>Metadata field for an entry's author/composer/director.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-ALBUM:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_ALBUM</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_ALBUM "album"
</pre>
<p>Metadata field for an entry's album.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-BASE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_BASE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_BASE "base"
</pre>
<p>Metadata field for an entry's base path.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-VOLUME:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_VOLUME</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_VOLUME "volume"
</pre>
<p>Metadata field for an entry's playback volume.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-AUTOPLAY:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_AUTOPLAY</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_AUTOPLAY "autoplay"
</pre>
<p>Metadata field for an entry's "autoplay" flag, which is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the entry should play automatically.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-DURATION:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_DURATION</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_DURATION "duration"
</pre>
<p>Metadata field for an entry's playback duration, which should be parsed using <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-duration" title="totem_pl_parser_parse_duration ()"><code class="function">totem_pl_parser_parse_duration()</code></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-DURATION-MS:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_DURATION_MS</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_DURATION_MS "duration-ms"
</pre>
<p>Metadata field for an entry's playback duration, in milliseconds. It's only used when an entry's
duration is available in that format, so one would get either the <a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DURATION:CAPS" title="TOTEM_PL_PARSER_FIELD_DURATION"><code class="literal">TOTEM_PL_PARSER_FIELD_DURATION</code></a>
or <a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DURATION-MS:CAPS" title="TOTEM_PL_PARSER_FIELD_DURATION_MS"><code class="literal">TOTEM_PL_PARSER_FIELD_DURATION_MS</code></a> as metadata.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-STARTTIME:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_STARTTIME</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_STARTTIME "starttime"
</pre>
<p>Metadata field for an entry's playback start time, which should be parsed using <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-duration" title="totem_pl_parser_parse_duration ()"><code class="function">totem_pl_parser_parse_duration()</code></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-ENDTIME:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_ENDTIME</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_ENDTIME "endtime"
</pre>
<p>Metadata field for an entry's playback end time.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-COPYRIGHT:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_COPYRIGHT</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_COPYRIGHT "copyright"
</pre>
<p>Metadata field for an entry's copyright line.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-ABSTRACT:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_ABSTRACT</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_ABSTRACT "abstract"
</pre>
<p>Metadata field for an entry's abstract text.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-DESCRIPTION:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_DESCRIPTION</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_DESCRIPTION "description"
</pre>
<p>Metadata field for an entry's description.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-SUMMARY:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_SUMMARY</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_SUMMARY TOTEM_PL_PARSER_FIELD_DESCRIPTION
</pre>
<p>Metadata field for an entry's summary. (In practice, identical to <a class="link" href="totem-pl-parser-TotemPlParser.html#TOTEM-PL-PARSER-FIELD-DESCRIPTION:CAPS" title="TOTEM_PL_PARSER_FIELD_DESCRIPTION"><code class="literal">TOTEM_PL_PARSER_FIELD_DESCRIPTION</code></a>.)</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-MOREINFO:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_MOREINFO</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_MOREINFO "moreinfo"
</pre>
<p>Metadata field for an entry's "more info" URI.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-SCREENSIZE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_SCREENSIZE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_SCREENSIZE "screensize"
</pre>
<p>Metadata field for an entry's preferred screen size.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-UI-MODE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_UI_MODE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_UI_MODE "ui-mode"
</pre>
<p>Metadata field for an entry's preferred UI mode.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-PUB-DATE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_PUB_DATE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_PUB_DATE "publication-date"
</pre>
<p>Metadata field for an entry's publication date, which should be parsed using <a class="link" href="totem-pl-parser-TotemPlParser.html#totem-pl-parser-parse-date" title="totem_pl_parser_parse_date ()"><code class="function">totem_pl_parser_parse_date()</code></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-FILESIZE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_FILESIZE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_FILESIZE "filesize"
</pre>
<p>Metadata field for an entry's filesize in bytes. This is only advisory, and can sometimes not match the actual filesize of the stream.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-LANGUAGE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_LANGUAGE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_LANGUAGE "language"
</pre>
<p>Metadata field for an entry's audio language.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-CONTACT:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_CONTACT</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_CONTACT "contact"
</pre>
<p>Metadata field for an entry's contact details for the webmaster.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-IMAGE-URI:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_IMAGE_URI</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_IMAGE_URI "image-url"
</pre>
<p>Metadata field for an entry's thumbnail image URI.</p>
<p class="since">Since: <a class="link" href="ix02.html#api-index-2.26">2.26</a></p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-DOWNLOAD-URI:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_DOWNLOAD_URI</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_DOWNLOAD_URI "download-url"
</pre>
<p>Metadata field for an entry's download URI. Only used if an alternate download
location is available for the entry.</p>
<p class="since">Since: <a class="link" href="ix02.html#api-index-2.26">2.26</a></p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-ID:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_ID</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_ID "id"
</pre>
<p>Metadata field for an entry's identifier. Its use is dependent on the format
of the playlist parsed, and its origin.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-IS-PLAYLIST:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_IS_PLAYLIST</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_IS_PLAYLIST "is-playlist"
</pre>
<p>Metadata field used to tell the calling code that the parsing of a playlist
started. It is only <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for the metadata passed to <span class="type">“playlist-started”</span> or
<span class="type">“playlist-ended”</span> signal handlers.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-SUBTITLE-URI:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_SUBTITLE_URI</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_SUBTITLE_URI "subtitle-uri"
</pre>
<p>The URI of the entry's subtitle file.</p>
</div>
<hr>
<div class="refsect2">
<a name="TOTEM-PL-PARSER-FIELD-CONTENT-TYPE:CAPS"></a><h3>TOTEM_PL_PARSER_FIELD_CONTENT_TYPE</h3>
<pre class="programlisting">#define TOTEM_PL_PARSER_FIELD_CONTENT_TYPE "content-type"
</pre>
<p>Metadata field for an entry's content-type (usually a mime-type coming
from a web server).</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>
|