Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Implement org.freedesktop.DBus.Properties #14

Closed
guelfey opened this issue Feb 4, 2013 · 0 comments
Closed

Implement org.freedesktop.DBus.Properties #14

guelfey opened this issue Feb 4, 2013 · 0 comments
Assignees

Comments

@guelfey
Copy link
Owner

guelfey commented Feb 4, 2013

  1. Create a structure that implements the following interface:

    type Properties interface {
        Get(iface, property string) (Variant, *Error)
        Set(iface, property string, newv Variant) *Error
        GetAll(iface string) (map[string]Variant, *Error)
    }

    Usage:

    var prop Properties
    // ... 
    conn.Export(prop, "/foo/bar", "org.freedesktop.DBus.Properties")
  2. Find a good way to make the properties available from the Go program (define methods that take/return interface{} instead of Variant? let the user give all properties upon creation or make it possible to modify them at runtime?)

@ghost ghost assigned guelfey Feb 4, 2013
@guelfey guelfey closed this as completed in c10ba58 Feb 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant