/usr/share/gtk-doc/html/libepc-1.0/libepc-1.0-publisher.html is in libepc-doc 0.4.4-3.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EpcPublisher</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Easy Publish and Consume Reference Manual">
<link rel="up" href="publishing.html" title="Publishing">
<link rel="prev" href="libepc-1.0-contents.html" title="EpcContents">
<link rel="next" href="dns-sd-support.html" title="DNS-SD Support">
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libepc-1.0-contents.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="publishing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Easy Publish and Consume Reference Manual</th>
<td><a accesskey="n" href="dns-sd-support.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libepc-1.0-publisher.synopsis" class="shortcut">Top</a>
|
<a href="#libepc-1.0-publisher.description" class="shortcut">Description</a>
|
<a href="#libepc-1.0-publisher.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#libepc-1.0-publisher.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="libepc-1.0-publisher"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libepc-1.0-publisher.top_of_page"></a>EpcPublisher</span></h2>
<p>EpcPublisher — easily publish values</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libepc-1.0-publisher.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libepc-1.0-publisher.synopsis"></a><h2>Synopsis</h2>
<a name="EpcPublisher"></a><pre class="synopsis">
#include <libepc/publish.h>
<a class="link" href="libepc-1.0-contents.html#EpcContents" title="EpcContents"><span class="returnvalue">EpcContents</span></a> * (<a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()">*EpcContentsHandler</a>) (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<a class="link" href="libepc-1.0-publisher.html#EpcPublisherPrivate" title="EpcPublisherPrivate">EpcPublisherPrivate</a>;
struct <a class="link" href="libepc-1.0-publisher.html#EpcPublisherClass" title="struct EpcPublisherClass">EpcPublisherClass</a>;
struct <a class="link" href="libepc-1.0-publisher.html#EpcPublisher-struct" title="struct EpcPublisher">EpcPublisher</a>;
<a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="returnvalue">EpcPublisher</span></a> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-new" title="epc_publisher_new ()">epc_publisher_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *application</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add" title="epc_publisher_add ()">epc_publisher_add</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">gconstpointer</span> data</code></em>,
<em class="parameter"><code><span class="type">gssize</span> length</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-file" title="epc_publisher_add_file ()">epc_publisher_add_file</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-handler" title="epc_publisher_add_handler ()">epc_publisher_add_handler</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a> handler</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy_data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-bookmark" title="epc_publisher_add_bookmark ()">epc_publisher_add_bookmark</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-path" title="epc_publisher_get_path ()">epc_publisher_get_path</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-uri" title="epc_publisher_get_uri ()">epc_publisher_get_uri</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-has-key" title="epc_publisher_has_key ()">epc_publisher_has_key</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
<span class="returnvalue">gpointer</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-lookup" title="epc_publisher_lookup ()">epc_publisher_lookup</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-remove" title="epc_publisher_remove ()">epc_publisher_remove</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-list" title="epc_publisher_list ()">epc_publisher_list</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *pattern</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-run" title="epc_publisher_run ()">epc_publisher_run</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-run-async" title="epc_publisher_run_async ()">epc_publisher_run_async</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-quit" title="epc_publisher_quit ()">epc_publisher_quit</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-expand-name" title="epc_publisher_expand_name ()">epc_publisher_expand_name</a> (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-flags" title="epc_publisher_set_auth_flags ()">epc_publisher_set_auth_flags</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> flags</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-handler" title="epc_publisher_set_auth_handler ()">epc_publisher_set_auth_handler</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()"><span class="type">EpcAuthHandler</span></a> handler</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy_data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-collision-handling" title="epc_publisher_set_collision_handling ()">epc_publisher_set_collision_handling</a>
(<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="type">EpcCollisionHandling</span></a> method</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-contents-path" title="epc_publisher_set_contents_path ()">epc_publisher_set_contents_path</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-credentials" title="epc_publisher_set_credentials ()">epc_publisher_set_credentials</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *certfile</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *keyfile</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-protocol" title="epc_publisher_set_protocol ()">epc_publisher_set_protocol</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> protocol</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-service-cookie" title="epc_publisher_set_service_cookie ()">epc_publisher_set_service_cookie</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *cookie</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-service-name" title="epc_publisher_set_service_name ()">epc_publisher_set_service_name</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
<a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="returnvalue">EpcAuthFlags</span></a> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-auth-flags" title="epc_publisher_get_auth_flags ()">epc_publisher_get_auth_flags</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-certificate-file" title="epc_publisher_get_certificate_file ()">epc_publisher_get_certificate_file</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
<a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="returnvalue">EpcCollisionHandling</span></a> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-collision-handling" title="epc_publisher_get_collision_handling ()">epc_publisher_get_collision_handling</a>
(<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-contents-path" title="epc_publisher_get_contents_path ()">epc_publisher_get_contents_path</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-private-key-file" title="epc_publisher_get_private_key_file ()">epc_publisher_get_private_key_file</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
<a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="returnvalue">EpcProtocol</span></a> <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-protocol" title="epc_publisher_get_protocol ()">epc_publisher_get_protocol</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-service-cookie" title="epc_publisher_get_service_cookie ()">epc_publisher_get_service_cookie</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-service-domain" title="epc_publisher_get_service_domain ()">epc_publisher_get_service_domain</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
const <span class="returnvalue">gchar</span> * <a class="link" href="libepc-1.0-publisher.html#epc-publisher-get-service-name" title="epc_publisher_get_service_name ()">epc_publisher_get_service_name</a> (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----EpcPublisher
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--application" title='The "application" property'>application</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--auth-flags" title='The "auth-flags" property'>auth-flags</a>" <a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--certificate-file" title='The "certificate-file" property'>certificate-file</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--collision-handling" title='The "collision-handling" property'>collision-handling</a>" <a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="type">EpcCollisionHandling</span></a> : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--contents-path" title='The "contents-path" property'>contents-path</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--private-key-file" title='The "private-key-file" property'>private-key-file</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--protocol" title='The "protocol" property'>protocol</a>" <a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-cookie" title='The "service-cookie" property'>service-cookie</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-domain" title='The "service-domain" property'>service-domain</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-name" title='The "service-name" property'>service-name</a>" <span class="type">gchar</span>* : Read / Write / Construct
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.description"></a><h2>Description</h2>
<p>
The <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> starts a HTTP server to publish information.
To allow <a class="link" href="libepc-1.0-consumer.html#EpcConsumer"><span class="type">EpcConsumer</span></a> to find the publisher it automatically publishes
its contact information (host name, TCP/IP port) per DNS-SD.
</p>
<p>
In future it might use DNS-DS to notify <a class="link" href="libepc-1.0-consumer.html#EpcConsumer"><span class="type">EpcConsumer</span></a> of changes.
</p>
<p>
</p>
<div class="example">
<a name="publish-value"></a><p class="title"><b>Example 6. Publish a value</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</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="normal">publisher </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libepc-1.0-publisher.html#epc-publisher-new">epc_publisher_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Easy Publisher Example"</span><span class="symbol">,</span><span class="normal"> <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">);</span>
<span class="function"><a href="libepc-1.0-publisher.html#epc-publisher-add">epc_publisher_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">publisher</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"maman"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"bar"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
<span class="function"><a href="libepc-1.0-publisher.html#epc-publisher-add-file">epc_publisher_add_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">publisher</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"source-code"</span><span class="symbol">,</span><span class="normal"> __FILE__</span><span class="symbol">);</span>
<span class="function"><a href="libepc-1.0-publisher.html#epc-publisher-run">epc_publisher_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
</div>
<p><br class="example-break">
</p>
<p>
<a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> doesn't provide a way to explicitly publish <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> values, as
publishing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> values doesn't seem very valueable in our scenario: Usually
you want to "publish" <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> values to express, that your application doesn't
have any meaningful information for the requested identifier. By "publishing"
a <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> value essentially you say "this information does not exist". So
publishing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> values is not different from not publishing any value at
all or rejected access to some values. Without explicitly inspecting the
details for not receiving a value, a consumer calling <a class="link" href="libepc-1.0-consumer.html#epc-consumer-lookup" title="epc_consumer_lookup ()"><code class="function">epc_consumer_lookup()</code></a>
has no chance to distinguish between the cases "never published", "network
problem", "authorization rejected", "no meaningful value available".
</p>
<p>
So if feel like publishing a <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> value, just remove the key in question
from the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> by calling <a class="link" href="libepc-1.0-publisher.html#epc-publisher-remove" title="epc_publisher_remove ()"><code class="function">epc_publisher_remove()</code></a>. When using a
custom <a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a> an alternate approach is returning <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> from
that handler. In that case the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> will behave exactly the same,
as if the value has been removed.
</p>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="EpcContentsHandler"></a><h3>EpcContentsHandler ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-contents.html#EpcContents" title="EpcContents"><span class="returnvalue">EpcContents</span></a> * (*EpcContentsHandler) (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
This callback is used to generate custom contents published with the
<a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-handler" title="epc_publisher_add_handler ()"><span class="type">epc_publisher_add_handler</span></a> function. The arguments passed are the same as
passed to <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-handler" title="epc_publisher_add_handler ()"><span class="type">epc_publisher_add_handler</span></a>. The <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> will decrease the
reference count of the returned buffer after deliving it. It's valid to
return <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> in situations were no contents can be generated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the unique key</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was installed</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The <a class="link" href="libepc-1.0-contents.html#EpcContents" title="EpcContents"><span class="type">EpcContents</span></a> buffer for this publication, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisherPrivate"></a><h3>EpcPublisherPrivate</h3>
<pre class="programlisting">typedef struct _EpcPublisherPrivate EpcPublisherPrivate;</pre>
<p>
Private fields of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisherClass"></a><h3>struct EpcPublisherClass</h3>
<pre class="programlisting">struct EpcPublisherClass {
};
</pre>
<p>
Virtual methods of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher-struct"></a><h3>struct EpcPublisher</h3>
<pre class="programlisting">struct EpcPublisher;</pre>
<p>
Public fields of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-new"></a><h3>epc_publisher_new ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="returnvalue">EpcPublisher</span></a> * epc_publisher_new (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *application</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *domain</code></em>);</pre>
<p>
Creates a new <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> object. The publisher announces its service
per DNS-SD to the DNS domain specified by <em class="parameter"><code>domain</code></em>, using <em class="parameter"><code>name</code></em> as service
name. The service type is derived from <em class="parameter"><code>application</code></em>. When <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> is passed
for <em class="parameter"><code>application</code></em> the value returned by <code class="function">g_get_prgname()</code> is used. See
<a class="link" href="libepc-1.0-EpcServiceType.html#epc-service-type-new" title="epc_service_type_new ()"><code class="function">epc_service_type_new()</code></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the human friendly service name, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
<td>application name used for DNS-SD service type, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
<td>the DNS domain for announcing the service, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The newly created <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> object.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-add"></a><h3>epc_publisher_add ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_add (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">gconstpointer</span> data</code></em>,
<em class="parameter"><code><span class="type">gssize</span> length</code></em>);</pre>
<p>
Publishes a new value on the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> using the unique <em class="parameter"><code>key</code></em> for
addressing. When -1 is passed for <em class="parameter"><code>length</code></em>, <em class="parameter"><code>data</code></em> is expected to be a
null-terminated string and its length in bytes is determined automatically
using <code class="function">strlen</code>.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
Values published by the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> can be arbitrary data, possibly
including null characters in the middle. The kind of data associated
with a <em class="parameter"><code>key</code></em> is chosen by the application providing values and should
be specified separately.
</p>
<p>
However, when publishing plain text it is strongly recommended
to use UTF-8 encoding to avoid internationalization issues.
</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing the value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>the value to publish</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>the length of <em class="parameter"><code>data</code></em> in bytes, or -1 if <em class="parameter"><code>data</code></em> is a null-terminated string.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-add-file"></a><h3>epc_publisher_add_file ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_add_file (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);</pre>
<p>
Publishes a local file on the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> using the unique
<em class="parameter"><code>key</code></em> for addressing. The publisher delivers the current contents
of the file at the time of access.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing the file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the name of the file to publish</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-add-handler"></a><h3>epc_publisher_add_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_add_handler (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a> handler</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy_data</code></em>);</pre>
<p>
Publishes contents on the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> which are generated by a custom
<a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a> callback. This is the most flexible method for publishing
information.
</p>
<p>
The <em class="parameter"><code>handler</code></em> is called on every request matching <em class="parameter"><code>key</code></em>.
When called, <em class="parameter"><code>publisher</code></em>, <em class="parameter"><code>key</code></em> and <em class="parameter"><code>user_data</code></em> are passed to the <em class="parameter"><code>handler</code></em>.
When replacing or deleting the resource referenced by <em class="parameter"><code>key</code></em>,
or when the the Publisher is destroyed, the function
described by <em class="parameter"><code>destroy_data</code></em> is called with <em class="parameter"><code>user_data</code></em> as argument.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing the contents</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>the <a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a> for handling this contents</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass on <em class="parameter"><code>handler</code></em> calls</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy_data</code></em> :</span></p></td>
<td>a function for releasing <em class="parameter"><code>user_data</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-add-bookmark"></a><h3>epc_publisher_add_bookmark ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_add_bookmark (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
<p>
Installs a dynamic HTTP (respectively HTTPS) bookmark for <em class="parameter"><code>key</code></em>.
This allows consumption of <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> resources by foreign
applications that support ZeroConf bookmarks, but not libepc.
This is useful for instance for publishing media playlists.
</p>
<p>
Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> as <em class="parameter"><code>key</code></em> installs a bookmark for the root context of the
builtin web server. When passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> as <em class="parameter"><code>label</code></em> the publisher's name
is used as bookmark label.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
Dynamic bookmarks must be unique within the service domain.
Therefore the <em class="parameter"><code>label</code></em> will get modified on name collisions.
</p>
</div>
<p>
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
This should be called after adding the resource identified by <em class="parameter"><code>key</code></em>,
not before. For instance, after calling <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add" title="epc_publisher_add ()"><code class="function">epc_publisher_add()</code></a>.
</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <span class="type">EpcResource</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key of the resource to publish, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>the bookmark's label, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-path"></a><h3>epc_publisher_get_path ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * epc_publisher_get_path (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
<p>
Queries the path component of the URI used to publish the resource
associated with <em class="parameter"><code>key</code></em>. This is useful when referencing keys in published
resources. Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> as <em class="parameter"><code>key</code></em> retrieve the path of the root context.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the resource key to inspect, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The resource path for <em class="parameter"><code>key</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-uri"></a><h3>epc_publisher_get_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * epc_publisher_get_uri (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Queries the URI used to publish the resource associated with <em class="parameter"><code>key</code></em>.
This is useful when referencing keys in published resources. When
passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> the publisher's base URI is returned.
</p>
<p>
The function fails if the publisher's host name cannot be retrieved.
In that case <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> is returned and <em class="parameter"><code>error</code></em> is set. The error domain is
<a class="link" href="libepc-1.0-EpcShell.html#EPC-AVAHI-ERROR:CAPS" title="EPC_AVAHI_ERROR"><span class="type">EPC_AVAHI_ERROR</span></a>. Possible error codes are those of the
<em class="citetitle">Avahi</em> library.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the resource key to inspect, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <span class="type">GError</span>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The fully qualified URI for <em class="parameter"><code>key</code></em>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-has-key"></a><h3>epc_publisher_has_key ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_publisher_has_key (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
<p>
Checks if information is published for <em class="parameter"><code>key</code></em>.
</p>
<p>
This function allows to use the publisher as local key/value store,
which is useful for instance to prevent accidental key collisions.
</p>
<p>
See also: epc_publisher_lookup.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <span class="type">EcpPublisher</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing contents</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when the publisher has information for <em class="parameter"><code>key</code></em>,
and <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-lookup"></a><h3>epc_publisher_lookup ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span> epc_publisher_lookup (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
<p>
Looks up the user_data passed to <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-handler" title="epc_publisher_add_handler ()"><code class="function">epc_publisher_add_handler()</code></a> for <em class="parameter"><code>key</code></em>.
Returns <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the specified <em class="parameter"><code>key</code></em> doesn't exist or wasn't published
with <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add-handler" title="epc_publisher_add_handler ()"><code class="function">epc_publisher_add_handler()</code></a>.
</p>
<p>
This function allows to use the publisher as local key/value store,
which is useful for instance to prevent accidental key collisions.
</p>
<p>
See also: epc_publisher_has_key.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <span class="type">EcpPublisher</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing contents</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The user_data associated with <em class="parameter"><code>key</code></em>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-remove"></a><h3>epc_publisher_remove ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_publisher_remove (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
<p>
Removes a key and its associated contents from a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key for addressing the contents</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the key was found and removed from the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-list"></a><h3>epc_publisher_list ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * epc_publisher_list (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *pattern</code></em>);</pre>
<p>
Matches published keys against patterns containing '*' (wildcard) and '?'
(joker). Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> as <em class="parameter"><code>pattern</code></em> is equivalent to passing "*" and returns
all published keys. This function is useful for generating dynamic resource
listings in other formats than libepc's specific format. See <span class="type">GPatternSpec</span>
for information about glob-style patterns.
</p>
<p>
If the call was successful, a list of keys matching <em class="parameter"><code>pattern</code></em> is returned.
If the call was not successful, it returns <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
</p>
<p>
The returned list should be freed when no longer needed:
</p>
<p>
</p>
<pre class="programlisting">
g_list_foreach (keys, (GFunc) g_free, NULL);
g_list_free (keys);
</pre>
<p>
</p>
<p>
See also <a class="link" href="libepc-1.0-consumer.html#epc-consumer-list" title="epc_consumer_list ()"><code class="function">epc_consumer_list()</code></a> for builtin listing capabilities.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
<td>a glob-style pattern, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated list of keys, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> when an error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-run"></a><h3>epc_publisher_run ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_publisher_run (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Starts the server component of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> and blocks until it is
shutdown using <a class="link" href="libepc-1.0-publisher.html#epc-publisher-quit" title="epc_publisher_quit ()"><code class="function">epc_publisher_quit()</code></a>. If the server could not be started, the
function returns <code class="literal">FALSE</code> and sets <em class="parameter"><code>error</code></em>. The error domain is
<a class="link" href="libepc-1.0-EpcShell.html#EPC-AVAHI-ERROR:CAPS" title="EPC_AVAHI_ERROR"><span class="type">EPC_AVAHI_ERROR</span></a>. Possible error codes are those of the
<em class="citetitle">Avahi</em> library.
</p>
<p>
When starting the publisher in HTTPS mode for the first time self-signed
keys must be generated. Generating secure keys needs some time,
so it is recommended to call <a class="link" href="libepc-1.0-progress-window.html#epc-progress-window-install" title="epc_progress_window_install ()"><code class="function">epc_progress_window_install()</code></a>, or
<a class="link" href="libepc-1.0-EpcShell.html#epc-shell-set-progress-hooks" title="epc_shell_set_progress_hooks ()"><code class="function">epc_shell_set_progress_hooks()</code></a> to provide visual feedback during that
operation. Key generation takes place in a separate background thread and
the calling thread waits in a GMainLoop. Therefore the UI can remain
responsive when generating keys.
</p>
<p>
To start the server without blocking call <a class="link" href="libepc-1.0-publisher.html#epc-publisher-run-async" title="epc_publisher_run_async ()"><code class="function">epc_publisher_run_async()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <span class="type">GError</span>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when the publisher was successfully started,
<code class="literal">FALSE</code> if an error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-run-async"></a><h3>epc_publisher_run_async ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_publisher_run_async (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Starts the server component of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> without blocking. If the
server could not be started then the function returns <code class="literal">FALSE</code> and sets <em class="parameter"><code>error</code></em>. The
error domain is <a class="link" href="libepc-1.0-EpcShell.html#EPC-AVAHI-ERROR:CAPS" title="EPC_AVAHI_ERROR"><span class="type">EPC_AVAHI_ERROR</span></a>. Possible error codes are those of the
<em class="citetitle">Avahi</em> library.
</p>
<p>
To stop the server component call <a class="link" href="libepc-1.0-publisher.html#epc-publisher-quit" title="epc_publisher_quit ()"><code class="function">epc_publisher_quit()</code></a>.
See <a class="link" href="libepc-1.0-publisher.html#epc-publisher-run" title="epc_publisher_run ()"><code class="function">epc_publisher_run()</code></a> for additional information.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <span class="type">GError</span>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when the publisher was successfully started,
<code class="literal">FALSE</code> if an error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-quit"></a><h3>epc_publisher_quit ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> epc_publisher_quit (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Stops the server component of the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> started with
<a class="link" href="libepc-1.0-publisher.html#epc-publisher-run" title="epc_publisher_run ()"><code class="function">epc_publisher_run()</code></a> or <a class="link" href="libepc-1.0-publisher.html#epc-publisher-run-async" title="epc_publisher_run_async ()"><span class="type">epc_publisher_run_async</span></a>. The functions
returns <code class="literal">TRUE</code> when the built-in server was running and had to
be stopped. If the server wasn't running the function returns
<code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when the server had to be stopped, and <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-expand-name"></a><h3>epc_publisher_expand_name ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * epc_publisher_expand_name (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Expands all known placeholders in <em class="parameter"><code>name</code></em>. Supported placeholders are:
</p>
<p>
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">%<code class="literal">a</code>: the program name as returned by <code class="function">g_get_application_name()</code>
</li>
<li class="listitem">%<code class="literal">h</code>: the machine's host name in title case</li>
<li class="listitem">%<code class="literal">u</code>: the user's login name in title case</li>
<li class="listitem">%<code class="literal">U</code>: the user's real name</li>
<li class="listitem">%%: the percent sign</li>
</ul></div>
<p>
</p>
<p>
The function fails when the host name cannot looked up. In that case <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
is returned and <em class="parameter"><code>error</code></em> is set. The error domain is <a class="link" href="libepc-1.0-EpcShell.html#EPC-AVAHI-ERROR:CAPS" title="EPC_AVAHI_ERROR"><span class="type">EPC_AVAHI_ERROR</span></a>.
Possible error codes are those of the <em class="citetitle">Avahi</em> library.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>a service name with placeholders</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <span class="type">GError</span>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The <em class="parameter"><code>name</code></em> with all known placeholders expanded, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-auth-flags"></a><h3>epc_publisher_set_auth_flags ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_auth_flags (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> flags</code></em>);</pre>
<p>
Changes the authentication settings the publisher uses
when <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-handler" title="epc_publisher_set_auth_handler ()"><code class="function">epc_publisher_set_auth_handler()</code></a> is used.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--auth-flags" title='The "auth-flags" property'><span class="type">"auth-flags"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>new authentication settings</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-auth-handler"></a><h3>epc_publisher_set_auth_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_auth_handler (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()"><span class="type">EpcAuthHandler</span></a> handler</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy_data</code></em>);</pre>
<p>
Installs an authentication handler for the specified <em class="parameter"><code>key</code></em>.
Passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> as <em class="parameter"><code>key</code></em> installs a fallback handler for all resources.
</p>
<p>
The <em class="parameter"><code>handler</code></em> is called on every request matching <em class="parameter"><code>key</code></em>. On this call
a temporary <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> and <em class="parameter"><code>user_data</code></em> are passed to the <em class="parameter"><code>handler</code></em>.
The <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> references the <em class="parameter"><code>publisher</code></em> and <em class="parameter"><code>key</code></em> passed here.
When replacing or deleting the resource referenced by <em class="parameter"><code>key</code></em>, or when
the publisher is destroyed, the function
described by <em class="parameter"><code>destroy_data</code></em> is called with <em class="parameter"><code>user_data</code></em> as argument.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
This should be called after adding the resource identified by <em class="parameter"><code>key</code></em>,
not before. For instance, after calling <a class="link" href="libepc-1.0-publisher.html#epc-publisher-add" title="epc_publisher_add ()"><code class="function">epc_publisher_add()</code></a>.
</p>
</div>
<p>
</p>
<p>
See also <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-flags" title="epc_publisher_set_auth_flags ()"><code class="function">epc_publisher_set_auth_flags()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key of the resource to protect, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()"><span class="type">EpcAuthHandler</span></a> to connect</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass on <em class="parameter"><code>handler</code></em> calls</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy_data</code></em> :</span></p></td>
<td>a function for releasing <em class="parameter"><code>user_data</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-collision-handling"></a><h3>epc_publisher_set_collision_handling ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_collision_handling
(<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="type">EpcCollisionHandling</span></a> method</code></em>);</pre>
<p>
Changes the collision handling strategy the publisher uses.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--collision-handling" title='The "collision-handling" property'><span class="type">"collision-handling"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>method</code></em> :</span></p></td>
<td>the new strategy</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-contents-path"></a><h3>epc_publisher_set_contents_path ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_contents_path (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);</pre>
<p>
Changes the server path used for publishing contents.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--contents-path" title='The "contents-path" property'><span class="type">"contents-path"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>the new contents path</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-credentials"></a><h3>epc_publisher_set_credentials ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_credentials (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *certfile</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *keyfile</code></em>);</pre>
<p>
Changes the file names of the PEM encoded TLS credentials the publisher use
for its services, when the transport <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--protocol" title='The "protocol" property'><span class="type">"protocol"</span></a> is
<a class="link" href="EpcProtocol.html#EPC-PROTOCOL-HTTPS:CAPS"><span class="type">EPC_PROTOCOL_HTTPS</span></a>.
</p>
<p>
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--certificate-file" title='The "certificate-file" property'><span class="type">"certificate-file"</span></a> and
<a class="link" href="libepc-1.0-publisher.html#EpcPublisher--private-key-file" title='The "private-key-file" property'><span class="type">"private-key-file"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>certfile</code></em> :</span></p></td>
<td>file name of the server certificate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>keyfile</code></em> :</span></p></td>
<td>file name of the private key</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-protocol"></a><h3>epc_publisher_set_protocol ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_protocol (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code><a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> protocol</code></em>);</pre>
<p>
Changes the transport protocol the publisher uses.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--protocol" title='The "protocol" property'><span class="type">"protocol"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>protocol</code></em> :</span></p></td>
<td>the transport protocol</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-service-cookie"></a><h3>epc_publisher_set_service_cookie ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_service_cookie (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *cookie</code></em>);</pre>
<p>
Changes the unique identifier of the service.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-cookie" title='The "service-cookie" property'><span class="type">"service-cookie"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cookie</code></em> :</span></p></td>
<td>the new service identifier, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-set-service-name"></a><h3>epc_publisher_set_service_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> epc_publisher_set_service_name (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
<p>
Changes the human friendly name this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> uses to announce its
service. See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-name" title='The "service-name" property'><span class="type">"service-name"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the new name of this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-auth-flags"></a><h3>epc_publisher_get_auth_flags ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="returnvalue">EpcAuthFlags</span></a> epc_publisher_get_auth_flags (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the current authentication settings of the publisher.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--auth-flags" title='The "auth-flags" property'><span class="type">"auth-flags"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The authentication settings of the publisher,
or <a class="link" href="libepc-1.0-auth-context.html#EPC-AUTH-DEFAULT:CAPS"><span class="type">EPC_AUTH_DEFAULT</span></a> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-certificate-file"></a><h3>epc_publisher_get_certificate_file ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_certificate_file (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the file name of the PEM encoded server certificate.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--certificate-file" title='The "certificate-file" property'><span class="type">"certificate-file"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The certificate's file name, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-collision-handling"></a><h3>epc_publisher_get_collision_handling ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="returnvalue">EpcCollisionHandling</span></a> epc_publisher_get_collision_handling
(<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the collision handling strategy the publisher uses.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--collision-handling" title='The "collision-handling" property'><span class="type">"collision-handling"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The publisher's collision handling strategy,
or <a class="link" href="libepc-1.0-dispatcher.html#EPC-COLLISIONS-IGNORE:CAPS"><span class="type">EPC_COLLISIONS_IGNORE</span></a> on error.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-contents-path"></a><h3>epc_publisher_get_contents_path ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_contents_path (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the server path used for publishing contents.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--contents-path" title='The "contents-path" property'><span class="type">"contents-path"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The server's contents path.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-private-key-file"></a><h3>epc_publisher_get_private_key_file ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_private_key_file (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the file name of the PEM encoded private server key.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--private-key-file" title='The "private-key-file" property'><span class="type">"private-key-file"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The private key's file name, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-protocol"></a><h3>epc_publisher_get_protocol ()</h3>
<pre class="programlisting"><a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="returnvalue">EpcProtocol</span></a> epc_publisher_get_protocol (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the transport protocol the publisher uses.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--protocol" title='The "protocol" property'><span class="type">"protocol"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The transport protocol the publisher uses,
or <a class="link" href="EpcProtocol.html#EPC-PROTOCOL-UNKNOWN:CAPS"><span class="type">EPC_PROTOCOL_UNKNOWN</span></a> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-service-cookie"></a><h3>epc_publisher_get_service_cookie ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_service_cookie (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the unique identifier of the service.
See <a class="link" href="libepc-1.0-publisher.html#EpcPublisher--service-cookie" title='The "service-cookie" property'><span class="type">"service-cookie"</span></a> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The unique identifier of the service, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> on error.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-service-domain"></a><h3>epc_publisher_get_service_domain ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_service_domain (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the DNS domain for which this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> announces its service.
See <span class="type">"domain"</span> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The DNS-SD domain of this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-publisher-get-service-name"></a><h3>epc_publisher_get_service_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * epc_publisher_get_service_name (<em class="parameter"><code><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> *publisher</code></em>);</pre>
<p>
Queries the human friendly name this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> uses
to announce its service. See <span class="type">"name"</span> for details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>publisher</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The human friendly name of this <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="EpcPublisher--application"></a><h3>The <code class="literal">"application"</code> property</h3>
<pre class="programlisting"> "application" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>Program name for deriving the service type.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--auth-flags"></a><h3>The <code class="literal">"auth-flags"</code> property</h3>
<pre class="programlisting"> "auth-flags" <a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> : Read / Write / Construct</pre>
<p>The authentication settings to use.</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--certificate-file"></a><h3>The <code class="literal">"certificate-file"</code> property</h3>
<pre class="programlisting"> "certificate-file" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>File name for the PEM encoded server certificate.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--collision-handling"></a><h3>The <code class="literal">"collision-handling"</code> property</h3>
<pre class="programlisting"> "collision-handling" <a class="link" href="libepc-1.0-dispatcher.html#EpcCollisionHandling"><span class="type">EpcCollisionHandling</span></a> : Read / Write / Construct</pre>
<p>
The collision handling strategy the publisher uses.
</p>
<p>Default value: EPC_COLLISIONS_CHANGE_NAME</p>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--contents-path"></a><h3>The <code class="literal">"contents-path"</code> property</h3>
<pre class="programlisting"> "contents-path" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>The built-in server path for publishing resources.</p>
<p>Default value: "/contents"</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--private-key-file"></a><h3>The <code class="literal">"private-key-file"</code> property</h3>
<pre class="programlisting"> "private-key-file" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>File name for the PEM encoded private server key.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--protocol"></a><h3>The <code class="literal">"protocol"</code> property</h3>
<pre class="programlisting"> "protocol" <a class="link" href="EpcProtocol.html" title="EpcProtocol"><span class="type">EpcProtocol</span></a> : Read / Write / Construct</pre>
<p>The transport protocol the publisher uses.</p>
<p>Default value: EPC_PROTOCOL_HTTPS</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--service-cookie"></a><h3>The <code class="literal">"service-cookie"</code> property</h3>
<pre class="programlisting"> "service-cookie" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>
Unique identifier of the service. This cookie is used for implementing
<a class="link" href="libepc-1.0-dispatcher.html#EPC-COLLISIONS-UNIQUE-SERVICE:CAPS"><span class="type">EPC_COLLISIONS_UNIQUE_SERVICE</span></a>, and usually is a UUID or the MD5/SHA1/...
checksum of a central document. When passing <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, but using the
<a class="link" href="libepc-1.0-dispatcher.html#EPC-COLLISIONS-UNIQUE-SERVICE:CAPS"><span class="type">EPC_COLLISIONS_UNIQUE_SERVICE</span></a> strategy a time based UUID is
generated and used as service identifier.
</p>
<p>Default value: NULL</p>
<p class="since">Since 0.3.1</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--service-domain"></a><h3>The <code class="literal">"service-domain"</code> property</h3>
<pre class="programlisting"> "service-domain" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>Internet domain for publishing the service.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EpcPublisher--service-name"></a><h3>The <code class="literal">"service-name"</code> property</h3>
<pre class="programlisting"> "service-name" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>User friendly name for the service.</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1">
<a name="libepc-1.0-publisher.see-also"></a><h2>See Also</h2>
<a class="link" href="libepc-1.0-consumer.html#EpcConsumer"><span class="type">EpcConsumer</span></a>, <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>, <a class="link" href="libepc-1.0-publisher.html#EpcContentsHandler" title="EpcContentsHandler ()"><span class="type">EpcContentsHandler</span></a>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18.1</div>
</body>
</html>
|