summaryrefslogtreecommitdiff
path: root/src/driver/amgc_unit_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/amgc_unit_action.c')
-rw-r--r--src/driver/amgc_unit_action.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/driver/amgc_unit_action.c b/src/driver/amgc_unit_action.c
index 29bc446..6189481 100644
--- a/src/driver/amgc_unit_action.c
+++ b/src/driver/amgc_unit_action.c
@@ -11,34 +11,34 @@
#include "apimagic_driver_impl.h"
int amgc_perform_unit_action(
+ const struct amgc_driver_ctx * dctx,
const struct amgc_unit_ctx * uctx,
const struct amgc_action * action,
- const struct amgc_layout * layout,
- FILE * fout)
+ const struct amgc_layout * layout)
{
switch (action->action) {
case AMGC_OUTPUT_ENUM:
if (action->symbol)
return -1;
else
- return amgc_output_unit_enums(uctx,0,stdout);
+ return amgc_output_unit_enums(dctx,uctx,0);
case AMGC_LIST_ENUM:
if (action->symbol)
return -1;
else
- return amgc_list_unit_enums(uctx,0,stdout);
+ return amgc_list_unit_enums(dctx,uctx,0);
case AMGC_OUTPUT_TYPEDEF:
return amgc_output_unit_entities(
- uctx,ENTITY_TYPEDEF,action->subset,
- layout,fout);
+ dctx,uctx,ENTITY_TYPEDEF,
+ action->subset,layout);
case AMGC_OUTPUT_STRUCT:
- return amgc_output_unit_structs(uctx,layout,fout);
+ return amgc_output_unit_structs(dctx,uctx,layout);
case AMGC_OUTPUT_UNION:
- return amgc_output_unit_unions(uctx,layout,fout);
+ return amgc_output_unit_unions(dctx,uctx,layout);
}
return -1;