Browse Source

protocol/packet: helper for creating identity packets

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
bboozzoo/golang
Maciek Borzecki 7 years ago
parent
commit
c5923774f4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      protocol/packet/identity.go

+ 4
- 0
protocol/packet/identity.go View File

@ -36,3 +36,7 @@ func (p *Packet) AsIdentity() (*Identity, error) {
} }
return &identity, nil return &identity, nil
} }
func NewIdentity(identity *Identity) *Packet {
return New("kdeconnect.identity", identity)
}

Loading…
Cancel
Save