...

Package xselinux

import "github.com/jezek/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

GetClientContextCookie is a cookie used only for GetClientContext requests.

type GetClientContextCookie struct {
    *xgb.Cookie
}

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

GetClientContextReply represents the data returned from a GetClientContext request.

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))
}

type GetDeviceContextCookie

GetDeviceContextCookie is a cookie used only for GetDeviceContext requests.

type GetDeviceContextCookie struct {
    *xgb.Cookie
}

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

GetDeviceContextReply represents the data returned from a GetDeviceContext request.

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))
}

type GetDeviceCreateContextCookie

GetDeviceCreateContextCookie is a cookie used only for GetDeviceCreateContext requests.

type GetDeviceCreateContextCookie struct {
    *xgb.Cookie
}

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

GetDeviceCreateContextReply represents the data returned from a GetDeviceCreateContext request.

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))
}

type GetPropertyContextCookie

GetPropertyContextCookie is a cookie used only for GetPropertyContext requests.

type GetPropertyContextCookie struct {
    *xgb.Cookie
}

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

GetPropertyContextReply represents the data returned from a GetPropertyContext request.

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))
}

type GetPropertyCreateContextCookie

GetPropertyCreateContextCookie is a cookie used only for GetPropertyCreateContext requests.

type GetPropertyCreateContextCookie struct {
    *xgb.Cookie
}

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

GetPropertyCreateContextReply represents the data returned from a GetPropertyCreateContext request.

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))
}

type GetPropertyDataContextCookie

GetPropertyDataContextCookie is a cookie used only for GetPropertyDataContext requests.

type GetPropertyDataContextCookie struct {
    *xgb.Cookie
}

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

GetPropertyDataContextReply represents the data returned from a GetPropertyDataContext request.

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))
}

type GetPropertyUseContextCookie

GetPropertyUseContextCookie is a cookie used only for GetPropertyUseContext requests.

type GetPropertyUseContextCookie struct {
    *xgb.Cookie
}

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

GetPropertyUseContextReply represents the data returned from a GetPropertyUseContext request.

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))
}

type GetSelectionContextCookie

GetSelectionContextCookie is a cookie used only for GetSelectionContext requests.

type GetSelectionContextCookie struct {
    *xgb.Cookie
}

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

GetSelectionContextReply represents the data returned from a GetSelectionContext request.

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))
}

type GetSelectionCreateContextCookie

GetSelectionCreateContextCookie is a cookie used only for GetSelectionCreateContext requests.

type GetSelectionCreateContextCookie struct {
    *xgb.Cookie
}

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

GetSelectionCreateContextReply represents the data returned from a GetSelectionCreateContext request.

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))
}

type GetSelectionDataContextCookie

GetSelectionDataContextCookie is a cookie used only for GetSelectionDataContext requests.

type GetSelectionDataContextCookie struct {
    *xgb.Cookie
}

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

GetSelectionDataContextReply represents the data returned from a GetSelectionDataContext request.

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))
}

type GetSelectionUseContextCookie

GetSelectionUseContextCookie is a cookie used only for GetSelectionUseContext requests.

type GetSelectionUseContextCookie struct {
    *xgb.Cookie
}

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

GetSelectionUseContextReply represents the data returned from a GetSelectionUseContext request.

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))
}

type GetWindowContextCookie

GetWindowContextCookie is a cookie used only for GetWindowContext requests.

type GetWindowContextCookie struct {
    *xgb.Cookie
}

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

GetWindowContextReply represents the data returned from a GetWindowContext request.

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))
}

type GetWindowCreateContextCookie

GetWindowCreateContextCookie is a cookie used only for GetWindowCreateContext requests.

type GetWindowCreateContextCookie struct {
    *xgb.Cookie
}

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

GetWindowCreateContextReply represents the data returned from a GetWindowCreateContext request.

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))
}

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

ListPropertiesCookie is a cookie used only for ListProperties requests.

type ListPropertiesCookie struct {
    *xgb.Cookie
}

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

ListPropertiesReply represents the data returned from a ListProperties request.

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)
}

type ListSelectionsCookie

ListSelectionsCookie is a cookie used only for ListSelections requests.

type ListSelectionsCookie struct {
    *xgb.Cookie
}

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

ListSelectionsReply represents the data returned from a ListSelections request.

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)
}

type QueryVersionCookie

QueryVersionCookie is a cookie used only for QueryVersion requests.

type QueryVersionCookie struct {
    *xgb.Cookie
}

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

QueryVersionReply represents the data returned from a QueryVersion request.

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
}

type SetDeviceContextCookie

SetDeviceContextCookie is a cookie used only for SetDeviceContext requests.

type SetDeviceContextCookie struct {
    *xgb.Cookie
}

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

SetDeviceCreateContextCookie is a cookie used only for SetDeviceCreateContext requests.

type SetDeviceCreateContextCookie struct {
    *xgb.Cookie
}

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

SetPropertyCreateContextCookie is a cookie used only for SetPropertyCreateContext requests.

type SetPropertyCreateContextCookie struct {
    *xgb.Cookie
}

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

SetPropertyUseContextCookie is a cookie used only for SetPropertyUseContext requests.

type SetPropertyUseContextCookie struct {
    *xgb.Cookie
}

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

SetSelectionCreateContextCookie is a cookie used only for SetSelectionCreateContext requests.

type SetSelectionCreateContextCookie struct {
    *xgb.Cookie
}

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

SetSelectionUseContextCookie is a cookie used only for SetSelectionUseContext requests.

type SetSelectionUseContextCookie struct {
    *xgb.Cookie
}

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

SetWindowCreateContextCookie is a cookie used only for SetWindowCreateContext requests.

type SetWindowCreateContextCookie struct {
    *xgb.Cookie
}

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.