Skip to content

Commit

Permalink
Merge pull request #244 from qzhuyan/fxi/william/typing
Browse files Browse the repository at this point in the history
fix: export some types
  • Loading branch information
qzhuyan authored Dec 7, 2023
2 parents bbf19f0 + 0885a0c commit d549b4d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
2 changes: 2 additions & 0 deletions include/quicer_types.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
, param_conn_disable_1rtt_encryption => boolean()
%% Not working well
, param_conn_local_address => string()
, _ => _ %% for Application defined options
}.
-type conn_shutdown_flag() :: ?QUIC_CONNECTION_SHUTDOWN_FLAG_NONE |
?QUIC_CONNECTION_SHUTDOWN_FLAG_SILENT.
Expand All @@ -168,6 +169,7 @@
, start_flag => stream_start_flags()
, event_mask => uint32()
, disable_fpbuffer => boolean()
, _ => _ %% for Application defined options
}. %% @TODO expand

-type stream_open_flags() :: ?QUIC_STREAM_OPEN_FLAG_NONE |
Expand Down
32 changes: 28 additions & 4 deletions src/quicer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,37 @@


%% export types
-export_type([listener_handle/0,
listener_opts/0,
-export_type([%% handles
listener_handle/0,
listen_on/0,
connection_handle/0,
conn_opts/0,
stream_handle/0,
stream_opts/0

%% Options
conn_opts/0,
stream_opts/0,
listener_opts/0,

%% Flags
stream_open_flags/0,
stream_start_flags/0,
stream_shutdown_flags/0,

%% Events Props
recv_data_props/0,
peer_accepted_props/0,
stream_closed_props/0,
stream_start_completed_props/0,
transport_shutdown_props/0,
conn_closed_props/0,
connected_props/0,
new_conn_props/0,
streams_available_props/0,
new_stream_props/0,

%% Suporting types
error_code/0,
quicer_addr/0
]).

-type connection_opts() :: proplists:proplist() | conn_opts().
Expand Down

0 comments on commit d549b4d

Please sign in to comment.