Gir_Gst.toml 18.4 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1 2 3 4
[options]
girs_dir = "gir-files"
library = "Gst"
version = "1.0"
5
min_cfg_version = "1.8"
Sebastian Dröge's avatar
Sebastian Dröge committed
6 7
target_path = "gstreamer"
work_mode = "normal"
8
concurrency = "send+sync"
9
generate_safety_asserts = true
Sebastian Dröge's avatar
Sebastian Dröge committed
10 11 12 13 14 15 16

external_libraries = [
    "GLib",
    "GObject",
]

generate = [
17
    "Gst.ClockTimeDiff",
Sebastian Dröge's avatar
Sebastian Dröge committed
18 19 20 21 22 23
    "Gst.Pipeline",
    "Gst.State",
    "Gst.StateChange",
    "Gst.SeekFlags",
    "Gst.SeekType",
    "Gst.PadDirection",
Sebastian Dröge's avatar
Sebastian Dröge committed
24
    "Gst.PadPresence",
Sebastian Dröge's avatar
Sebastian Dröge committed
25 26 27 28
    "Gst.URIHandler",
    "Gst.URIType",
    "Gst.ElementFactoryListType",
    "Gst.Format",
29 30 31 32 33 34 35 36
    "Gst.BufferingMode",
    "Gst.CoreError",
    "Gst.ResourceError",
    "Gst.LibraryError",
    "Gst.StreamError",
    "Gst.PluginError",
    "Gst.ParseError",
    "Gst.URIError",
37 38 39 40
    "Gst.StructureChangeType",
    "Gst.StreamStatusType",
    "Gst.StreamType",
    "Gst.StreamFlags",
41
    "Gst.ProgressType",
42
    "Gst.BusSyncReply",
Sebastian Dröge's avatar
Sebastian Dröge committed
43
    "Gst.TagMergeMode",
44 45
    "Gst.PadProbeType",
    "Gst.PadProbeReturn",
46
    "Gst.CapsIntersectMode",
47
    "Gst.BufferFlags",
48
    "Gst.BufferCopyFlags",
49
    "Gst.SegmentFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
50 51
    "Gst.PadMode",
    "Gst.SchedulingFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
52
    "Gst.ChildProxy",
53 54
    "Gst.Preset",
    "Gst.TagSetter",
Sebastian Dröge's avatar
Sebastian Dröge committed
55
    "Gst.QOSType",
56
    "Gst.EventType",
57 58 59 60
    "Gst.TocScope",
    "Gst.TocEntryType",
    "Gst.TocLoopType",
    "Gst.TocSetter",
61
    "Gst.ClockType",
62
    "Gst.ElementFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
63
    "Gst.Rank",
Sebastian Dröge's avatar
Sebastian Dröge committed
64
    "Gst.PadLinkCheck",
Sebastian Dröge's avatar
Sebastian Dröge committed
65
    "Gst.DebugLevel",
66
    "Gst.DebugColorFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
67 68
    "Gst.StackTraceFlags",
    "Gst.DebugGraphDetails",
69
    "Gst.ParseFlags",
70
    "Gst.TaskState",
71
    "Gst.PluginDependencyFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
72 73 74 75
]

manual = [
    "GLib.Error",
76
    "GLib.Source",
77
    "GLib.DateTime",
Sebastian Dröge's avatar
Sebastian Dröge committed
78
    "GObject.Object",
79
    "Gst.Segment",
80 81
    "Gst.StaticCaps",
    "Gst.StaticPadTemplate",
Sebastian Dröge's avatar
Sebastian Dröge committed
82
]
83

84 85 86 87 88
[[object]]
name = "Gst.ClockTime"
status = "manual"
conversion_type = "scalar"

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
[[object]]
name = "Gst.Bin"
status = "generate"
    [[object.function]]
    name = "add"
        [object.function.return]
        bool_return_is_error = "Failed to add element"

    [[object.function]]
    name = "remove"
        [object.function.return]
        bool_return_is_error = "Failed to remove element"

    [[object.function]]
    name = "recalculate_latency"
        [object.function.return]
        bool_return_is_error = "Failed to recalculate latency"

    [[object.function]]
    name = "sync_children_states"
        [object.function.return]
        bool_return_is_error = "Failed to sync children states"

