File: manual.go

package info (click to toggle)
golang-github-linuxdeepin-go-dbus-factory 1.9.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,864 kB
  • sloc: xml: 11,754; makefile: 35; sh: 13
file content (27 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package fingerprint

func (v *device) GetInterfaceName_() string {
	ifcName, _ := v.GetObject_().GetExtra("deviceIfcName")
	ifcNameStr, ok := ifcName.(string)
	if ok {
		return ifcNameStr
	}
	return ""
}

func (v *device) SetInterfaceName(name string) {
	v.GetObject_().SetExtra("deviceIfcName", name)
}

func (v *commonDevice) GetInterfaceName_() string {
	ifcName, _ := v.GetObject_().GetExtra("deviceIfcName")
	ifcNameStr, ok := ifcName.(string)
	if ok {
		return ifcNameStr
	}
	return ""
}

func (v *commonDevice) SetInterfaceName(name string) {
	v.GetObject_().SetExtra("deviceIfcName", name)
}