/usr/share/gir-1.0/Secret-1.gir is in libsecret-1-dev 0.16-0ubuntu1.
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 | <?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"/>
<package name="libsecret-1"/>
<c:include name="libsecret/secret.h"/>
<namespace name="Secret"
version="1"
shared-library="libsecret-1.so.0"
c:identifier-prefixes="Secret"
c:symbol-prefixes="secret">
<constant name="COLLECTION_DEFAULT"
value="default"
c:type="SECRET_COLLECTION_DEFAULT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="COLLECTION_SESSION"
value="session"
c:type="SECRET_COLLECTION_SESSION">
<type name="utf8" c:type="gchar*"/>
</constant>
<enumeration name="Error" c:type="SecretError">
<member name="protocol" value="1" c:identifier="SECRET_ERROR_PROTOCOL">
</member>
<member name="is_locked" value="2" c:identifier="SECRET_ERROR_IS_LOCKED">
</member>
<member name="no_such_object"
value="3"
c:identifier="SECRET_ERROR_NO_SUCH_OBJECT">
</member>
<member name="already_exists"
value="4"
c:identifier="SECRET_ERROR_ALREADY_EXISTS">
</member>
</enumeration>
<record name="Schema"
c:type="SecretSchema"
stability="Stable"
glib:type-name="SecretSchema"
glib:get-type="secret_schema_get_type"
c:symbol-prefix="schema">
<doc xml:space="preserve">Represents a set of attributes that are stored with an item. These schemas
are used for interoperability between various services storing the same types
of items.
Each schema has a name like "org.gnome.keyring.NetworkPassword", and defines
a set of attributes, and types (string, integer, boolean) for those attributes.
Attributes are stored as strings in the Secret Service, and the attribute
types simply define standard ways to store integer and boolean values as strings.
Attributes are represented in libsecret via a #GHashTable with string keys and
values. Even for values that defined as an integer or boolean in the schema,
the attribute values in the #GHashTable are strings. Boolean values are stored
as the strings 'true' and 'false'. Integer values are stored in decimal, with
a preceeding negative sign for negative integers.
Schemas are handled entirely on the client side by this library. The name of the
schema is automatically stored as an attribute on the item.
Normally when looking up passwords only those with matching schema names are
returned. If the schema @flags contain the %SECRET_SCHEMA_DONT_MATCH_NAME flag,
then lookups will not check that the schema name matches that on the item, only
the schema's attributes are matched. This is useful when you are looking up items
that are not stored by the libsecret library. Other libraries such as libgnome-keyring
don't store the schema name.</doc>
<field name="name" writable="1">
<doc xml:space="preserve">the dotted name of the schema</doc>
<type name="utf8" c:type="const gchar*"/>
</field>
<field name="flags" writable="1">
<doc xml:space="preserve">flags for the schema</doc>
<type name="SchemaFlags" c:type="SecretSchemaFlags"/>
</field>
<field name="attributes" writable="1">
<doc xml:space="preserve">the attribute names and types of those attributes</doc>
<array zero-terminated="0"
c:type="SecretSchemaAttribute"
fixed-size="32">
<type name="SchemaAttribute" c:type="SecretSchemaAttribute"/>
</array>
</field>
<field name="reserved" readable="0" private="1">
<type name="gint" c:type="gint"/>
</field>
<field name="reserved1" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved2" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved3" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved4" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved5" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved6" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved7" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<constructor name="new"
c:identifier="secret_schema_new"
shadowed-by="newv"
introspectable="0">
<doc xml:space="preserve">Using this function is not normally necessary from C code.
A schema represents a set of attributes that are stored with an item. These
schemas are used for interoperability between various services storing the
same types of items.
Each schema has an @name like "org.gnome.keyring.NetworkPassword", and
defines a set of attributes names, and types (string, integer, boolean) for
those attributes.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) integers from the
#SecretSchemaAttributeType enumeration, representing the attribute type for
each attribute name. The list of attribtues should be terminated with a %NULL.
Normally when looking up passwords only those with matching schema names are
returned. If the schema @flags contain the %SECRET_SCHEMA_DONT_MATCH_NAME flag,
then lookups will not check that the schema name matches that on the item, only
the schema's attributes are matched. This is useful when you are looking up items
that are not stored by the libsecret library. Other libraries such as libgnome-keyring
don't store the schema name.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the new schema, which should be unreferenced with
secret_schema_unref() when done</doc>
<type name="Schema" c:type="SecretSchema*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">the dotted name of the schema</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">the flags for the schema</doc>
<type name="SchemaFlags" c:type="SecretSchemaFlags"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute names and types, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</constructor>
<constructor name="newv" c:identifier="secret_schema_newv" shadows="new">
<doc xml:space="preserve">Using this function is not normally necessary from C code. This is useful
for constructing #SecretSchema structures in bindings.
A schema represents a set of attributes that are stored with an item. These
schemas are used for interoperability between various services storing the
same types of items.
Each schema has an @name like "org.gnome.keyring.NetworkPassword", and
defines a set of attributes names, and types (string, integer, boolean) for
those attributes.
Each key in the @attributes table should be a attribute name strings, and
the values in the table should be integers from the #SecretSchemaAttributeType
enumeration, representing the attribute type for each attribute name.
Normally when looking up passwords only those with matching schema names are
returned. If the schema @flags contain the %SECRET_SCHEMA_DONT_MATCH_NAME flag,
then lookups will not check that the schema name matches that on the item, only
the schema's attributes are matched. This is useful when you are looking up items
that are not stored by the libsecret library. Other libraries such as libgnome-keyring
don't store the schema name.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the new schema, which should be unreferenced with
secret_schema_unref() when done</doc>
<type name="Schema" c:type="SecretSchema*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">the dotted name of the schema</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">the flags for the schema</doc>
<type name="SchemaFlags" c:type="SecretSchemaFlags"/>
</parameter>
<parameter name="attribute_names_and_types"
transfer-ownership="none">
<doc xml:space="preserve">the attribute names and types of those attributes</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="SchemaAttributeType"/>
</type>
</parameter>
</parameters>
</constructor>
<method name="ref" c:identifier="secret_schema_ref">
<doc xml:space="preserve">Adds a reference to the #SecretSchema.
It is not normally necessary to call this function from C code, and is
mainly present for the sake of bindings. If the @schema was statically
allocated, then this function will copy the schema.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the referenced schema, which should be later
unreferenced with secret_schema_unref()</doc>
<type name="Schema" c:type="SecretSchema*"/>
</return-value>
<parameters>
<instance-parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema to reference</doc>
<type name="Schema" c:type="SecretSchema*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="secret_schema_unref">
<doc xml:space="preserve">Releases a reference to the #SecretSchema. If the last reference is
released then the schema will be freed.
It is not normally necessary to call this function from C code, and is
mainly present for the sake of bindings. It is an error to call this for
a @schema that was statically allocated.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema to reference</doc>
<type name="Schema" c:type="SecretSchema*"/>
</instance-parameter>
</parameters>
</method>
</record>
<record name="SchemaAttribute"
c:type="SecretSchemaAttribute"
glib:type-name="SecretSchemaAttribute"
glib:get-type="secret_schema_attribute_get_type"
c:symbol-prefix="schema_attribute">
<doc xml:space="preserve">An attribute in a #SecretSchema.</doc>
<field name="name" writable="1">
<doc xml:space="preserve">name of the attribute</doc>
<type name="utf8" c:type="const gchar*"/>
</field>
<field name="type" writable="1">
<doc xml:space="preserve">the type of the attribute</doc>
<type name="SchemaAttributeType" c:type="SecretSchemaAttributeType"/>
</field>
</record>
<enumeration name="SchemaAttributeType" c:type="SecretSchemaAttributeType">
<doc xml:space="preserve">The type of an attribute in a #SecretSchema. Attributes are stored as strings
in the Secret Service, and the attribute types simply define standard ways
to store integer and boolean values as strings.</doc>
<member name="string"
value="0"
c:identifier="SECRET_SCHEMA_ATTRIBUTE_STRING">
<doc xml:space="preserve">a utf-8 string attribute</doc>
</member>
<member name="integer"
value="1"
c:identifier="SECRET_SCHEMA_ATTRIBUTE_INTEGER">
<doc xml:space="preserve">an integer attribute, stored as a decimal</doc>
</member>
<member name="boolean"
value="2"
c:identifier="SECRET_SCHEMA_ATTRIBUTE_BOOLEAN">
<doc xml:space="preserve">a boolean attribute, stored as 'true' or 'false'</doc>
</member>
</enumeration>
<bitfield name="SchemaFlags" c:type="SecretSchemaFlags">
<doc xml:space="preserve">Flags for a #SecretSchema definition.</doc>
<member name="none" value="0" c:identifier="SECRET_SCHEMA_NONE">
<doc xml:space="preserve">no flags for the schema</doc>
</member>
<member name="dont_match_name"
value="2"
c:identifier="SECRET_SCHEMA_DONT_MATCH_NAME">
<doc xml:space="preserve">don't match the schema name when looking up or
removing passwords</doc>
</member>
</bitfield>
<function name="attributes_build"
c:identifier="secret_attributes_build"
introspectable="0">
<doc xml:space="preserve">Build up a hash table of attribute values.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new table of
attributes, to be released with g_hash_table_unref()</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="attributes_buildv"
c:identifier="secret_attributes_buildv"
introspectable="0">
<doc xml:space="preserve">Build up a hash table of attribute values.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new table of
attributes, to be released with g_hash_table_unref()</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="va" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</function>
<function name="error_get_quark" c:identifier="secret_error_get_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="password_clear"
c:identifier="secret_password_clear"
shadowed-by="password_clearv"
introspectable="0">
<doc xml:space="preserve">Clear unlocked matching passwords from the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.
All unlocked items that match the attributes will be deleted.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_clear_finish"
c:identifier="secret_password_clear_finish"
throws="1">
<doc xml:space="preserve">Finish an asynchronous operation to remove passwords from the secret
service.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether any passwords were removed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="password_clear_sync"
c:identifier="secret_password_clear_sync"
shadowed-by="password_clearv_sync"
introspectable="0">
<doc xml:space="preserve">Remove unlocked matching passwords from the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.
All unlocked items that match the attributes will be deleted.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the any passwords were removed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">location to place an error on failure</doc>
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_clearv"
c:identifier="secret_password_clearv"
shadows="password_clear">
<doc xml:space="preserve">Remove unlocked matching passwords from the secret service.
The @attributes should be a set of key and value string pairs.
All unlocked items that match the attributes will be deleted.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="4">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="password_clearv_sync"
c:identifier="secret_password_clearv_sync"
shadows="password_clear_sync"
throws="1">
<doc xml:space="preserve">Remove unlocked matching passwords from the secret service.
The @attributes should be a set of key and value string pairs.
All unlocked items that match the attributes will be deleted.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether any passwords were removed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="password_free"
c:identifier="secret_password_free"
introspectable="0">
<doc xml:space="preserve">Clear the memory used by a password, and then free it.
This function must be used to free nonpageable memory returned by
secret_password_lookup_nonpageable_finish(),
secret_password_lookup_nonpageable_sync() or
secret_password_lookupv_nonpageable_sync().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="password" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">password to free</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="password_lookup"
c:identifier="secret_password_lookup"
shadowed-by="password_lookupv"
introspectable="0">
<doc xml:space="preserve">Lookup a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.
If no secret is found then %NULL is returned.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_lookup_finish"
c:identifier="secret_password_lookup_finish"
throws="1">
<doc xml:space="preserve">Finish an asynchronous operation to lookup a password in the secret service.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string which should be freed with
secret_password_free() or may be freed with g_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="password_lookup_nonpageable_finish"
c:identifier="secret_password_lookup_nonpageable_finish"
introspectable="0"
throws="1">
<doc xml:space="preserve">Finish an asynchronous operation to lookup a password in the secret service.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string stored in nonpageable memory
which must be freed with secret_password_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="password_lookup_nonpageable_sync"
c:identifier="secret_password_lookup_nonpageable_sync"
introspectable="0">
<doc xml:space="preserve">Lookup a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.
If no secret is found then %NULL is returned.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string stored in nonpageable memory
which must be freed with secret_password_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">location to place an error on failure</doc>
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_lookup_sync"
c:identifier="secret_password_lookup_sync"
shadowed-by="password_lookupv_sync"
introspectable="0">
<doc xml:space="preserve">Lookup a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the password
@schema. The list of attribtues should be terminated with a %NULL.
If no secret is found then %NULL is returned.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string which should be freed with
secret_password_free() or may be freed with g_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for the attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">location to place an error on failure</doc>
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_lookupv"
c:identifier="secret_password_lookupv"
shadows="password_lookup">
<doc xml:space="preserve">Lookup a password in the secret service.
The @attributes should be a set of key and value string pairs.
If no secret is found then %NULL is returned.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="4">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="password_lookupv_nonpageable_sync"
c:identifier="secret_password_lookupv_nonpageable_sync"
introspectable="0"
throws="1">
<doc xml:space="preserve">Lookup a password in the secret service.
The @attributes should be a set of key and value string pairs.
If no secret is found then %NULL is returned.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string stored in non pageable memory
which should be freed with secret_password_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="password_lookupv_sync"
c:identifier="secret_password_lookupv_sync"
shadows="password_lookup_sync"
throws="1">
<doc xml:space="preserve">Lookup a password in the secret service.
The @attributes should be a set of key and value string pairs.
If no secret is found then %NULL is returned.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new password string which should be freed with
secret_password_free() or may be freed with g_free() when done</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="password_store"
c:identifier="secret_password_store"
shadowed-by="password_storev"
introspectable="0">
<doc xml:space="preserve">Store a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the @schema.
The list of attribtues should be terminated with a %NULL.
If the attributes match a secret item already stored in the collection, then
the item will be updated with these new values.
If @collection is %NULL, then the default collection will be
used. Use #SECRET_COLLECTION_SESSION to store the password in the session
collection, which doesn't get stored across login sessions.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="collection" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">a collection alias, or D-Bus object path of the collection where to store the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">label for the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the null-terminated password to store</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="6">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_store_finish"
c:identifier="secret_password_store_finish"
throws="1">
<doc xml:space="preserve">Finish asynchronous operation to store a password in the secret service.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the storage was successful or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="password_store_sync"
c:identifier="secret_password_store_sync"
shadowed-by="password_storev_sync"
introspectable="0">
<doc xml:space="preserve">Store a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as
a null-terminated string, followed by b) attribute value, either a character
string, an int number, or a gboolean value, as defined in the @schema.
The list of attribtues should be terminated with a %NULL.
If the attributes match a secret item already stored in the collection, then
the item will be updated with these new values.
If @collection is %NULL, then the default collection will be
used. Use #SECRET_COLLECTION_SESSION to store the password in the session
collection, which doesn't get stored across login sessions.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the storage was successful or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="collection" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">a collection alias, or D-Bus object path of the collection where to store the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">label for the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the null-terminated password to store</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">location to place an error on failure</doc>
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values, terminated with %NULL</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="password_storev"
c:identifier="secret_password_storev"
shadows="password_store">
<doc xml:space="preserve">Store a password in the secret service.
The @attributes should be a set of key and value string pairs.
If the attributes match a secret item already stored in the collection, then
the item will be updated with these new values.
If @collection is %NULL, then the default collection will be
used. Use #SECRET_COLLECTION_SESSION to store the password in the session
collection, which doesn't get stored across login sessions.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="collection" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">a collection alias, or D-Bus object path of the collection where to store the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">label for the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the null-terminated password to store</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="7">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="password_storev_sync"
c:identifier="secret_password_storev_sync"
shadows="password_store_sync"
throws="1">
<doc xml:space="preserve">Store a password in the secret service.
The @attributes should be a set of key and value string pairs.
If the attributes match a secret item already stored in the collection, then
the item will be updated with these new values.
If @collection is %NULL, then the default collection will be
used. Use #SECRET_COLLECTION_SESSION to store the password in the session
collection, which doesn't get stored across login sessions.
This method may block indefinitely and should not be used in user interface
threads.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the storage was successful or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="schema" transfer-ownership="none">
<doc xml:space="preserve">the schema for attributes</doc>
<type name="Schema" c:type="const SecretSchema*"/>
</parameter>
<parameter name="attributes" transfer-ownership="none">
<doc xml:space="preserve">the attribute keys and values</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</parameter>
<parameter name="collection" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">a collection alias, or D-Bus object path of the collection where to store the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">label for the secret</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the null-terminated password to store</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="password_wipe" c:identifier="secret_password_wipe">
<doc xml:space="preserve">Clear the memory used by a password.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="password" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">password to clear</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|