[[object]]
name = "Gst.Bus"
status = "generate"
115
trait = false
116 117 118 119 120
    [[object.function]]
    name = "remove_watch"
    # Needs manual bindings and GSource support in glib-rs
    ignore = true

121 122 123 124 125
    [[object.function]]
    name = "add_signal_watch_full"
    # Priority
    ignore = true

126 127 128 129 130 131 132 133 134 135 136 137 138
    [[object.function]]
    name = "timed_pop_filtered"
    # Uses enum as flags
    ignore = true
    [[object.function]]
    name = "pop_filtered"
    # Uses enum as flags
    ignore = true
    [[object.function]]
    name = "poll"
    # Uses enum as flags
    ignore = true

139 140 141 142 143
    [[object.function]]
    name = "create_watch"
    # More convenient manual implementation
    ignore = true

144 145 146 147
    [[object.signal]]
    name = "message"
    concurrency = "send"

148 149 150 151 152 153

[[object]]
name = "Gst.Structure"
status = "manual"
ref_mode = "ref-mut"

154 155 156 157 158
[[object]]
name = "Gst.ParseContext"
status = "manual"
ref_mode = "ref-mut"

Sebastian Dröge's avatar
Sebastian Dröge committed
159 160 161 162 163
[[object]]
name = "Gst.Caps"
status = "manual"
ref_mode = "ref"

164 165 166 167 168
[[object]]
name = "Gst.Buffer"
status = "manual"
ref_mode = "ref"

169 170 171 172 173 174 175 176 177 178
[[object]]
name = "Gst.BufferList"
status = "manual"
ref_mode = "ref"

[[object]]
name = "Gst.Sample"
status = "manual"
ref_mode = "ref"

179 180 181 182 183
[[object]]
name = "Gst.Message"
status = "manual"
ref_mode = "ref"

184 185 186 187 188
[[object]]
name = "Gst.Event"
status = "manual"
ref_mode = "ref"

189 190 191 192 193
[[object]]
name = "Gst.TagList"
status = "manual"
ref_mode = "ref"

194 195 196 197 198
[[object]]
name = "Gst.Query"
status = "manual"
ref_mode = "ref"

199 200 201 202 203
[[object]]
name = "Gst.Context"
status = "manual"
ref_mode = "ref"

204 205 206 207 208
[[object]]
name = "Gst.Toc"
status = "manual"
ref_mode = "ref"

209 210 211 212 213
[[object]]
name = "Gst.TocEntry"
status = "manual"
ref_mode = "ref"

Sebastian Dröge's avatar
Sebastian Dröge committed
214 215 216 217 218
[[object]]
name = "Gst.DateTime"
status = "generate"
concurrency = "send"

219 220 221 222 223 224 225 226 227 228 229 230 231
[[object]]
name = "Gst.Clock"
status = "generate"
    [[object.function]]
    name = "set_master"
        [object.function.return]
        bool_return_is_error = "Failed to set master clock"

    [[object.function]]
    name = "wait_for_sync"
        [object.function.return]
        bool_return_is_error = "Timed out waiting for sync"

232 233 234 235 236 237 238 239
[[object]]
name = "Gst.SystemClock"
status = "generate"
    [[object.function]]
    name = "obtain"
        [object.function.return]
        nullable = false

240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
[[object]]
name = "Gst.Element"
status = "generate"
    [[object.function]]
    name = "add_pad"
        [object.function.return]
        bool_return_is_error = "Failed to add pad"

    [[object.function]]
    name = "remove_pad"
        [object.function.return]
        bool_return_is_error = "Failed to remove pad"

    [[object.function]]
    name = "link"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

Sebastian Dröge's avatar
Sebastian Dröge committed
258 259 260 261 262
    [[object.function]]
    name = "link_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

263 264 265 266 267
    [[object.function]]
    name = "link_pads"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

