winebridge

package
v0.0.0-...-3e1ade8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

Wine Bridge

This code implements support for a Linux and Windows (through Wine) program to communicate through file descriptors (usually pipes).

The Linux code forks and then execs Wine to run the Windows program. It takes a list of *os.File that need to be made available to the Windows program, taking care of disabling close-on-exec on the associated file descriptors and passing them over the command-line. On success the given files will be closed (on the Linux side only, of course).

The Windows code parses the file descriptors from the command-line and uses some Wine trickery to make them available to the Windows program as file handles.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WineBridge

type WineBridge struct {
	// contains filtered or unexported fields
}

func New

func New(windowsExePath string, files ...*os.File) (*WineBridge, error)

func (*WineBridge) Start

func (w *WineBridge) Start() error

func (*WineBridge) Stop

func (w *WineBridge) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL