summaryrefslogtreecommitdiff
path: root/vendor/github.com/godbus/dbus/v5/call.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-02-03 10:12:35 +0000
committerLibravatar GitHub <noreply@github.com>2025-02-03 10:12:35 +0000
commitc086d4048c2a26a0bf70c1ced24c78680a786710 (patch)
treecf7606e8452e9047d7f0e0d9b6de10edf7ebdc89 /vendor/github.com/godbus/dbus/v5/call.go
parent[chore]: Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 (#3725) (diff)
downloadgotosocial-c086d4048c2a26a0bf70c1ced24c78680a786710.tar.xz
[chore]: Bump github.com/KimMachineGun/automemlimit from 0.6.1 to 0.7.0 (#3726)
Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 0.6.1 to 0.7.0. - [Release notes](https://github.com/KimMachineGun/automemlimit/releases) - [Commits](https://github.com/KimMachineGun/automemlimit/compare/v0.6.1...v0.7.0) --- updated-dependencies: - dependency-name: github.com/KimMachineGun/automemlimit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/godbus/dbus/v5/call.go')
-rw-r--r--vendor/github.com/godbus/dbus/v5/call.go69
1 files changed, 0 insertions, 69 deletions
diff --git a/vendor/github.com/godbus/dbus/v5/call.go b/vendor/github.com/godbus/dbus/v5/call.go
deleted file mode 100644
index b06b06358..000000000
--- a/vendor/github.com/godbus/dbus/v5/call.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package dbus
-
-import (
- "context"
- "errors"
-)
-
-var errSignature = errors.New("dbus: mismatched signature")
-
-// Call represents a pending or completed method call.
-type Call struct {
- Destination string
- Path ObjectPath
- Method string
- Args []interface{}
-
- // Strobes when the call is complete.
- Done chan *Call
-
- // After completion, the error status. If this is non-nil, it may be an
- // error message from the peer (with Error as its type) or some other error.
- Err error
-
- // Holds the response once the call is done.
- Body []interface{}
-
- // ResponseSequence stores the sequence number of the DBus message containing
- // the call response (or error). This can be compared to the sequence number
- // of other call responses and signals on this connection to determine their
- // relative ordering on the underlying DBus connection.
- // For errors, ResponseSequence is populated only if the error came from a
- // DBusMessage that was received or if there was an error receiving. In case of
- // failure to make the call, ResponseSequence will be NoSequence.
- ResponseSequence Sequence
-
- // tracks context and canceler
- ctx context.Context
- ctxCanceler context.CancelFunc
-}
-
-func (c *Call) Context() context.Context {
- if c.ctx == nil {
- return context.Background()
- }
-
- return c.ctx
-}
-
-func (c *Call) ContextCancel() {
- if c.ctxCanceler != nil {
- c.ctxCanceler()
- }
-}
-
-// 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 error status is not nil.
-func (c *Call) Store(retvalues ...interface{}) error {
- if c.Err != nil {
- return c.Err
- }
-
- return Store(c.Body, retvalues...)
-}
-
-func (c *Call) done() {
- c.Done <- c
- c.ContextCancel()
-}