[WIP] refactor CGO methods

This commit is contained in:
Lea Anthony
2024-03-06 11:42:19 -06:00
committed by Travis McLane
parent 3d93c83920
commit 4cd4b46772
7 changed files with 211 additions and 321 deletions
+3 -3
View File
@@ -7,17 +7,17 @@ import (
"sync"
)
func (l *linuxApp) getPrimaryScreen() (*Screen, error) {
func (a *linuxApp) getPrimaryScreen() (*Screen, error) {
return nil, fmt.Errorf("not implemented")
}
func (l *linuxApp) getScreens() ([]*Screen, error) {
func (a *linuxApp) getScreens() ([]*Screen, error) {
var wg sync.WaitGroup
var screens []*Screen
var err error
wg.Add(1)
InvokeSync(func() {
screens, err = getScreens(l.application)
screens, err = getScreens(a.application)
wg.Done()
})
wg.Wait()