diff --git a/protocol/packet/identity.go b/protocol/packet/identity.go index 9456eab..4edcb84 100644 --- a/protocol/packet/identity.go +++ b/protocol/packet/identity.go @@ -36,3 +36,7 @@ func (p *Packet) AsIdentity() (*Identity, error) { } return &identity, nil } + +func NewIdentity(identity *Identity) *Packet { + return New("kdeconnect.identity", identity) +}