package rdp

import "runtime"

// NewProductionBackend returns the appropriate RDP backend for the current
// platform. On Windows it returns a FreeRDPBackend that loads freerdp3.dll
// at runtime via syscall. On other platforms it falls back to MockBackend
// so the application can still be developed and tested without FreeRDP.
func NewProductionBackend() RDPBackend {
	if runtime.GOOS == "windows" {
		return NewFreeRDPBackend()
	}
	return NewMockBackend()
}
