summaryrefslogtreecommitdiff
path: root/sysdatacache_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-12 10:43:57 -0500
committerPietro Gagliardi <[email protected]>2014-02-12 10:43:57 -0500
commit3f8fe0e7108c1cd87e177bed22e3307c9df03e63 (patch)
treee34a7dd419bf2649dc24f5dbf89e6d825179f55d /sysdatacache_windows.go
parentf93bebfeec42aeee07f43fcf6466b93f073b6111 (diff)
Separated initial text from sysData and fixed errors in the previous commits.
Diffstat (limited to 'sysdatacache_windows.go')
-rw-r--r--sysdatacache_windows.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdatacache_windows.go b/sysdatacache_windows.go
index 16848e2..5ec299b 100644
--- a/sysdatacache_windows.go
+++ b/sysdatacache_windows.go
@@ -9,9 +9,9 @@ import (
// I need a way to get a sysData for a given HWND or a given HWND/control ID. So, this.
var (
- sysDatas = map[_HWND]*sdcEntry{}
+ sysDatas = map[_HWND]*sysData{}
sysDatasLock sync.Mutex
- sysDataIDs = map[_HMENU]*sdcEntry{}
+ sysDataIDs = map[_HMENU]*sysData{}
sysDataIDsLock sync.Mutex
)
@@ -21,7 +21,7 @@ func addSysData(hwnd _HWND, s *sysData) {
sysDatas[hwnd] = s
}
-func addIDSysData(id _HMENU, s *sysData) {
+func addSysDataID(id _HMENU, s *sysData) {
sysDataIDsLock.Lock()
defer sysDataIDsLock.Unlock()
sysDataIDs[id] = s
@@ -36,11 +36,11 @@ func getSysData(hwnd _HWND) *sysData {
return nil
}
-func getIDSysData(id _HMENU) *sysData {
+func getSysDataID(id _HMENU) *sysData {
sysDataIDsLock.Lock()
defer sysDataIDsLock.Unlock()
if ss, ok := sysDataIDs[id]; ok {
return ss
}
- panic(fmt.Sprintf("getting nonexistent ID %d for HWND %d\n", id, hwnd))
+ panic(fmt.Sprintf("getting nonexistent ID %d\n", id))
}