From c9cf332214699402a58e90b960f610979628fd15 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 20 Oct 2008 15:20:39 +0200 Subject: [PATCH] Fixed generation of prototypes with native out types --- forb-idl/forb-idl-utils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/forb-idl/forb-idl-utils.c b/forb-idl/forb-idl-utils.c index dc8314d..bac2f9c 100644 --- a/forb-idl/forb-idl-utils.c +++ b/forb-idl/forb-idl-utils.c @@ -526,8 +526,13 @@ oidl_param_info(IDL_tree in_param, IDL_ParamRole role, gboolean *isSlice) case IDLN_NATIVE: if ( IDL_NATIVE (param).user_type && strcmp (IDL_NATIVE (param).user_type, - "IDL_variable_length_struct") == 0 ) + "IDL_variable_length_struct") == 0 ) { return role == DATA_OUT ? 2 : 1; + } + else { + return role == DATA_IN ? 0 : 1; + + } break; case IDLN_EXCEPT_DCL: -- 2.39.2