Sebastian Dröge's avatar
Sebastian Dröge committed
268 269 270 271 272
    [[object.function]]
    name = "link_pads_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
    [[object.function]]
    name = "seek"
        [object.function.return]
        bool_return_is_error = "Failed to seek"

    [[object.function]]
    name = "seek_simple"
        [object.function.return]
        bool_return_is_error = "Failed to seek"

    [[object.function]]
    name = "set_clock"
        [object.function.return]
        bool_return_is_error = "Failed to set clock"

    [[object.function]]
    name = "sync_state_with_parent"
        [object.function.return]
        bool_return_is_error = "Failed to sync state with parent"

293 294 295 296 297
    [[object.function]]
    name = "query"
    # correct mutability
    ignore = true

298 299 300 301 302
    [[object.function]]
    name = "send_event"
    # Pass by value
    ignore = true

303 304 305 306 307
    [[object.function]]
    name = "get_context_unlocked"
    # Unsafe
    ignore = true

308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
    [[object.function]]
    name = "add_property_deep_notify_watch"
    # ulong
    ignore = true

    [[object.function]]
    name = "add_property_notify_watch"
    # ulong
    ignore = true

    [[object.function]]
    name = "remove_property_notify_watch"
    # ulong
    ignore = true

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
    [[object.function]]
    name = "query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_convert"
    # formatted value
    ignore = true

    [[object.function]]
    name = "seek"
    # formatted value
    ignore = true

    [[object.function]]
    name = "seek_simple"
    # formatted value
    ignore = true

348 349 350 351 352 353 354 355 356 357
    [[object.function]]
    name = "state_change_return_get_name"
    # Wrong place
    ignore = true

    [[object.function]]
    name = "state_get_name"
    # Wrong place
    ignore = true

358 359 360 361 362
[[object]]
name = "Gst.ElementFactory"
status = "generate"
trait = false

363 364 365 366 367
[[object]]
name = "Gst.DeviceProviderFactory"
status = "generate"
trait = false

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
[[object]]
name = "Gst.DeviceProvider"
status = "generate"
    [[object.function]]
    name = "get_bus"
        [object.function.return]
        nullable = false

[[object]]
name = "Gst.DeviceMonitor"
status = "generate"
    [[object.function]]
    name = "get_bus"
        [object.function.return]
        nullable = false

[[object]]
name = "Gst.Device"
status = "generate"
    [[object.function]]
    name = "get_display_name"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_device_class"
        [object.function.return]
        nullable = false

397 398
[[object]]
name = "Gst.Object"
399
# For renaming the trait...
400 401
status = "generate"
trait_name = "GstObjectExt"
402 403 404 405 406
    [[object.function]]
    name = "set_name"
        [object.function.return]
        bool_return_is_error = "Failed to set object name"

407 408 409 410 411 412 413 414 415 416
    [[object.function]]
    name = "get_name"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_path_string"
        [object.function.return]
        nullable = false

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
    [[object.function]]
    name = "set_parent"
        [object.function.return]
        bool_return_is_error = "Failed to set parent object"

    [[object.function]]
    name = "sync_values"
        [object.function.return]
        bool_return_is_error = "Failed to sync values"

[[object]]
name = "Gst.Pad"
status = "generate"
    [[object.function]]
    name = "link_maybe_ghosting"
        [object.function.return]
        bool_return_is_error = "Failed to link pad, possibly ghosting"

    [[object.function]]
    name = "unlink"
        [object.function.return]
        bool_return_is_error = "Failed to unlink pad"

    [[object.function]]
    name = "pause_task"
        [object.function.return]
        bool_return_is_error = "Failed to pause pad task"

    [[object.function]]
    name = "stop_task"
        [object.function.return]
        bool_return_is_error = "Failed to stop pad task"

    [[object.function]]
    name = "set_active"
        [object.function.return]
        bool_return_is_error = "Failed to activate pad"

Sebastian Dröge's avatar
Sebastian Dröge committed
455 456 457 458 459
    [[object.function]]
    name = "activate_mode"
        [object.function.return]
        bool_return_is_error = "Failed to activate mode pad"

460 461 462 463 464
    [[object.function]]
    name = "remove_probe"
    # Don't use a ulong
    ignore = true

