Fix compiling issue led by vppapigen rework 30/11830/1
authorHongjun Ni <[email protected]>
Tue, 17 Apr 2018 14:26:25 +0000 (22:26 +0800)
committerHongjun Ni <[email protected]>
Tue, 17 Apr 2018 14:26:25 +0000 (22:26 +0800)
Change-Id: I2e7cc0f0302476e64f4aae328bc56e96cf6150b0
Signed-off-by: Hongjun Ni <[email protected]>
nsh-plugin/Makefile.am
nsh-plugin/java/Makefile.am
nsh-plugin/nsh/nsh_output.c

index 3f73fda..62eb5d8 100644 (file)
@@ -42,7 +42,7 @@ SUFFIXES = .api.h .api
 vpp-api/%.api.h: nsh/%.api
        mkdir -p `dirname $@` ; \
        $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
-       | vppapigen --input - --output $@ --show-name $@
+       | vppapigen --includedir $(top_srcdir) --input $< --output $@
 
 nobase_include_HEADERS =                       \
   vpp-api/nsh_all_api_h.h                      \
index f85e163..c6aa0b6 100644 (file)
@@ -63,6 +63,6 @@ $(jarfile_jnsh_sfc): libjvpp_nsh.la
 nsh.api.json: $(api_file)
        @echo "  jNsh_sfc API"; \
        $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
-       | vppapigen --input $(api_file) --json $@
+       | vppapigen --input $^ JSON --output $@
 
 all-local: $(jarfile_jnsh_sfc)
index 5671463..f0ac673 100644 (file)
@@ -201,8 +201,10 @@ nsh_output_inline (vlib_main_t * vm,
             }
           if (is_midchain)
           {
-              adj0->sub_type.midchain.fixup_func(vm, adj0, p0);
-              adj1->sub_type.midchain.fixup_func(vm, adj1, p1);
+              adj0->sub_type.midchain.fixup_func
+                (vm, adj0, p0, adj0->sub_type.midchain.fixup_data);
+              adj1->sub_type.midchain.fixup_func
+                (vm, adj1, p1, adj1->sub_type.midchain.fixup_data);
           }
 
           p0->error = error_node->errors[error0];
@@ -286,7 +288,8 @@ nsh_output_inline (vlib_main_t * vm,
             }
           if (is_midchain)
           {
-              adj0->sub_type.midchain.fixup_func(vm, adj0, p0);
+              adj0->sub_type.midchain.fixup_func
+                (vm, adj0, p0, adj0->sub_type.midchain.fixup_data);
           }
 
           p0->error = error_node->errors[error0];