mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 02:12:46 +01:00
add TinyCloud
This commit is contained in:
@@ -169,6 +169,15 @@ func (self *DBus) check_for_wireless(iwconfig string, wireless_ip string) bool
|
||||
return true
|
||||
}
|
||||
|
||||
func (self *DBus) GetWifiIP() string {
|
||||
var wireless_ip string
|
||||
if self.Wifi != nil {
|
||||
self.Wifi.Get( self.Wifi.Method("GetWirelessIP", ""), &wireless_ip)
|
||||
}
|
||||
return wireless_ip
|
||||
|
||||
}
|
||||
|
||||
func (self *DBus) IsWifiConnectedNow() bool {
|
||||
var fast bool
|
||||
var iwconfig string
|
||||
|
||||
@@ -17,6 +17,17 @@ type WidgetInterface interface {
|
||||
NewCoord(x,y int)
|
||||
}
|
||||
|
||||
type Coord struct {
|
||||
X int
|
||||
Y int
|
||||
}
|
||||
|
||||
type Plane struct {
|
||||
W int
|
||||
H int
|
||||
|
||||
}
|
||||
|
||||
type Widget struct {
|
||||
PosX int
|
||||
PosY int
|
||||
|
||||
Reference in New Issue
Block a user