Skip to content

Commit 63371bb

Browse files
committed
fix type names in generates sigs
1 parent e745825 commit 63371bb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ val get_pcap_packet_incl_len : Cstruct.t -> Cstruct.uint32
8282
val set_pcap_packet_incl_len : Cstruct.t -> Cstruct.uint32 -> unit
8383
val get_pcap_packet_orig_len : Cstruct.t -> Cstruct.uint32
8484
val set_pcap_packet_orig_len : Cstruct.t -> Cstruct.uint32 -> unit
85+
val hexdump_pcap_packet_to_buffer : Buffer.t -> pcap_packet -> unit
86+
val hexdump_pcap_packet : Cstruct.t -> unit
8587
8688
val sizeof_ethernet : int
8789
val get_ethernet_dst : Cstruct.t -> Cstruct.t

syntax/pa_cstruct.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ let output_hexdump _loc s =
219219

220220
let output_hexdump_sig _loc s =
221221
<:sig_item<
222-
value $lid:"hexdump_"^s.name^"_to_buffer"$ : Buffer.t -> $lid:s.name$ -> unit;
223-
value $lid:"hexdump_"^s.name$ : $lid:s.name$ -> unit;
222+
value $lid:"hexdump_"^s.name^"_to_buffer"$ : Buffer.t -> Cstruct.t -> unit;
223+
value $lid:"hexdump_"^s.name$ : Cstruct.t -> unit;
224224
>>
225225

226226
let output_struct _loc s =

0 commit comments

Comments
 (0)