mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-21 08:09:55 +00:00
19 lines
411 B
Go
19 lines
411 B
Go
//go:build darwin && !ios
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
vncserver "github.com/netbirdio/netbird/client/vnc/server"
|
|
)
|
|
|
|
func newAgentResources() (vncserver.ScreenCapturer, vncserver.InputInjector, error) {
|
|
capturer := vncserver.NewMacPoller()
|
|
injector, err := vncserver.NewMacInputInjector()
|
|
if err != nil {
|
|
return nil, nil, fmt.Errorf("macOS input injector: %w", err)
|
|
}
|
|
return capturer, injector, nil
|
|
}
|