MCPcopy Index your code

hub / github.com/godbus/dbus / functions

Functions642 in github.com/godbus/dbus

↓ 98 callersFunctionMakeVariant
MakeVariant converts the given value to a Variant. It panics if v cannot be represented as a D-Bus type.
variant.go:19
↓ 67 callersMethodCall
(method string, flags Flags, args ...any)
object.go:12
↓ 66 callersMethodClose
Close closes the connection. Any blocked operations will return with errors and the channels passed to Eavesdrop and Signal are closed. This method mu
conn.go:318
↓ 65 callersMethodStore
Store stores the body of the reply into the provided pointers. It returns an error if the signatures of the body and retvalues don't match, or if the
call.go:55
↓ 57 callersFunctionConnectSessionBus
ConnectSessionBus connects to the session bus.
conn.go:137
↓ 56 callersMethodError
()
conn.go:725
↓ 47 callersMethodObject
Object returns the object identified by the given destination name and path.
conn.go:485
↓ 36 callersFunctionStore
Store copies the values contained in src to dest, which must be a slice of pointers. It converts slices of interfaces from src to corresponding struct
dbus.go:45
↓ 34 callersMethodNames
Names returns the list of all names that are currently owned by this connection. The slice is always at least one element long, the first element bein
conn.go:480
↓ 31 callersMethodExport
Export registers the given value to be exported as an object on the message bus. If a method call on the given path and interface is received, an exp
export.go:277
↓ 31 callersFunctionSignatureOf
SignatureOf returns the concatenation of all the signatures of the given values. It panics if one of them is not representable in D-Bus.
sig.go:34
↓ 30 callersMethodDecode
(sig Signature)
decoder.go:62
↓ 29 callersMethodEncode
Encode encodes the given values to the underlying reader. All written values are aligned properly as required by the D-Bus spec.
encoder.go:70
↓ 28 callersMethodClose
()
conn_test.go:156
↓ 27 callersMethodString
()
variant_parser.go:34
↓ 26 callersFunctionnewDecoder
newDecoder returns a new decoder that reads values from in. The input is expected to be in the given byte order.
decoder.go:25
↓ 24 callersMethodWrite
(p []byte)
message.go:218
↓ 24 callersFunctionnewEncoder
NewEncoder returns a new encoder that writes to out in the given byte order.
encoder.go:21
↓ 19 callersMethodClose
()
server_interfaces_test.go:180
↓ 17 callersMethodnext
()
variant_lexer.go:82
↓ 16 callersMethodemit
(t varTokenType)
variant_lexer.go:65
↓ 15 callersMethodAddSignal
(ch chan<- *Signal)
server_interfaces.go:84
↓ 15 callersMethodValue
(Signature)
variant_parser.go:36
↓ 14 callersFunctionauthWriteLine
authWriteLine writes the given line in the authentication protocol format (elements of data separated by a " " and terminated by "\r\n").
auth.go:239
↓ 12 callersMethodBusObject
BusObject returns the object owned by the bus daemon which handles administrative requests.
conn.go:311
↓ 12 callersMethodName
()
server_interfaces_test.go:185
↓ 12 callersMethodRead
(b []byte)
transport_unix.go:39
↓ 12 callersFunctionWithMatchInterface
WithMatchSender sets interface match option.
match.go:41
↓ 12 callersFunctionWithMatchMember
WithMatchMember sets member match option.
match.go:46
↓ 12 callersFunctioncomparePropValue
(obj dbus.BusObject, name string, want any, t *testing.T)
prop/prop_test.go:15
↓ 12 callersFunctionisVariant
(t reflect.Type)
dbus.go:296
↓ 11 callersMethodEmit
Emit emits the given signal on the message bus. The name parameter must be formatted as "interface.member", e.g., "org.freedesktop.DBus.NameLost".
export.go:221
↓ 11 callersMethodEmpty
()
variant_parser.go:103
↓ 11 callersMethodEncodeTo
EncodeTo encodes and sends a message to the given writer. The byte order must be either binary.LittleEndian or binary.BigEndian. If the message is not
message.go:285
↓ 11 callersFunctionWithMatchOption
WithMatchOption creates match option with given key and value
match.go:25
↓ 11 callersFunctiongetKey
getKey gets a key from a the list of keys. Returns "" on error / not found...
conn.go:791
↓ 10 callersFunctionNewSequentialSignalHandler
NewSequentialSignalHandler returns an instance of a new signal handler that guarantees sequential processing of signals. It is a guarantee of this sig
sequential_handler.go:11
↓ 10 callersMethodReset
Reset resets the decoder to be reading from in.
decoder.go:35
↓ 10 callersMethodSet
Set implements org.freedesktop.Properties.Set.
prop/prop.go:310
↓ 10 callersMethodSignal
Signal registers the given channel to be passed all received signal messages. Multiple of these channels can be registered at the same time. The chan
conn.go:688
↓ 10 callersMethodbackup
()
variant_lexer.go:61
↓ 10 callersMethodnext
()
variant_parser.go:23
↓ 9 callersFunctionNewConn
NewConn creates a new private *Conn from an already established connection.
conn.go:263
↓ 9 callersMethodalign
align aligns the input to the given boundary and panics on error.
decoder.go:47
↓ 9 callersFunctionnewTester
()
server_interfaces_test.go:217
↓ 9 callersMethodread2buf
read2buf reads exactly n bytes from the reader dec.in into the buffer dec.buf to reduce memory allocs. The buffer grows automatically.
decoder.go:89
↓ 9 callersFunctiontypeFor
typeFor returns the type of the given signature. It ignores any left over characters and panics if s doesn't start with a valid type signature.
sig.go:277
↓ 9 callersFunctionwriteSignals
(handler SignalHandler, count int)
sequential_handler_test.go:205
↓ 8 callersMethodTerminate
()
server_interfaces.go:6
↓ 8 callersMethodbinwrite
Calls binary.Write(enc.out, enc.order, v) and panics on write errors.
encoder.go:62
↓ 8 callersMethodsendError
sendError creates an error message corresponding to the parameters and sends it to conn.out.
conn.go:599
↓ 8 callersFunctionstore
(dest, src reflect.Value)
dbus.go:62
↓ 7 callersMethodConnected
Connected returns whether conn is connected
conn.go:349
↓ 7 callersMethodaccept
(valid string)
variant_lexer.go:53
↓ 7 callersFunctioncountSignals
(channel <-chan *Signal)
sequential_handler_test.go:230
↓ 7 callersMethodsendMessageAndIfClosed
(msg *Message, ifClosed func())
conn.go:489
↓ 6 callersMethodAddMatchSignal
(iface, member string, options ...MatchOption)
object.go:16
↓ 6 callersFunctionDecodeMessage
DecodeMessage tries to decode a single message in the D-Bus wire format from the given reader. The byte order is figured out from the first byte. The
message.go:212
↓ 6 callersFunctionDial
Dial establishes a new private connection to the message bus specified by address.
conn.go:185
↓ 6 callersMethodEnterArray
()
sig.go:187
↓ 6 callersMethodSetProperty
(p string, v any)
object.go:20
↓ 6 callersFunctionWithSignalHandler
WithSignalHandler overrides the default signal handler.
conn.go:212
↓ 6 callersMethoddecodeU
decodeU decodes uint32 obtained from the reader dec.in. The goal is to reduce memory allocs.
decoder.go:102
↓ 6 callersFunctionstoreBase
(dest, src reflect.Value)
dbus.go:79
↓ 6 callersFunctionvalidSingle
Try to read a single type from this string. If it was successful, err is nil and rem is the remaining unparsed part. Otherwise, err is a non-nil Signa
sig.go:206
↓ 5 callersMethodAuth
Auth authenticates the connection, trying the given list of authentication mechanisms (in that order). If nil is passed, the EXTERNAL and DBUS_COOKIE_
auth.go:54
↓ 5 callersMethodIsValid
IsValid checks whether msg is a valid message and returns an InvalidMessageError or FormatError if it is not.
message.go:292
↓ 5 callersFunctionWithHandler
WithHandler overrides the default handler.
conn.go:204
↓ 5 callersFunctionalignment
alignment returns the alignment of values of type t.
dbus.go:341
↓ 5 callersMethodbackup
()
variant_parser.go:19
↓ 5 callersMethoderrorf
(format string, v ...any)
variant_lexer.go:70
↓ 5 callersFunctionformatMatchOptions
(options []MatchOption)
match.go:16
↓ 5 callersMethodpadding
pad returns the number of bytes of padding, based on current position and additional offset. and alignment.
encoder.go:52
↓ 5 callersFunctionreadSignals
(t *testing.T, channel <-chan *Signal)
sequential_handler_test.go:212
↓ 5 callersFunctionvarInfer
(n varNode)
variant_parser.go:810
↓ 5 callersFunctionvarMakeNode
(p *varParser)
variant_parser.go:39
↓ 5 callersFunctionwithMatchTypeSignal
It does not make sense to have a public WithMatchType function because clients can only subscribe to messages with signal type.
match.go:31
↓ 4 callersFunctionConnect
Connect connects to the given address. Returned connection is ready to use and doesn't require calling Auth and Hello methods to make it usable.
conn.go:154
↓ 4 callersMethodEnterDictEntry
()
sig.go:197
↓ 4 callersMethodFoo
(message Message, param string)
export_test.go:16
↓ 4 callersMethodGo
(method string, flags Flags, ch chan *Call, args ...any)
object.go:14
↓ 4 callersFunctionParseSignature
ParseSignature returns the signature represented by this string, or a SignatureError if the string is not a valid signature.
sig.go:124
↓ 4 callersMethodRemoveSignal
(ch chan<- *Signal)
server_interfaces.go:85
↓ 4 callersMethodRetireSerial
(serial uint32)
server_interfaces.go:106
↓ 4 callersMethodSigs
()
variant_parser.go:35
↓ 4 callersMethodalign
Aligns the next output to be on a multiple of n. Panics on write errors.
encoder.go:39
↓ 4 callersMethodcreateCall
(ctx context.Context, method string, flags Flags, ch chan *Call, args ...any)
object.go:101
↓ 4 callersMethodexport
export is the worker function for all exports/registrations.
export.go:377
↓ 4 callersMethodhandleSendError
(msg *Message, err error)
conn.go:515
↓ 4 callersMethodvalidateHeader
()
message.go:296
↓ 4 callersFunctionwaitSignal
(sigc <-chan *Signal, name string)
conn_test.go:340
↓ 3 callersMethodAddMatchSignalContext
AddMatchSignalContext acts like AddMatchSignal but takes a context.
conn.go:653
↓ 3 callersMethodCallWithContext
(ctx context.Context, method string, flags Flags, args ...any)
object.go:13
↓ 3 callersFunctionConnectSystemBus
ConnectSystemBus connects to the system bus.
conn.go:146
↓ 3 callersMethodEavesdrop
Eavesdrop causes conn to send all incoming messages to the given channel without further processing. Method replies, errors and signals will not be se
conn.go:361
↓ 3 callersFunctionEscapeBusAddressValue
EscapeBusAddressValue implements a requirement to escape the values in D-Bus server addresses, as defined by the D-Bus specification at https://dbus.f
escape.go:8
↓ 3 callersMethodExportMethodTable
ExportMethodTable like Export registers the given methods as an object on the message bus. Unlike Export the it uses a method table to define the obje
export.go:335
↓ 3 callersMethodExportSubtree
ExportSubtree works exactly like Export but registers the given value for an entire subtree rather under the root path provided. In order to make thi
export.go:312
↓ 3 callersMethodExportSubtreeWithMap
ExportSubtreeWithMap works exactly like ExportSubtree but provides the ability to remap method names (e.g. export a lower-case method). The keys in t
export.go:321
↓ 3 callersMethodExportWithMap
ExportWithMap works exactly like Export but provides the ability to remap method names (e.g. export a lower-case method). The keys in the map are the
export.go:298
next →1–100 of 642, ranked by callers