xcb

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package xcb implements X11 ChangeHosts via libxcb.

Index

Constants

View Source
const (
	HostModeInsert = C.XCB_HOST_MODE_INSERT
	HostModeDelete = C.XCB_HOST_MODE_DELETE

	FamilyInternet          = C.XCB_FAMILY_INTERNET
	FamilyDecnet            = C.XCB_FAMILY_DECNET
	FamilyChaos             = C.XCB_FAMILY_CHAOS
	FamilyServerInterpreted = C.XCB_FAMILY_SERVER_INTERPRETED
	FamilyInternet6         = C.XCB_FAMILY_INTERNET_6
)
View Source
const (
	ConnError                 = C.XCB_CONN_ERROR
	ConnClosedExtNotSupported = C.XCB_CONN_CLOSED_EXT_NOTSUPPORTED
	ConnClosedMemInsufficient = C.XCB_CONN_CLOSED_MEM_INSUFFICIENT
	ConnClosedReqLenExceed    = C.XCB_CONN_CLOSED_REQ_LEN_EXCEED
	ConnClosedParseErr        = C.XCB_CONN_CLOSED_PARSE_ERR
	ConnClosedInvalidScreen   = C.XCB_CONN_CLOSED_INVALID_SCREEN
)

Variables

View Source
var ErrChangeHosts = errors.New("xcb_change_hosts() failed")

Functions

func ChangeHosts

func ChangeHosts(mode HostMode, family Family, address string) error

Types

type ConnectionError

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

func (*ConnectionError) Error

func (ce *ConnectionError) Error() string

type Family added in v0.2.3

type Family = C.xcb_family_t

type HostMode added in v0.2.3

type HostMode = C.xcb_host_mode_t

Jump to

Keyboard shortcuts

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