221V 1 год назад
Родитель
Сommit
e54eed97ce
2 измененных файлов с 9 добавлено и 3 удалено
  1. 8 3
      include/cx.hrl
  2. 1 0
      src/nitro_n2o.erl

+ 8 - 3
include/cx.hrl

@@ -2,9 +2,14 @@
 -define(NITRO_CX, true).
 
 
--record(cx, { handlers = [], actions = [], req = [], module = [], lang = [], path = [],
-              session = [], token = [], formatter=bert, params = [], node = [],
-              client_pid = [], state = [], from = [], vsn = []} ).
+%-record(cx, { handlers = [], actions = [], req = [], module = [], lang = [], path = [],
+%              session = [], token = [], formatter = bert, params = [], node = [],
+%              client_pid = [], state = [], from = [], vsn = [] } ).
+
+
+%% cx from n2o (n4u)
+%-record(cx, { handlers, actions, req, module, lang, path, session, formatter = false, params, form, state = [] }).
+-record(cx, { handlers = [], actions = [], req = [], module = [], lang = [], path = [], session = [], formatter = false, params = [], form = [], state = [] } ).
 
 
 -endif.

+ 1 - 0
src/nitro_n2o.erl

@@ -15,6 +15,7 @@
 % Nitrogen pickle handler
 
 %% todo mv this from nitro
+% todo compare with n2o (n4u) and cx without token
 
 info({text, <<"N2O,", Auth/binary>>}, Req, State) ->
   info(#init{token = Auth}, Req, State);