Package xselinux

import "github.com/BurntSushi/xgb/xselinux"
Overview
Index

Overview ▾

Package xselinux is the X client API for the SELinux extension.

Index ▾

func Init(c *xgb.Conn) error
func ListItemListBytes(buf []byte, list []ListItem) int
func ListItemListSize(list []ListItem) int
func ListItemRead(buf []byte, v *ListItem) int
func ListItemReadList(buf []byte, dest []ListItem) int
type GetClientContextCookie
    func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie
    func GetClientContextUnchecked(c *xgb.Conn, Resource uint32) GetClientContextCookie
    func (cook GetClientContextCookie) Reply() (*GetClientContextReply, error)
type GetClientContextReply
type GetDeviceContextCookie
    func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie
    func GetDeviceContextUnchecked(c *xgb.Conn, Device uint32) GetDeviceContextCookie
    func (cook GetDeviceContextCookie) Reply() (*GetDeviceContextReply, error)
type GetDeviceContextReply
type GetDeviceCreateContextCookie
    func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie
    func GetDeviceCreateContextUnchecked(c *xgb.Conn) GetDeviceCreateContextCookie
    func (cook GetDeviceCreateContextCookie) Reply() (*GetDeviceCreateContextReply, error)
type GetDeviceCreateContextReply
type GetPropertyContextCookie
    func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie
    func GetPropertyContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie
    func (cook GetPropertyContextCookie) Reply() (*GetPropertyContextReply, error)
type GetPropertyContextReply
type GetPropertyCreateContextCookie
    func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie
    func GetPropertyCreateContextUnchecked(c *xgb.Conn) GetPropertyCreateContextCookie
    func (cook GetPropertyCreateContextCookie) Reply() (*GetPropertyCreateContextReply, error)
type GetPropertyCreateContextReply
type GetPropertyDataContextCookie
    func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie
    func GetPropertyDataContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie
    func (cook GetPropertyDataContextCookie) Reply() (*GetPropertyDataContextReply, error)
type GetPropertyDataContextReply
type GetPropertyUseContextCookie
    func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie
    func GetPropertyUseContextUnchecked(c *xgb.Conn) GetPropertyUseContextCookie
    func (cook GetPropertyUseContextCookie) Reply() (*GetPropertyUseContextReply, error)
type GetPropertyUseContextReply
type GetSelectionContextCookie
    func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie
    func GetSelectionContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie
    func (cook GetSelectionContextCookie) Reply() (*GetSelectionContextReply, error)
type GetSelectionContextReply
type GetSelectionCreateContextCookie
    func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie
    func GetSelectionCreateContextUnchecked(c *xgb.Conn) GetSelectionCreateContextCookie
    func (cook GetSelectionCreateContextCookie) Reply() (*GetSelectionCreateContextReply, error)
type GetSelectionCreateContextReply
type GetSelectionDataContextCookie
    func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie
    func GetSelectionDataContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie
    func (cook GetSelectionDataContextCookie) Reply() (*GetSelectionDataContextReply, error)
type GetSelectionDataContextReply
type GetSelectionUseContextCookie
    func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie
    func GetSelectionUseContextUnchecked(c *xgb.Conn) GetSelectionUseContextCookie
    func (cook GetSelectionUseContextCookie) Reply() (*GetSelectionUseContextReply, error)
type GetSelectionUseContextReply
type GetWindowContextCookie
    func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie
    func GetWindowContextUnchecked(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie
    func (cook GetWindowContextCookie) Reply() (*GetWindowContextReply, error)
type GetWindowContextReply
type GetWindowCreateContextCookie
    func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie
    func GetWindowCreateContextUnchecked(c *xgb.Conn) GetWindowCreateContextCookie
    func (cook GetWindowCreateContextCookie) Reply() (*GetWindowCreateContextReply, error)
type GetWindowCreateContextReply
type ListItem
    func (v ListItem) Bytes() []byte
type ListPropertiesCookie
    func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie
    func ListPropertiesUnchecked(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie
    func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)
type ListPropertiesReply
type ListSelectionsCookie
    func ListSelections(c *xgb.Conn) ListSelectionsCookie
    func ListSelectionsUnchecked(c *xgb.Conn) ListSelectionsCookie
    func (cook ListSelectionsCookie) Reply() (*ListSelectionsReply, error)
type ListSelectionsReply
type QueryVersionCookie
    func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie
    func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie
    func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
type QueryVersionReply
type SetDeviceContextCookie
    func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie
    func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie
    func (cook SetDeviceContextCookie) Check() error
type SetDeviceCreateContextCookie
    func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie
    func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie
    func (cook SetDeviceCreateContextCookie) Check() error
type SetPropertyCreateContextCookie
    func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie
    func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie
    func (cook SetPropertyCreateContextCookie) Check() error
type SetPropertyUseContextCookie
    func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie
    func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie
    func (cook SetPropertyUseContextCookie) Check() error
type SetSelectionCreateContextCookie
    func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie
    func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie
    func (cook SetSelectionCreateContextCookie) Check() error
type SetSelectionUseContextCookie
    func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie
    func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie
    func (cook SetSelectionUseContextCookie) Check() error
type SetWindowCreateContextCookie
    func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie
    func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie
    func (cook SetWindowCreateContextCookie) Check() error

Package files

xselinux.go

func Init

func Init(c *xgb.Conn) error

Init must be called before using the SELinux extension.

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.

type GetClientContextCookie

type GetClientContextCookie struct {
    *xgb.Cookie
}

GetClientContextCookie is a cookie used only for GetClientContext requests.

func GetClientContext

func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie

GetClientContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply()

func GetClientContextUnchecked

func GetClientContextUnchecked(c *xgb.Conn, Resource uint32) GetClientContextCookie

GetClientContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetClientContextCookie) Reply

