Module: GnomeKeyring
- Defined in:
- lib/gir_ffi-gnome_keyring.rb,
lib/gir_ffi-gnome_keyring/found.rb,
lib/gir_ffi-gnome_keyring/attribute.rb,
lib/gir_ffi-gnome_keyring/attribute_list.rb
Defined Under Namespace
Classes: Attribute, AttributeList, Found
Class Method Summary collapse
- .find_items_sync(type, attributes) ⇒ Object
- .item_create_sync(keyring, type, display_name, attributes, secret, update_if_exists) ⇒ Object
- .item_get_attributes_sync(keyring, id) ⇒ Object
- .item_set_attributes_sync(keyring, id, attributes) ⇒ Object
Class Method Details
.find_items_sync(type, attributes) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/gir_ffi-gnome_keyring.rb', line 22 def self.find_items_sync(type, attributes) _v2 = GnomeKeyring::AttributeList.from(attributes) _v3 = FFI::MemoryPointer.new :pointer _v4 = GnomeKeyring::Lib.gnome_keyring_find_items_sync(type, _v2, _v3) _v5 = GLib::List.wrap(GnomeKeyring::Found, _v3.get_pointer(0)) return [_v4, _v5] end |
.item_create_sync(keyring, type, display_name, attributes, secret, update_if_exists) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/gir_ffi-gnome_keyring.rb', line 30 def self.item_create_sync(keyring, type, display_name, attributes, secret, update_if_exists) _v1 = GirFFI::InPointer.from_utf8(keyring) _v3 = GirFFI::InPointer.from_utf8(display_name) _v4 = GnomeKeyring::AttributeList.from(attributes) _v5 = GirFFI::InPointer.from_utf8(secret) _v7 = FFI::MemoryPointer.new :uint32 _v8 = GnomeKeyring::Lib.gnome_keyring_item_create_sync(_v1, type, _v3, _v4, _v5, update_if_exists, _v7) _v9 = _v7.get_uint32(0) return [_v8, _v9] end |
.item_get_attributes_sync(keyring, id) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/gir_ffi-gnome_keyring.rb', line 45 def self.item_get_attributes_sync(keyring, id) _v1 = GirFFI::InPointer.from_utf8(keyring) _v3 = FFI::MemoryPointer.new :pointer _v4 = GnomeKeyring::Lib.gnome_keyring_item_get_attributes_sync(_v1, id, _v3) attributes = GnomeKeyring::AttributeList.wrap(_v3.get_pointer(0)) return [_v4, attributes] end |
.item_set_attributes_sync(keyring, id, attributes) ⇒ Object
53 54 55 56 57 |
# File 'lib/gir_ffi-gnome_keyring.rb', line 53 def self.item_set_attributes_sync(keyring, id, attributes) _v1 = GirFFI::InPointer.from_utf8(keyring) _v3 = GnomeKeyring::AttributeList.from(attributes) GnomeKeyring::Lib.gnome_keyring_item_set_attributes_sync(_v1, id, _v3) end |