From e7c1d85d9110ef1549dedc2deee9368b42c2a5e0 Mon Sep 17 00:00:00 2001 From: Feng Date: Tue, 8 Mar 2016 13:16:35 +0800 Subject: [PATCH] add mqtt_route record --- include/emqttd.hrl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/emqttd.hrl b/include/emqttd.hrl index e0349d57f..b68b583f0 100644 --- a/include/emqttd.hrl +++ b/include/emqttd.hrl @@ -47,7 +47,7 @@ %%-------------------------------------------------------------------- -record(mqtt_topic, { topic :: binary(), - node :: node() + flags :: [retained | static] }). -type mqtt_topic() :: #mqtt_topic{}. @@ -63,6 +63,16 @@ -type mqtt_subscription() :: #mqtt_subscription{}. +%%-------------------------------------------------------------------- +%% MQTT Route +%%-------------------------------------------------------------------- +-record(mqtt_route, { + topic :: binary(), + node :: node() +}). + +-type mqtt_route() :: #mqtt_route{}. + %%-------------------------------------------------------------------- %% MQTT Client %%--------------------------------------------------------------------