465 466 467 468 469 470 471 472 473 474
    [[object.function]]
    name = "chain"
    # Move buffer
    ignore = true

    [[object.function]]
    name = "push"
    # Move buffer
    ignore = true

475 476 477 478 479 480 481 482 483 484
    [[object.function]]
    name = "chain_list"
    # Move buffer
    ignore = true

    [[object.function]]
    name = "push_list"
    # Move buffer
    ignore = true

485 486 487 488 489 490 491 492 493 494
    [[object.function]]
    name = "pull_range"
    # Buffer can be NULL
    ignore = true

    [[object.function]]
    name = "get_range"
    # Buffer can be NULL
    ignore = true

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
    [[object.function]]
    name = "query"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "peer_query"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "query_default"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "proxy_query_caps"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "proxy_query_accept_caps"
    # Correct mutability
    ignore = true

520 521 522 523 524 525 526 527 528 529 530 531 532 533 534
    [[object.function]]
    name = "event_default"
    # Pass by value
    ignore = true

    [[object.function]]
    name = "push_event"
    # Pass by value
    ignore = true

    [[object.function]]
    name = "send_event"
    # Pass by value
    ignore = true

535 536 537 538 539
    [[object.function]]
    name = "new_from_static_template"
    # Correct mutability
    ignore = true

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
    [[object.function]]
    name = "query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_convert"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_convert"
    # formatted value
    ignore = true

570 571 572 573 574
    [[object.function]]
    name = "link_get_name"
    # Wrong place
    ignore = true

575 576 577 578 579
[[object]]
name = "Gst.PadTemplate"
status = "generate"
trait = false

Sebastian Dröge's avatar
Sebastian Dröge committed
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
[[object]]
name = "Gst.GhostPad"
status = "generate"
    [[object.function]]
    name = "set_target"
        [object.function.return]
        bool_return_is_error = "Failed to set target"

    [[object.function]]
    name = "new"
    ignore = true

    [[object.function]]
    name = "new_from_template"
    ignore = true

    [[object.function]]
    name = "construct"
    ignore = true

600 601 602 603 604 605 606 607 608 609
    [[object.function]]
    name = "activate_mode_default"
    # wrong instance type
    ignore = true

    [[object.function]]
    name = "internal_activate_mode_default"
    # wrong instance type
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
610 611 612 613 614 615 616 617 618
[[object]]
name = "Gst.ProxyPad"
status = "generate"

    [[object.function]]
    name = "chain_default"
    # Buffer move
    ignore = true

619 620 621 622 623
    [[object.function]]
    name = "chain_list_default"
    # Buffer move
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
624 625 626 627 628
    [[object.function]]
    name = "getrange_default"
    # Buffer move
    ignore = true

629 630 631
[[object]]
name = "Gst.Stream"
status = "generate"
632
trait = false
633

634 635 636
[[object]]
name = "Gst.StreamCollection"
status = "generate"
637
trait = false
638

639 640 641 642 643
[[object]]
name = "Gst.Plugin"
status = "generate"
trait = false

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
    [[object.function]]
    name = "list_free"
    # useless and unsafe
    ignore = true

    [[object.function]]
    name = "set_cache_data"
    # pass by value
    ignore = true

    [[object.function]]
    name = "get_cache_data"
    # structure ref
    ignore = true

    [[object.function]]
    name = "get_description"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_name"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_license"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_origin"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_package"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_source"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_version"
        [object.function.return]
        nullable = false

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
[[object]]
name = "Gst.PluginFeature"
status = "generate"
    [[object.function]]
    pattern = "list_.*"
    ignore = true

    [[object.function]]
    name = "rank_compare_func"
    ignore = true

[[object]]
name = "Gst.Registry"
status = "generate"
trait = false

    [[object.function]]
    pattern = "fork_.*"
    ignore = true

    [[object.function]]
    name = "get"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "add_feature"
        [object.function.return]
        bool_return_is_error = "Failed to add feature"

    [[object.function]]
    name = "add_plugin"
        [object.function.return]
        bool_return_is_error = "Failed to add plugin"