func (cook GetClientContextCookie) Reply() (*GetClientContextReply, error)

Reply blocks and returns the reply data for a GetClientContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetClientContextReply represents the data returned from a GetClientContext request.

type GetDeviceContextCookie

type GetDeviceContextCookie struct {
    *xgb.Cookie
}

GetDeviceContextCookie is a cookie used only for GetDeviceContext requests.

func GetDeviceContext

func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie

GetDeviceContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply()

func GetDeviceContextUnchecked

func GetDeviceContextUnchecked(c *xgb.Conn, Device uint32) GetDeviceContextCookie

GetDeviceContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceContextCookie) Reply

func (cook GetDeviceContextCookie) Reply() (*GetDeviceContextReply, error)

Reply blocks and returns the reply data for a GetDeviceContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetDeviceContextReply represents the data returned from a GetDeviceContext request.

type GetDeviceCreateContextCookie

type GetDeviceCreateContextCookie struct {
    *xgb.Cookie
}

GetDeviceCreateContextCookie is a cookie used only for GetDeviceCreateContext requests.

func GetDeviceCreateContext

func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie

GetDeviceCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply()

func GetDeviceCreateContextUnchecked

func GetDeviceCreateContextUnchecked(c *xgb.Conn) GetDeviceCreateContextCookie

GetDeviceCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceCreateContextCookie) Reply

func (cook GetDeviceCreateContextCookie) Reply() (*GetDeviceCreateContextReply, error)

Reply blocks and returns the reply data for a GetDeviceCreateContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetDeviceCreateContextReply represents the data returned from a GetDeviceCreateContext request.

type GetPropertyContextCookie

type GetPropertyContextCookie struct {
    *xgb.Cookie
}

GetPropertyContextCookie is a cookie used only for GetPropertyContext requests.

func GetPropertyContext

func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie

GetPropertyContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply()

func GetPropertyContextUnchecked

func GetPropertyContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie

GetPropertyContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPropertyContextCookie) Reply

func (cook GetPropertyContextCookie) Reply() (*GetPropertyContextReply, error)

Reply blocks and returns the reply data for a GetPropertyContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetPropertyContextReply represents the data returned from a GetPropertyContext request.

type GetPropertyCreateContextCookie

type GetPropertyCreateContextCookie struct {
    *xgb.Cookie
}

GetPropertyCreateContextCookie is a cookie used only for GetPropertyCreateContext requests.

func GetPropertyCreateContext

func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie

GetPropertyCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply()

func GetPropertyCreateContextUnchecked

func GetPropertyCreateContextUnchecked(c *xgb.Conn) GetPropertyCreateContextCookie

GetPropertyCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPropertyCreateContextCookie) Reply

func (cook GetPropertyCreateContextCookie) Reply() (*GetPropertyCreateContextReply, error)

Reply blocks and returns the reply data for a GetPropertyCreateContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetPropertyCreateContextReply represents the data returned from a GetPropertyCreateContext request.

type GetPropertyDataContextCookie

type GetPropertyDataContextCookie struct {
    *xgb.Cookie
}

GetPropertyDataContextCookie is a cookie used only for GetPropertyDataContext requests.

func GetPropertyDataContext

func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie

GetPropertyDataContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply()

func GetPropertyDataContextUnchecked

func GetPropertyDataContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie

GetPropertyDataContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPropertyDataContextCookie) Reply

func (cook GetPropertyDataContextCookie) Reply() (*GetPropertyDataContextReply, error)

Reply blocks and returns the reply data for a GetPropertyDataContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetPropertyDataContextReply represents the data returned from a GetPropertyDataContext request.

type GetPropertyUseContextCookie

