Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qos3 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ ebin
rel/example_project
.concrete/DEV_MODE
.rebar
*~
*~
vernemq_dev.iml
4 changes: 3 additions & 1 deletion include/vernemq_dev.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-type subscriber_id() :: {mountpoint(), client_id()}.
-type reg_view() :: atom().
-type topic() :: [binary()] | binary(). %% binary() for test purposes only.
-type qos() :: 0 | 1 | 2.
-type qos() :: 0 | 1 | 2 | 3.
-type payload() :: binary().
-type flag() :: ?true | ?false | boolean() | empty. % empty for test purposes only
-type subopts() :: map().
Expand All @@ -28,6 +28,7 @@
-define(GRANTED_QOS0, granted_qos0).
-define(GRANTED_QOS1, granted_qos1).
-define(GRANTED_QOS2, granted_qos2).
-define(GRANTED_QOS3, granted_qos3).
-define(DISCONNECT_WITH_WILL_MSG, disconnect_with_will_msg).
-define(NO_MATCHING_SUBSCRIBERS, no_matching_subscribers).
-define(NO_SUBSCRIPTION_EXISTED, no_subscription_existed).
Expand Down Expand Up @@ -103,6 +104,7 @@
| ?GRANTED_QOS0
| ?GRANTED_QOS1
| ?GRANTED_QOS2
| ?GRANTED_QOS3
| ?DISCONNECT_WITH_WILL_MSG
| ?NO_MATCHING_SUBSCRIBERS
| ?NO_SUBSCRIPTION_EXISTED
Expand Down