mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-22 12:58:37 +00:00

This PR adds a new package, ipn/desktop, which provides a platform-agnostic interface for enumerating desktop sessions and registering session callbacks. Currently, it is implemented only for Windows. Updates #14823 Signed-off-by: Nick Khyl <nickk@tailscale.com>
16 lines
448 B
Go
16 lines
448 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !windows
|
|
|
|
package desktop
|
|
|
|
import "tailscale.com/types/logger"
|
|
|
|
// NewSessionManager returns a new [SessionManager] for the current platform,
|
|
// [ErrNotImplemented] if the platform is not supported, or an error if the
|
|
// session manager could not be created.
|
|
func NewSessionManager(logger.Logf) (SessionManager, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|