type GetPropertyUseContextCookie struct {
    *xgb.Cookie
}

GetPropertyUseContextCookie is a cookie used only for GetPropertyUseContext requests.

func GetPropertyUseContext

func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie

GetPropertyUseContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply()

func GetPropertyUseContextUnchecked

func GetPropertyUseContextUnchecked(c *xgb.Conn) GetPropertyUseContextCookie

GetPropertyUseContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPropertyUseContextCookie) Reply

func (cook GetPropertyUseContextCookie) Reply() (*GetPropertyUseContextReply, error)

Reply blocks and returns the reply data for a GetPropertyUseContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetPropertyUseContextReply represents the data returned from a GetPropertyUseContext request.

type GetSelectionContextCookie

type GetSelectionContextCookie struct {
    *xgb.Cookie
}

GetSelectionContextCookie is a cookie used only for GetSelectionContext requests.

func GetSelectionContext

func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie

GetSelectionContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply()

func GetSelectionContextUnchecked

func GetSelectionContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie

GetSelectionContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetSelectionContextCookie) Reply

func (cook GetSelectionContextCookie) Reply() (*GetSelectionContextReply, error)

Reply blocks and returns the reply data for a GetSelectionContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetSelectionContextReply represents the data returned from a GetSelectionContext request.

type GetSelectionCreateContextCookie

type GetSelectionCreateContextCookie struct {
    *xgb.Cookie
}

GetSelectionCreateContextCookie is a cookie used only for GetSelectionCreateContext requests.

func GetSelectionCreateContext

func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie

GetSelectionCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply()

func GetSelectionCreateContextUnchecked

func GetSelectionCreateContextUnchecked(c *xgb.Conn) GetSelectionCreateContextCookie

GetSelectionCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetSelectionCreateContextCookie) Reply

func (cook GetSelectionCreateContextCookie) Reply() (*GetSelectionCreateContextReply, error)

Reply blocks and returns the reply data for a GetSelectionCreateContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetSelectionCreateContextReply represents the data returned from a GetSelectionCreateContext request.

type GetSelectionDataContextCookie

type GetSelectionDataContextCookie struct {
    *xgb.Cookie
}

GetSelectionDataContextCookie is a cookie used only for GetSelectionDataContext requests.

func GetSelectionDataContext

func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie

GetSelectionDataContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply()

func GetSelectionDataContextUnchecked

func GetSelectionDataContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie

GetSelectionDataContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetSelectionDataContextCookie) Reply

func (cook GetSelectionDataContextCookie) Reply() (*GetSelectionDataContextReply, error)

Reply blocks and returns the reply data for a GetSelectionDataContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetSelectionDataContextReply represents the data returned from a GetSelectionDataContext request.

type GetSelectionUseContextCookie

type GetSelectionUseContextCookie struct {
    *xgb.Cookie
}

GetSelectionUseContextCookie is a cookie used only for GetSelectionUseContext requests.

func GetSelectionUseContext

func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie

GetSelectionUseContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply()

func GetSelectionUseContextUnchecked

func GetSelectionUseContextUnchecked(c *xgb.Conn) GetSelectionUseContextCookie

GetSelectionUseContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetSelectionUseContextCookie) Reply

func (cook GetSelectionUseContextCookie) Reply() (*GetSelectionUseContextReply, error)

Reply blocks and returns the reply data for a GetSelectionUseContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetSelectionUseContextReply represents the data returned from a GetSelectionUseContext request.

type GetWindowContextCookie

type GetWindowContextCookie struct {
    *xgb.Cookie
}

GetWindowContextCookie is a cookie used only for GetWindowContext requests.

func GetWindowContext

func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie

GetWindowContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply()

func GetWindowContextUnchecked

func GetWindowContextUnchecked(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie

GetWindowContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetWindowContextCookie) Reply

func (cook GetWindowContextCookie) Reply() (*GetWindowContextReply, error)

Reply blocks and returns the reply data for a GetWindowContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetWindowContextReply represents the data returned from a GetWindowContext request.

type GetWindowCreateContextCookie

type GetWindowCreateContextCookie struct {
    *xgb.Cookie
}

GetWindowCreateContextCookie is a cookie used only for GetWindowCreateContext requests.

func GetWindowCreateContext

func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie

GetWindowCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply()

func GetWindowCreateContextUnchecked

func GetWindowCreateContextUnchecked(c *xgb.Conn) GetWindowCreateContextCookie

GetWindowCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetWindowCreateContextCookie) Reply

func (cook GetWindowCreateContextCookie) Reply() (*GetWindowCreateContextReply, error)

Reply blocks and returns the reply data for a GetWindowCreateContext request.

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: xgb.Pad((int(ContextLen) * 1))
}