729 730 731 732 733 734 735 736 737 738 739
[[object]]
name = "Gst.*"
status = "generate"
    [[object.function]]
    name = "update_registry"
        [object.function.return]
        bool_return_is_error = "Failed to update registry"

    [[object.function]]
    name = "util_dump_mem"
    ignore = true
740 741 742 743 744 745

    [[object.function]]
    name = "protection_select_system"
    # unsupported array type
    ignore = true

746 747 748 749
    [[object.function]]
    name = "calculate_linear_regression"
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
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
    [[object.function]]
    pattern = "value_.*"
    ignore = true

    [[object.function]]
    pattern = ".*_get_type"
    ignore = true

    [[object.function]]
    pattern = "tag_.*"
    ignore = true

    [[object.function]]
    pattern = "segtrap_.*"
    ignore = true

    [[object.function]]
    pattern = "util_[g]?double_.*"
    ignore = true

    [[object.function]]
    pattern = "util_fraction_.*"
    ignore = true

    [[object.function]]
    pattern = "util_greatest_.*"
    ignore = true

    [[object.function]]
    pattern = "util_[g]?uint64.*"
    ignore = true

    [[object.function]]
    name = "deinit"
    ignore = true

    [[object.function]]
    name = "util_set_object_arg"
    ignore = true

    [[object.function]]
    name = "util_seqnum_compare"
    ignore = true

    [[object.function]]
    name = "dynamic_type_register"
    ignore = true

    [[object.function]]
    name = "flow_get_name"
    ignore = true

    [[object.function]]
    name = "filename_to_uri"
    ignore = true

    [[object.function]]
    name = "is_initialized"
    ignore = true

    [[object.function]]
    name = "debug_add_log_function"
    ignore = true

    [[object.function]]
    name = "debug_remove_log_function"
    ignore = true

    [[object.function]]
    name = "debug_remove_log_function_by_data"
    ignore = true

    [[object.function]]
    name = "debug_construct_term_color"
    ignore = true

    [[object.function]]
    name = "debug_construct_win_color"
    ignore = true

    [[object.function]]
    name = "debug_get_all_categories"
    ignore = true

    [[object.function]]
    name = "debug_get_color_mode"
    ignore = true

    [[object.function]]
    pattern = "debug_log.*"
    ignore = true

    [[object.function]]
    name = "debug_set_color_mode"
    ignore = true

    [[object.function]]
    name = "debug_set_color_mode_from_string"
    ignore = true

    [[object.function]]
    name = "error_get_message"
    ignore = true

    [[object.function]]
    name = "flow_to_quark"
    ignore = true

    [[object.function]]
    name = "formats_contains"
    ignore = true

    [[object.function]]
    pattern = "info_.*"
    ignore = true

    [[object.function]]
    pattern = "print.*"
    ignore = true

    [[object.function]]
    pattern = "init.*"
    ignore = true

    [[object.function]]
    pattern = "param_spec_.*"
    ignore = true

    [[object.function]]
    name = "is_caps_features"
    ignore = true

    [[object.function]]
    name = "make_element_message_details"
    ignore = true

    [[object.function]]
    name = "util_array_binary_search"
    ignore = true

    [[object.function]]
    name = "util_get_object_array"
    ignore = true

    [[object.function]]
    name = "util_set_object_array"
    ignore = true

    [[object.function]]
    name = "util_set_value_from_string"
    ignore = true
901 902 903 904 905

    [[object.function]]
    pattern = "parse.*full"
    # wrong mutable for context parameter
    ignore = true
906

907 908 909 910 911 912 913 914 915 916
    [[object.function]]
    name = "util_group_id_next"
    # newtype wrapper
    ignore = true

    [[object.function]]
    name = "util_seqnum_next"
    # newtype wrapper
    ignore = true

917 918 919 920 921 922 923 924 925 926
    [[object.function]]
    name = "debug_bin_to_dot_data"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "version_string"
        [object.function.return]
        nullable = false

927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945
[[object]]
name = "Gst.StateChangeReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.FlowReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.PadLinkReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.ClockReturn"
status = "generate"
must_use = true