xselinux

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 6 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xselinux.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "SELinux"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "SELinux"
)

Variables

This section is empty.

Functions

func GetClientContextUnchecked

func GetClientContextUnchecked(c *xgb.XConn, Resource uint32) error

GetClientContextUnchecked sends an unchecked request.

func GetDeviceContextUnchecked

func GetDeviceContextUnchecked(c *xgb.XConn, Device uint32) error

GetDeviceContextUnchecked sends an unchecked request.

func GetDeviceCreateContextUnchecked

func GetDeviceCreateContextUnchecked(c *xgb.XConn) error

GetDeviceCreateContextUnchecked sends an unchecked request.

func GetPropertyContextUnchecked

func GetPropertyContextUnchecked(c *xgb.XConn, Window xproto.Window, Property xproto.Atom) error

GetPropertyContextUnchecked sends an unchecked request.

func GetPropertyCreateContextUnchecked

func GetPropertyCreateContextUnchecked(c *xgb.XConn) error

GetPropertyCreateContextUnchecked sends an unchecked request.

func GetPropertyDataContextUnchecked

func GetPropertyDataContextUnchecked(c *xgb.XConn, Window xproto.Window, Property xproto.Atom) error

GetPropertyDataContextUnchecked sends an unchecked request.

func GetPropertyUseContextUnchecked

func GetPropertyUseContextUnchecked(c *xgb.XConn) error

GetPropertyUseContextUnchecked sends an unchecked request.

func GetSelectionContextUnchecked

func GetSelectionContextUnchecked(c *xgb.XConn, Selection xproto.Atom) error

GetSelectionContextUnchecked sends an unchecked request.

func GetSelectionCreateContextUnchecked

func GetSelectionCreateContextUnchecked(c *xgb.XConn) error

GetSelectionCreateContextUnchecked sends an unchecked request.

func GetSelectionDataContextUnchecked

func GetSelectionDataContextUnchecked(c *xgb.XConn, Selection xproto.Atom) error

GetSelectionDataContextUnchecked sends an unchecked request.

func GetSelectionUseContextUnchecked

func GetSelectionUseContextUnchecked(c *xgb.XConn) error

GetSelectionUseContextUnchecked sends an unchecked request.

func GetWindowContextUnchecked

func GetWindowContextUnchecked(c *xgb.XConn, Window xproto.Window) error

GetWindowContextUnchecked sends an unchecked request.

func GetWindowCreateContextUnchecked

func GetWindowCreateContextUnchecked(c *xgb.XConn) error

GetWindowCreateContextUnchecked sends an unchecked request.

func ListItemListBytes

func ListItemListBytes(buf []byte, list []ListItem) int

ListItemListBytes writes a list of ListItem values to a byte slice.

func ListItemListSize

func ListItemListSize(list []ListItem) int

ListItemListSize computes the size (bytes) of a list of ListItem values.

func ListItemRead

func ListItemRead(buf []byte, v *ListItem) int

ListItemRead reads a byte slice into a ListItem value.

func ListItemReadList

func ListItemReadList(buf []byte, dest []ListItem) int

ListItemReadList reads a byte slice into a list of ListItem values.

func ListPropertiesUnchecked

func ListPropertiesUnchecked(c *xgb.XConn, Window xproto.Window) error

ListPropertiesUnchecked sends an unchecked request.

func ListSelectionsUnchecked

func ListSelectionsUnchecked(c *xgb.XConn) error

ListSelectionsUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, ClientMajor byte, ClientMinor byte) error

QueryVersionUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for SELinux extension support, and register relevant extension unmarshalers with the XConn.

func SetDeviceContext

func SetDeviceContext(c *xgb.XConn, Device uint32, ContextLen uint32, Context string) error

SetDeviceContext sends a checked request.

func SetDeviceContextUnchecked added in v1.1.0

func SetDeviceContextUnchecked(c *xgb.XConn, Device uint32, ContextLen uint32, Context string) error

SetDeviceContextUnchecked sends an unchecked request.

func SetDeviceCreateContext

func SetDeviceCreateContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetDeviceCreateContext sends a checked request.

func SetDeviceCreateContextUnchecked added in v1.1.0

func SetDeviceCreateContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetDeviceCreateContextUnchecked sends an unchecked request.

func SetPropertyCreateContext

func SetPropertyCreateContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetPropertyCreateContext sends a checked request.

func SetPropertyCreateContextUnchecked added in v1.1.0

func SetPropertyCreateContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetPropertyCreateContextUnchecked sends an unchecked request.

func SetPropertyUseContext

func SetPropertyUseContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetPropertyUseContext sends a checked request.

func SetPropertyUseContextUnchecked added in v1.1.0

func SetPropertyUseContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetPropertyUseContextUnchecked sends an unchecked request.

func SetSelectionCreateContext

func SetSelectionCreateContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetSelectionCreateContext sends a checked request.

func SetSelectionCreateContextUnchecked added in v1.1.0

func SetSelectionCreateContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetSelectionCreateContextUnchecked sends an unchecked request.

func SetSelectionUseContext

func SetSelectionUseContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetSelectionUseContext sends a checked request.

func SetSelectionUseContextUnchecked added in v1.1.0

func SetSelectionUseContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetSelectionUseContextUnchecked sends an unchecked request.

func SetWindowCreateContext

func SetWindowCreateContext(c *xgb.XConn, ContextLen uint32, Context string) error

SetWindowCreateContext sends a checked request.

func SetWindowCreateContextUnchecked added in v1.1.0

func SetWindowCreateContextUnchecked(c *xgb.XConn, ContextLen uint32, Context string) error

SetWindowCreateContextUnchecked sends an unchecked request.

Types

type GetClientContextReply

type GetClientContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetClientContextReply represents the data returned from a GetClientContext request.

func GetClientContext

func GetClientContext(c *xgb.XConn, Resource uint32) (GetClientContextReply, error)

GetClientContext sends a checked request.

func (*GetClientContextReply) Unmarshal added in v1.1.0

