Open smcv opened 10 years ago
If I have this code:
[Interface("org.freedesktop.hostname1")] interface IHostname1 : Introspectable, Properties { void SetHostname (string name, bool userInteraction); void SetStaticHostname (string name, bool userInteraction); void SetPrettyHostname (string name, bool userInteraction); void SetIconName (string name, bool userInteraction); void SetChassis (string name, bool userInteraction); string Hostname { get; } string StaticHostname { get; } string PrettyHostname { get; } string IconName { get; } string Chassis { get; } }
and compile it against dbus-sharp 0.7 on Debian 7, I can do this to get an org.freedesktop.DBus.Properties.GetAll call:
org.freedesktop.DBus.Properties.GetAll
IHostname1 hostnamed = Bus.System.GetObject<IHostname1>(HOSTNAME1_NAME, HOSTNAME1_PATH); IDictionary<string,object> asv; asv = hostnamed.GetAll (HOSTNAME1_IFACE);
Under 0.8 or git master, this tries to call org.freedesktop.hostname1.GetAll which doesn't exist. (Or am I meant to do a separate GetObject call for the Properties interface to achieve that?)
org.freedesktop.hostname1.GetAll
If I have this code:
and compile it against dbus-sharp 0.7 on Debian 7, I can do this to get an
org.freedesktop.DBus.Properties.GetAll
call:Under 0.8 or git master, this tries to call
org.freedesktop.hostname1.GetAll
which doesn't exist. (Or am I meant to do a separate GetObject call for the Properties interface to achieve that?)