Merge branch 'develop' into vtwopointoh
This commit is contained in:
commit
3bb65e9bab
12 changed files with 104 additions and 45 deletions
|
@ -35,6 +35,7 @@
|
|||
}).
|
||||
|
||||
-type config() :: list().
|
||||
-export_type([config/0]).
|
||||
|
||||
|
||||
-spec to_json(Source::any(), Config::config()) -> binary().
|
||||
|
@ -85,9 +86,14 @@ parse_config([], Config) ->
|
|||
-define(newline, <<"\n">>).
|
||||
|
||||
|
||||
-type state() :: {unicode:charlist(), #config{}}.
|
||||
-spec init(Config::proplists:proplist()) -> state().
|
||||
|
||||
init(Config) -> {[], parse_config(Config)}.
|
||||
|
||||
|
||||
-spec handle_event(Event::any(), State::state()) -> state().
|
||||
|
||||
handle_event(end_json, {Term, _Config}) -> Term;
|
||||
|
||||
handle_event(start_object, State) -> start_object(State);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue