/usr/share/gir-1.0/GSSDP-1.0.gir is in libgssdp-1.0-dev 0.14.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Soup" version="2.4"/>
<package name="gssdp-1.0"/>
<namespace name="GSSDP"
version="1.0"
shared-library="libgssdp-1.0.so.3"
c:identifier-prefixes="GSSDP"
c:symbol-prefixes="gssdp">
<constant name="ALL_RESOURCES"
value="ssdp:all"
c:type="GSSDP_ALL_RESOURCES">
<doc xml:space="preserve">SSDP search target for finding all possible resources.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Client"
c:symbol-prefix="client"
c:type="GSSDPClient"
parent="GObject.Object"
glib:type-name="GSSDPClient"
glib:get-type="gssdp_client_get_type"
glib:type-struct="ClientClass">
<implements name="Gio.Initable"/>
<constructor name="new" c:identifier="gssdp_client_new" throws="1">
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #GSSDPClient object.</doc>
<type name="Client" c:type="GSSDPClient*"/>
</return-value>
<parameters>
<parameter name="main_context"
transfer-ownership="none"
allow-none="1">
<doc xml:space="preserve">Deprecated: 0.11.2: Always set to NULL. If you want to
specify a context use g_main_context_push_thread_default()</doc>
<type name="GLib.MainContext" c:type="GMainContext*"/>
</parameter>
<parameter name="iface" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">The name of the network interface, or %NULL for auto-detection.</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_port"
c:identifier="gssdp_client_new_with_port"
throws="1">
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #GSSDPClient object.</doc>
<type name="Client" c:type="GSSDPClient*"/>
</return-value>
<parameters>
<parameter name="iface" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">The name of the network interface, or %NULL for
auto-detection.</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="msearch_port" transfer-ownership="none">
<doc xml:space="preserve">The network port to use for M-SEARCH requests or 0 for
random.</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</constructor>
<method name="append_header" c:identifier="gssdp_client_append_header">
<doc xml:space="preserve">Adds a header field to the message sent by this @client. It is intended to
be used by clients requiring vendor specific header fields. (If there is an
existing header with name name , then this creates a second one).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">Header name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">Header value</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="clear_headers" c:identifier="gssdp_client_clear_headers">
<doc xml:space="preserve">Removes all the headers for this @client.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_active" c:identifier="gssdp_client_get_active">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @client is active, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_host_ip" c:identifier="gssdp_client_get_host_ip">
<doc xml:space="preserve">Get the IP address we advertise ourselves as using.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The IP address. This string should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_interface" c:identifier="gssdp_client_get_interface">
<doc xml:space="preserve">Get the name of the network interface associated to @client.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The network interface name. This string should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_main_context"
c:identifier="gssdp_client_get_main_context">
<return-value transfer-ownership="full">
<type name="GLib.MainContext" c:type="GMainContext*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_network" c:identifier="gssdp_client_get_network">
<doc xml:space="preserve">Get the network this client is associated with.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The network identification. This string should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_server_id" c:identifier="gssdp_client_get_server_id">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The server ID.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="remove_header" c:identifier="gssdp_client_remove_header">
<doc xml:space="preserve">Removes @name from the list of headers . If there are multiple values for
@name, they are all removed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">Header name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="set_network" c:identifier="gssdp_client_set_network">
<doc xml:space="preserve">Sets the network identification of @client to @network.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
<parameter name="network" transfer-ownership="none">
<doc xml:space="preserve">The string identifying the network</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="set_server_id" c:identifier="gssdp_client_set_server_id">
<doc xml:space="preserve">Sets the server ID of @client to @server_id.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPClient</doc>
<type name="Client" c:type="GSSDPClient*"/>
</instance-parameter>
<parameter name="server_id" transfer-ownership="none">
<doc xml:space="preserve">The server ID</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<property name="active" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Whether this client is active or not (passive). When active
(default), the client sends messages on the network, otherwise
not. In most cases, you don't want to touch this property.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="host-ip" transfer-ownership="none">
<doc xml:space="preserve">The IP address of the assoicated network interface.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="interface"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The name of the network interface this client is associated with.
Set to NULL to autodetect.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="main-context"
introspectable="0"
deprecated="1"
deprecated-version="0.11.2"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #GMainContext to use. Set to NULL to use the default.</doc>
<doc-deprecated xml:space="preserve">Use g_main_context_push_thread_default().</doc-deprecated>
<type name="gpointer" c:type="gpointer"/>
</property>
<property name="msearch-port"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">UDP port to use for sending multicast M-SEARCH requests on the
network. If not set (or set to 0) a random port will be used.
This property can be only set during object construction.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="network"
writable="1"
construct="1"
transfer-ownership="none">
<doc xml:space="preserve">The network this client is currently connected to. You could set this
to anything you want to identify the network this client is
associated with. If you are using #GUPnPContextManager and associated
interface is a WiFi interface, this property is set to the ESSID of
the network. Otherwise, expect this to be the network IP address by
default.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="server-id" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The SSDP server's identifier.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="socket-ttl"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">Time-to-live value to use for all sockets created by this client.
If not set (or set to 0) the value recommended by UPnP will be used.
This property can only be set during object construction.</doc>
<type name="guint" c:type="guint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ClientPrivate" c:type="GSSDPClientPrivate*"/>
</field>
<glib:signal name="message-received"
when="last"
introspectable="0"
stability="Private">
<doc xml:space="preserve">Internal signal.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="from_ip" transfer-ownership="none">
<doc xml:space="preserve">The IP address of the source.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="from_port" transfer-ownership="none">
<doc xml:space="preserve">The UDP port used by the sender.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">The #_GSSDPMessageType.</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="headers" transfer-ownership="none">
<doc xml:space="preserve">Parsed #SoupMessageHeaders from the message.</doc>
<type name="Soup.MessageHeaders" c:type="gpointer"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ClientClass"
c:type="GSSDPClientClass"
glib:is-gtype-struct-for="Client">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="_gssdp_reserved1" introspectable="0">
<callback name="_gssdp_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved2" introspectable="0">
<callback name="_gssdp_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved3" introspectable="0">
<callback name="_gssdp_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved4" introspectable="0">
<callback name="_gssdp_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ClientPrivate" c:type="GSSDPClientPrivate" disguised="1">
</record>
<enumeration name="Error"
c:type="GSSDPError"
glib:error-domain="gssdp-error">
<member name="no_ip_address"
value="0"
c:identifier="GSSDP_ERROR_NO_IP_ADDRESS">
<doc xml:space="preserve">GSSDP could not find a valid IP address of a
#GSSDPClient.</doc>
</member>
<member name="failed" value="1" c:identifier="GSSDP_ERROR_FAILED">
<doc xml:space="preserve">Unknown error.</doc>
</member>
</enumeration>
<class name="ResourceBrowser"
c:symbol-prefix="resource_browser"
c:type="GSSDPResourceBrowser"
parent="GObject.Object"
glib:type-name="GSSDPResourceBrowser"
glib:get-type="gssdp_resource_browser_get_type"
glib:type-struct="ResourceBrowserClass">
<constructor name="new" c:identifier="gssdp_resource_browser_new">
<doc xml:space="preserve">@target is a generic string the resource browser listens for on the SSDP
bus. There are several possible targets such as
<itemizedlist>
<listitem><para>"ssdp:all" for everything</para></listitem>
<listitem><para>
"upnp:rootdevice" for UPnP device entry points, not caring about the
device type</para></listitem>
<listitem><para>The UUID of a specific device</para></listitem>
<listitem><para>Device types such as
"urn:schemas-upnp-org:device:MediaServer:1"</para></listitem>
<listitem><para>Service types such as
"urn:schemas-upnp-org:service:ContentDirectory:1"</para></listitem>
</itemizedlist></doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #GSSDPResourceBrowser object.</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</return-value>
<parameters>
<parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient to associate with</doc>
<type name="Client" c:type="GSSDPClient*"/>
</parameter>
<parameter name="target" transfer-ownership="none">
<doc xml:space="preserve">A SSDP search target</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="resource_available" introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
<parameter name="usn" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="locations" transfer-ownership="none">
<type name="GLib.List" c:type="const GList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="resource_unavailable">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
<parameter name="usn" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</virtual-method>
<method name="get_active"
c:identifier="gssdp_resource_browser_get_active">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @resource_browser is active.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_client"
c:identifier="gssdp_resource_browser_get_client">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient @resource_browser is associated with.</doc>
<type name="Client" c:type="GSSDPClient*"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_mx" c:identifier="gssdp_resource_browser_get_mx">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The used MX value.</doc>
<type name="gushort" c:type="gushort"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_target"
c:identifier="gssdp_resource_browser_get_target">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The browser target.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
</parameters>
</method>
<method name="rescan" c:identifier="gssdp_resource_browser_rescan">
<doc xml:space="preserve">Begins discovery if @resource_browser is active and no discovery is
performed. Otherwise does nothing.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if rescaning has been started.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_active"
c:identifier="gssdp_resource_browser_set_active">
<doc xml:space="preserve">(De)activates @resource_browser.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
<parameter name="active" transfer-ownership="none">
<doc xml:space="preserve">%TRUE to activate @resource_browser</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_mx" c:identifier="gssdp_resource_browser_set_mx">
<doc xml:space="preserve">Sets the used MX value of @resource_browser to @mx.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
<parameter name="mx" transfer-ownership="none">
<doc xml:space="preserve">The to be used MX value</doc>
<type name="gushort" c:type="gushort"/>
</parameter>
</parameters>
</method>
<method name="set_target"
c:identifier="gssdp_resource_browser_set_target">
<doc xml:space="preserve">Sets the browser target of @resource_browser to @target.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_browser"
transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceBrowser</doc>
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</instance-parameter>
<parameter name="target" transfer-ownership="none">
<doc xml:space="preserve">The browser target</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<property name="active" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Whether this browser is active or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="client"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient to use.</doc>
<type name="Client"/>
</property>
<property name="mx" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The maximum number of seconds in which to request other parties
to respond.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="target" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The discovery target.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ResourceBrowserPrivate"
c:type="GSSDPResourceBrowserPrivate*"/>
</field>
<glib:signal name="resource-available" when="last">
<doc xml:space="preserve">The ::resource-available signal is emitted whenever a new resource
has become available.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="usn" transfer-ownership="none">
<doc xml:space="preserve">The USN of the discovered resource</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="locations" transfer-ownership="none">
<doc xml:space="preserve">A #GList of strings describing the locations of the
discovered resource.</doc>
<type name="GLib.List" c:type="gpointer">
<type name="utf8"/>
</type>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="resource-unavailable" when="last">
<doc xml:space="preserve">The ::resource-unavailable signal is emitted whenever a resource
is not available any more.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="usn" transfer-ownership="none">
<doc xml:space="preserve">The USN of the resource</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ResourceBrowserClass"
c:type="GSSDPResourceBrowserClass"
glib:is-gtype-struct-for="ResourceBrowser">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="resource_available" introspectable="0">
<callback name="resource_available" introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="resource_browser" transfer-ownership="none">
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</parameter>
<parameter name="usn" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="locations" transfer-ownership="none">
<type name="GLib.List" c:type="const GList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</callback>
</field>
<field name="resource_unavailable">
<callback name="resource_unavailable">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="resource_browser" transfer-ownership="none">
<type name="ResourceBrowser" c:type="GSSDPResourceBrowser*"/>
</parameter>
<parameter name="usn" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_gssdp_reserved1" introspectable="0">
<callback name="_gssdp_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved2" introspectable="0">
<callback name="_gssdp_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved3" introspectable="0">
<callback name="_gssdp_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved4" introspectable="0">
<callback name="_gssdp_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ResourceBrowserPrivate"
c:type="GSSDPResourceBrowserPrivate"
disguised="1">
</record>
<class name="ResourceGroup"
c:symbol-prefix="resource_group"
c:type="GSSDPResourceGroup"
parent="GObject.Object"
glib:type-name="GSSDPResourceGroup"
glib:get-type="gssdp_resource_group_get_type"
glib:type-struct="ResourceGroupClass">
<constructor name="new" c:identifier="gssdp_resource_group_new">
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #GSSDPResourceGroup object.</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</return-value>
<parameters>
<parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient to associate with</doc>
<type name="Client" c:type="GSSDPClient*"/>
</parameter>
</parameters>
</constructor>
<method name="add_resource"
c:identifier="gssdp_resource_group_add_resource">
<doc xml:space="preserve">Adds a resource with target @target, USN @usn, and locations @locations
to @resource_group.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The ID of the added resource.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="target" transfer-ownership="none">
<doc xml:space="preserve">The resource's target</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="usn" transfer-ownership="none">
<doc xml:space="preserve">The resource's USN</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="locations" transfer-ownership="none">
<doc xml:space="preserve">A #GList of the resource's locations</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</parameter>
</parameters>
</method>
<method name="add_resource_simple"
c:identifier="gssdp_resource_group_add_resource_simple">
<doc xml:space="preserve">Adds a resource with target @target, USN @usn, and location @location
to @resource_group.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The ID of the added resource.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="target" transfer-ownership="none">
<doc xml:space="preserve">The resource's target</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="usn" transfer-ownership="none">
<doc xml:space="preserve">The resource's USN</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="location" transfer-ownership="none">
<doc xml:space="preserve">The resource's location</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="get_available"
c:identifier="gssdp_resource_group_get_available">
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if @resource_group is available (advertised).</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_client" c:identifier="gssdp_resource_group_get_client">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient @resource_group is associated with.</doc>
<type name="Client" c:type="GSSDPClient*"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_max_age"
c:identifier="gssdp_resource_group_get_max_age">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The number of seconds advertisements are valid.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_message_delay"
c:identifier="gssdp_resource_group_get_message_delay">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the minimum time between each SSDP message in ms.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
</parameters>
</method>
<method name="remove_resource"
c:identifier="gssdp_resource_group_remove_resource">
<doc xml:space="preserve">Removes the resource with ID @resource_id from @resource_group.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="resource_id" transfer-ownership="none">
<doc xml:space="preserve">The ID of the resource to remove</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="set_available"
c:identifier="gssdp_resource_group_set_available">
<doc xml:space="preserve">Sets @resource_group<!-- -->s availability to @available. Changing
@resource_group<!-- -->s availability causes it to announce its new state
to listening SSDP clients.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="available" transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @resource_group should be available (advertised)</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_max_age"
c:identifier="gssdp_resource_group_set_max_age">
<doc xml:space="preserve">Sets the number of seconds advertisements are valid to @max_age.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="max_age" transfer-ownership="none">
<doc xml:space="preserve">The number of seconds advertisements are valid</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="set_message_delay"
c:identifier="gssdp_resource_group_set_message_delay">
<doc xml:space="preserve">Sets the minimum time between each SSDP message.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="resource_group" transfer-ownership="none">
<doc xml:space="preserve">A #GSSDPResourceGroup</doc>
<type name="ResourceGroup" c:type="GSSDPResourceGroup*"/>
</instance-parameter>
<parameter name="message_delay" transfer-ownership="none">
<doc xml:space="preserve">The message delay in ms.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<property name="available" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Whether this group of resources is available or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="client"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #GSSDPClient to use.</doc>
<type name="Client"/>
</property>
<property name="max-age" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The number of seconds our advertisements are valid.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="message-delay" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The minimum number of milliseconds between SSDP messages.
The default is 120 based on DLNA specification.</doc>
<type name="guint" c:type="guint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ResourceGroupPrivate" c:type="GSSDPResourceGroupPrivate*"/>
</field>
</class>
<record name="ResourceGroupClass"
c:type="GSSDPResourceGroupClass"
glib:is-gtype-struct-for="ResourceGroup">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="_gssdp_reserved1" introspectable="0">
<callback name="_gssdp_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved2" introspectable="0">
<callback name="_gssdp_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved3" introspectable="0">
<callback name="_gssdp_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gssdp_reserved4" introspectable="0">
<callback name="_gssdp_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ResourceGroupPrivate"
c:type="GSSDPResourceGroupPrivate"
disguised="1">
</record>
<function name="error_quark" c:identifier="gssdp_error_quark">
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GQuark uniquely used by GSSDP's errors.</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</namespace>
</repository>
|