GetWindowCreateContextReply represents the data returned from a GetWindowCreateContext request.

type ListItem

type ListItem struct {
    Name             xproto.Atom
    ObjectContextLen uint32
    DataContextLen   uint32
    ObjectContext    string // size: xgb.Pad((int(ObjectContextLen) * 1))
    DataContext      string // size: xgb.Pad((int(DataContextLen) * 1))
}

func (ListItem) Bytes

func (v ListItem) Bytes() []byte

Bytes writes a ListItem value to a byte slice.

type ListPropertiesCookie

type ListPropertiesCookie struct {
    *xgb.Cookie
}

ListPropertiesCookie is a cookie used only for ListProperties requests.

func ListProperties

func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie

ListProperties sends a checked request. If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()

func ListPropertiesUnchecked

func ListPropertiesUnchecked(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie

ListPropertiesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ListPropertiesCookie) Reply

func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)

Reply blocks and returns the reply data for a ListProperties request.

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.

type ListSelectionsCookie

type ListSelectionsCookie struct {
    *xgb.Cookie
}

ListSelectionsCookie is a cookie used only for ListSelections requests.

func ListSelections

func ListSelections(c *xgb.Conn) ListSelectionsCookie

ListSelections sends a checked request. If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply()

func ListSelectionsUnchecked

func ListSelectionsUnchecked(c *xgb.Conn) ListSelectionsCookie

ListSelectionsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ListSelectionsCookie) Reply

func (cook ListSelectionsCookie) Reply() (*ListSelectionsReply, error)

Reply blocks and returns the reply data for a ListSelections request.

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.

type QueryVersionCookie

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion

func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie

QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie

QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryVersionCookie) Reply

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

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.

type SetDeviceContextCookie

type SetDeviceContextCookie struct {
    *xgb.Cookie
}

SetDeviceContextCookie is a cookie used only for SetDeviceContext requests.

func SetDeviceContext

func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie

SetDeviceContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetDeviceContextChecked

func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie

SetDeviceContextChecked sends a checked request. If an error occurs, it can be retrieved using SetDeviceContextCookie.Check()

func (SetDeviceContextCookie) Check

func (cook SetDeviceContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetDeviceCreateContextCookie

type SetDeviceCreateContextCookie struct {
    *xgb.Cookie
}

SetDeviceCreateContextCookie is a cookie used only for SetDeviceCreateContext requests.

func SetDeviceCreateContext

func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie

SetDeviceCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetDeviceCreateContextChecked

func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie

SetDeviceCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check()

func (SetDeviceCreateContextCookie) Check

func (cook SetDeviceCreateContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetPropertyCreateContextCookie

type SetPropertyCreateContextCookie struct {
    *xgb.Cookie
}

SetPropertyCreateContextCookie is a cookie used only for SetPropertyCreateContext requests.

func SetPropertyCreateContext

func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie

SetPropertyCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetPropertyCreateContextChecked

func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie

SetPropertyCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check()

func (SetPropertyCreateContextCookie) Check

func (cook SetPropertyCreateContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetPropertyUseContextCookie

type SetPropertyUseContextCookie struct {
    *xgb.Cookie
}

SetPropertyUseContextCookie is a cookie used only for SetPropertyUseContext requests.

func SetPropertyUseContext

func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie

SetPropertyUseContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetPropertyUseContextChecked

func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie

SetPropertyUseContextChecked sends a checked request. If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check()

func (SetPropertyUseContextCookie) Check

func (cook SetPropertyUseContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetSelectionCreateContextCookie

type SetSelectionCreateContextCookie struct {
    *xgb.Cookie
}

SetSelectionCreateContextCookie is a cookie used only for SetSelectionCreateContext requests.

func SetSelectionCreateContext

func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie

SetSelectionCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetSelectionCreateContextChecked

func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie

SetSelectionCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check()

func (SetSelectionCreateContextCookie) Check

func (cook SetSelectionCreateContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetSelectionUseContextCookie

type SetSelectionUseContextCookie struct {
    *xgb.Cookie
}

SetSelectionUseContextCookie is a cookie used only for SetSelectionUseContext requests.

func SetSelectionUseContext

func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie

SetSelectionUseContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetSelectionUseContextChecked

func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie

SetSelectionUseContextChecked sends a checked request. If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check()

func (SetSelectionUseContextCookie) Check

func (cook SetSelectionUseContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetWindowCreateContextCookie

type SetWindowCreateContextCookie struct {
    *xgb.Cookie
}

SetWindowCreateContextCookie is a cookie used only for SetWindowCreateContext requests.

func SetWindowCreateContext

func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie

SetWindowCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetWindowCreateContextChecked

func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie

SetWindowCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check()

func (SetWindowCreateContextCookie) Check

func (cook SetWindowCreateContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.