GirFFI-GnomeKeyring

by Matijs van Zuijlen

Description

GirFFI-based bindings for GnomeKeyring

Status

Gem Version Dependency Status Build Status

Features

  • Auto-generated bindings using GObject introspection.
  • Adds overrides for introspection data bugs.

Usage

require 'gir_ffi-gnome_keyring'

attrs = GnomeKeyring::AttributeList.new
attrs.append_string "attribute-name", "string value"
attrs.append_uint32 "other name", 42

result_code, item_id = GnomeKeyring.item_create_sync nil,
  :generic_secret, "foobar", attrs, "foobar's secret", false

p [result_code, item_id]

if result_code == :ok
  code, info = GnomeKeyring.item_get_info_sync nil, item_id
  if code == :ok
    puts "Item: #{info.get_display_name} of type #{info.get_type}"
  end
  GnomeKeyring.item_delete_sync nil, item_id
  code, info = GnomeKeyring.item_get_info_sync nil, item_id
  p [code, info]
end

Install

gem install gir_ffi-gnome_keyring

License

Copyright © 2013–2016, 2018 Matijs van Zuijlen

GirFFI-GnomeKeyring is free software, distributed under the terms of the GNU Lesser General Public License, version 2.1 or later. See the file COPYING.LIB for more information.