From 530b648bb826ef8a5dfaf5eaa85e8e8eb51ae1ef Mon Sep 17 00:00:00 2001 From: Clombrong Date: Mon, 30 Jun 2025 08:41:58 +0200 Subject: feat(jid): new type Jid.t --- lib/flesh.ml | 1 + lib/jid.ml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 lib/jid.ml (limited to 'lib') diff --git a/lib/flesh.ml b/lib/flesh.ml index 03882b4..084c21f 100644 --- a/lib/flesh.ml +++ b/lib/flesh.ml @@ -3,6 +3,7 @@ module Sasl = Sasl module Starttls = Starttls module Wire = Wire module Xml = Xml +module Jid = Jid open Lwt.Syntax open Lwt.Infix diff --git a/lib/jid.ml b/lib/jid.ml new file mode 100644 index 0000000..19759eb --- /dev/null +++ b/lib/jid.ml @@ -0,0 +1,5 @@ +type t = { + localpart : string option; + domainpart : string; + resourcepart : string option; + } -- cgit v1.2.3