@@ -36,6 +36,16 @@
-define(SHARE, <<"$share/">>). %% Shared Topic
+%%--------------------------------------------------------------------
+%% MQTT Topic
+-record(mqtt_topic, {
+ topic :: binary(),
+ flags :: [retained | static]
+ }).
+
+-type mqtt_topic() :: #mqtt_topic{}.
%%--------------------------------------------------------------------
%% PubSub
@@ -64,8 +64,6 @@ mnesia(boot) ->
{record_name, mqtt_topic},
{attributes, record_info(fields, mqtt_topic)}]);
-m
-
mnesia(copy) ->
ok = emqttd_mnesia:copy_table(mqtt_route, ram_copies),
ok = emqttd_mnesia:copy_table(topic).