func (v *GetClientContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetClientContextReply value.

type GetDeviceContextReply

type GetDeviceContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetDeviceContextReply represents the data returned from a GetDeviceContext request.

func GetDeviceContext

func GetDeviceContext(c *xgb.XConn, Device uint32) (GetDeviceContextReply, error)

GetDeviceContext sends a checked request.

func (*GetDeviceContextReply) Unmarshal added in v1.1.0

func (v *GetDeviceContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetDeviceContextReply value.

type GetDeviceCreateContextReply

type GetDeviceCreateContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetDeviceCreateContextReply represents the data returned from a GetDeviceCreateContext request.

func GetDeviceCreateContext

func GetDeviceCreateContext(c *xgb.XConn) (GetDeviceCreateContextReply, error)

GetDeviceCreateContext sends a checked request.

func (*GetDeviceCreateContextReply) Unmarshal added in v1.1.0

func (v *GetDeviceCreateContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetDeviceCreateContextReply value.

type GetPropertyContextReply

type GetPropertyContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetPropertyContextReply represents the data returned from a GetPropertyContext request.

func GetPropertyContext

func GetPropertyContext(c *xgb.XConn, Window xproto.Window, Property xproto.Atom) (GetPropertyContextReply, error)

GetPropertyContext sends a checked request.

func (*GetPropertyContextReply) Unmarshal added in v1.1.0

func (v *GetPropertyContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPropertyContextReply value.

type GetPropertyCreateContextReply

type GetPropertyCreateContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetPropertyCreateContextReply represents the data returned from a GetPropertyCreateContext request.

func GetPropertyCreateContext

func GetPropertyCreateContext(c *xgb.XConn) (GetPropertyCreateContextReply, error)

GetPropertyCreateContext sends a checked request.

func (*GetPropertyCreateContextReply) Unmarshal added in v1.1.0

func (v *GetPropertyCreateContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPropertyCreateContextReply value.

type GetPropertyDataContextReply

type GetPropertyDataContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetPropertyDataContextReply represents the data returned from a GetPropertyDataContext request.

func GetPropertyDataContext

func GetPropertyDataContext(c *xgb.XConn, Window xproto.Window, Property xproto.Atom) (GetPropertyDataContextReply, error)

GetPropertyDataContext sends a checked request.

func (*GetPropertyDataContextReply) Unmarshal added in v1.1.0

func (v *GetPropertyDataContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPropertyDataContextReply value.

type GetPropertyUseContextReply

type GetPropertyUseContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetPropertyUseContextReply represents the data returned from a GetPropertyUseContext request.

func GetPropertyUseContext

func GetPropertyUseContext(c *xgb.XConn) (GetPropertyUseContextReply, error)

GetPropertyUseContext sends a checked request.

func (*GetPropertyUseContextReply) Unmarshal added in v1.1.0

func (v *GetPropertyUseContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPropertyUseContextReply value.

type GetSelectionContextReply

type GetSelectionContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetSelectionContextReply represents the data returned from a GetSelectionContext request.

func GetSelectionContext

func GetSelectionContext(c *xgb.XConn, Selection xproto.Atom) (GetSelectionContextReply, error)

GetSelectionContext sends a checked request.

func (*GetSelectionContextReply) Unmarshal added in v1.1.0

func (v *GetSelectionContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetSelectionContextReply value.

type GetSelectionCreateContextReply

type GetSelectionCreateContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetSelectionCreateContextReply represents the data returned from a GetSelectionCreateContext request.

func GetSelectionCreateContext

func GetSelectionCreateContext(c *xgb.XConn) (GetSelectionCreateContextReply, error)

GetSelectionCreateContext sends a checked request.

func (*GetSelectionCreateContextReply) Unmarshal added in v1.1.0

func (v *GetSelectionCreateContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetSelectionCreateContextReply value.

type GetSelectionDataContextReply

type GetSelectionDataContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetSelectionDataContextReply represents the data returned from a GetSelectionDataContext request.

func GetSelectionDataContext

func GetSelectionDataContext(c *xgb.XConn, Selection xproto.Atom) (GetSelectionDataContextReply, error)

GetSelectionDataContext sends a checked request.

func (*GetSelectionDataContextReply) Unmarshal added in v1.1.0

func (v *GetSelectionDataContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetSelectionDataContextReply value.

type GetSelectionUseContextReply

type GetSelectionUseContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetSelectionUseContextReply represents the data returned from a GetSelectionUseContext request.

func GetSelectionUseContext

func GetSelectionUseContext(c *xgb.XConn) (GetSelectionUseContextReply, error)

GetSelectionUseContext sends a checked request.

func (*GetSelectionUseContextReply) Unmarshal added in v1.1.0

func (v *GetSelectionUseContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetSelectionUseContextReply value.

type GetWindowContextReply

type GetWindowContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetWindowContextReply represents the data returned from a GetWindowContext request.

func GetWindowContext

func GetWindowContext(c *xgb.XConn, Window xproto.Window) (GetWindowContextReply, error)

GetWindowContext sends a checked request.

func (*GetWindowContextReply) Unmarshal added in v1.1.0

func (v *GetWindowContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetWindowContextReply value.

type GetWindowCreateContextReply

type GetWindowCreateContextReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ContextLen uint32
	// padding: 20 bytes
	Context string // size: internal.Pad4((int(ContextLen) * 1))
}

GetWindowCreateContextReply represents the data returned from a GetWindowCreateContext request.

func GetWindowCreateContext

func GetWindowCreateContext(c *xgb.XConn) (GetWindowCreateContextReply, error)

GetWindowCreateContext sends a checked request.

func (*GetWindowCreateContextReply) Unmarshal added in v1.1.0

func (v *GetWindowCreateContextReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetWindowCreateContextReply value.

type ListItem

type ListItem struct {
	Name             xproto.Atom
	ObjectContextLen uint32
	DataContextLen   uint32
	ObjectContext    string // size: internal.Pad4((int(ObjectContextLen) * 1))
	// padding: 0 bytes
	DataContext string // size: internal.Pad4((int(DataContextLen) * 1))

}

func (ListItem) Bytes

func (v ListItem) Bytes() []byte

Bytes writes a ListItem value to a byte slice.

type ListPropertiesReply

type ListPropertiesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	PropertiesLen uint32
	// padding: 20 bytes
	Properties []ListItem // size: ListItemListSize(Properties)
}

ListPropertiesReply represents the data returned from a ListProperties request.

func ListProperties

func ListProperties(c *xgb.XConn, Window xproto.Window) (ListPropertiesReply, error)

ListProperties sends a checked request.

func (*ListPropertiesReply) Unmarshal added in v1.1.0

func (v *ListPropertiesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a ListPropertiesReply value.

type ListSelectionsReply

type ListSelectionsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	SelectionsLen uint32
	// padding: 20 bytes
	Selections []ListItem // size: ListItemListSize(Selections)
}

ListSelectionsReply represents the data returned from a ListSelections request.

func ListSelections

func ListSelections(c *xgb.XConn) (ListSelectionsReply, error)

ListSelections sends a checked request.

func (*ListSelectionsReply) Unmarshal added in v1.1.0

func (v *ListSelectionsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a ListSelectionsReply value.

type QueryVersionReply

type QueryVersionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ServerMajor uint16
	ServerMinor uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

func QueryVersion

func QueryVersion(c *xgb.XConn, ClientMajor byte, ClientMinor byte) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

func (v *QueryVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryVersionReply value.

Jump to

Keyboard shortcuts

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