diff --git a/hostname1/dbus.go b/hostname1/dbus.go index e78d730..b6545b1 100644 --- a/hostname1/dbus.go +++ b/hostname1/dbus.go @@ -88,53 +88,53 @@ func (c *Conn) initConnection() error { } func (c *Conn) SetHostname(hostname string, interactive bool) error { - return c.object.Call(".SetHostname", 0, hostname, interactive).Err + return c.object.Call(dbusDest+".SetHostname", 0, hostname, interactive).Err } func (c *Conn) SetStaticHostname(hostname string, interactive bool) error { - return c.object.Call(".SetStaticHostname", 0, hostname, interactive).Err + return c.object.Call(dbusDest+".SetStaticHostname", 0, hostname, interactive).Err } func (c *Conn) SetPrettyHostname(hostname string, interactive bool) error { - return c.object.Call(".SetPrettyHostname", 0, hostname, interactive).Err + return c.object.Call(dbusDest+".SetPrettyHostname", 0, hostname, interactive).Err } func (c *Conn) SetIconName(iconName string, interactive bool) error { - return c.object.Call(".SetIconName", 0, iconName, interactive).Err + return c.object.Call(dbusDest+".SetIconName", 0, iconName, interactive).Err } func (c *Conn) SetChassis(chassis string, interactive bool) error { - return c.object.Call(".SetChassis", 0, chassis, interactive).Err + return c.object.Call(dbusDest+".SetChassis", 0, chassis, interactive).Err } func (c *Conn) SetDeployment(deployment string, interactive bool) error { - return c.object.Call(".SetDeployment", 0, deployment, interactive).Err + return c.object.Call(dbusDest+".SetDeployment", 0, deployment, interactive).Err } func (c *Conn) SetLocation(location string, interactive bool) error { - return c.object.Call(".SetLocation", 0, location, interactive).Err + return c.object.Call(dbusDest+".SetLocation", 0, location, interactive).Err } func (c *Conn) GetProductUUID(interactive bool) ([]byte, error) { var uuid []byte - err := c.object.Call(".GetProductUUID", 0, interactive).Store(&uuid) + err := c.object.Call(dbusDest+".GetProductUUID", 0, interactive).Store(&uuid) return uuid, err } func (c *Conn) GetHardwareSerial() (string, error) { var serial string - err := c.object.Call(".GetHardwareSerial", 0).Store(&serial) + err := c.object.Call(dbusDest+".GetHardwareSerial", 0).Store(&serial) return serial, err } func (c *Conn) Describe() (string, error) { var description string - err := c.object.Call(".Describe", 0).Store(&description) + err := c.object.Call(dbusDest+".Describe", 0).Store(&description) return description, err } func (c *Conn) Hostname() (string, error) { - out, err := c.object.GetProperty(".Hostname") + out, err := c.object.GetProperty(dbusDest + ".Hostname") if err != nil { return "", err } @@ -142,7 +142,7 @@ func (c *Conn) Hostname() (string, error) { } func (c *Conn) StaticHostname() (string, error) { - out, err := c.object.GetProperty(".StaticHostname") + out, err := c.object.GetProperty(dbusDest + ".StaticHostname") if err != nil { return "", err } @@ -150,7 +150,7 @@ func (c *Conn) StaticHostname() (string, error) { } func (c *Conn) PrettyHostname() (string, error) { - out, err := c.object.GetProperty(".PrettyHostname") + out, err := c.object.GetProperty(dbusDest + ".PrettyHostname") if err != nil { return "", err } @@ -158,7 +158,7 @@ func (c *Conn) PrettyHostname() (string, error) { } func (c *Conn) DefaultHostname() (string, error) { - out, err := c.object.GetProperty(".DefaultHostname") + out, err := c.object.GetProperty(dbusDest + ".DefaultHostname") if err != nil { return "", err } @@ -166,7 +166,7 @@ func (c *Conn) DefaultHostname() (string, error) { } func (c *Conn) HostnameSource() (string, error) { - out, err := c.object.GetProperty(".HostnameSource") + out, err := c.object.GetProperty(dbusDest + ".HostnameSource") if err != nil { return "", err } @@ -174,7 +174,7 @@ func (c *Conn) HostnameSource() (string, error) { } func (c *Conn) IconName() (string, error) { - out, err := c.object.GetProperty(".IconName") + out, err := c.object.GetProperty(dbusDest + ".IconName") if err != nil { return "", err } @@ -182,7 +182,7 @@ func (c *Conn) IconName() (string, error) { } func (c *Conn) Chassis() (string, error) { - out, err := c.object.GetProperty(".Chassis") + out, err := c.object.GetProperty(dbusDest + ".Chassis") if err != nil { return "", err } @@ -190,7 +190,7 @@ func (c *Conn) Chassis() (string, error) { } func (c *Conn) Deployment() (string, error) { - out, err := c.object.GetProperty(".Deployment") + out, err := c.object.GetProperty(dbusDest + ".Deployment") if err != nil { return "", err } @@ -198,7 +198,7 @@ func (c *Conn) Deployment() (string, error) { } func (c *Conn) Location() (string, error) { - out, err := c.object.GetProperty(".Location") + out, err := c.object.GetProperty(dbusDest + ".Location") if err != nil { return "", err } @@ -206,7 +206,7 @@ func (c *Conn) Location() (string, error) { } func (c *Conn) KernelName() (string, error) { - out, err := c.object.GetProperty(".KernelName") + out, err := c.object.GetProperty(dbusDest + ".KernelName") if err != nil { return "", err } @@ -214,7 +214,7 @@ func (c *Conn) KernelName() (string, error) { } func (c *Conn) KernelRelease() (string, error) { - out, err := c.object.GetProperty(".KernelRelease") + out, err := c.object.GetProperty(dbusDest + ".KernelRelease") if err != nil { return "", err } @@ -222,7 +222,7 @@ func (c *Conn) KernelRelease() (string, error) { } func (c *Conn) KernelVersion() (string, error) { - out, err := c.object.GetProperty(".KernelVersion") + out, err := c.object.GetProperty(dbusDest + ".KernelVersion") if err != nil { return "", err } @@ -230,7 +230,7 @@ func (c *Conn) KernelVersion() (string, error) { } func (c *Conn) OperatingSystemPrettyName() (string, error) { - out, err := c.object.GetProperty(".OperatingSystemPrettyName") + out, err := c.object.GetProperty(dbusDest + ".OperatingSystemPrettyName") if err != nil { return "", err } @@ -238,7 +238,7 @@ func (c *Conn) OperatingSystemPrettyName() (string, error) { } func (c *Conn) OperatingSystemCPEName() (string, error) { - out, err := c.object.GetProperty(".OperatingSystemCPEName") + out, err := c.object.GetProperty(dbusDest + ".OperatingSystemCPEName") if err != nil { return "", err } @@ -246,7 +246,7 @@ func (c *Conn) OperatingSystemCPEName() (string, error) { } func (c *Conn) OperatingSystemSupportEnd() (uint64, error) { - out, err := c.object.GetProperty(".OperatingSystemSupportEnd") + out, err := c.object.GetProperty(dbusDest + ".OperatingSystemSupportEnd") if err != nil { return 0, err } @@ -254,7 +254,7 @@ func (c *Conn) OperatingSystemSupportEnd() (uint64, error) { } func (c *Conn) HomeURL() (string, error) { - out, err := c.object.GetProperty(".HomeURL") + out, err := c.object.GetProperty(dbusDest + ".HomeURL") if err != nil { return "", err } @@ -262,7 +262,7 @@ func (c *Conn) HomeURL() (string, error) { } func (c *Conn) HardwareVendor() (string, error) { - out, err := c.object.GetProperty(".HardwareVendor") + out, err := c.object.GetProperty(dbusDest + ".HardwareVendor") if err != nil { return "", err } @@ -270,7 +270,7 @@ func (c *Conn) HardwareVendor() (string, error) { } func (c *Conn) HardwareModel() (string, error) { - out, err := c.object.GetProperty(".HardwareModel") + out, err := c.object.GetProperty(dbusDest + ".HardwareModel") if err != nil { return "", err } @@ -278,7 +278,7 @@ func (c *Conn) HardwareModel() (string, error) { } func (c *Conn) FirmwareVersion() (string, error) { - out, err := c.object.GetProperty(".FirmwareVersion") + out, err := c.object.GetProperty(dbusDest + ".FirmwareVersion") if err != nil { return "", err } @@ -286,7 +286,7 @@ func (c *Conn) FirmwareVersion() (string, error) { } func (c *Conn) FirmwareVendor() (string, error) { - out, err := c.object.GetProperty(".FirmwareVendor") + out, err := c.object.GetProperty(dbusDest + ".FirmwareVendor") if err != nil { return "", err } @@ -294,7 +294,7 @@ func (c *Conn) FirmwareVendor() (string, error) { } func (c *Conn) FirmwareDate() (uint64, error) { - out, err := c.object.GetProperty(".FirmwareDate") + out, err := c.object.GetProperty(dbusDest + ".FirmwareDate") if err != nil { return 0, err }