summaryrefslogtreecommitdiffhomepage
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/amgc_unit_action.c b/src/driver/amgc_unit_action.c
index 04cfb8f..0a07cb9 100644
--- a/src/driver/amgc_unit_action.c
+++ b/src/driver/amgc_unit_action.c
@@ -4,6 +4,8 @@
/* Released under GPLv2 and GPLv3; see COPYING.APIMAGIC. */
/**********************************************************/
+#include <cparser/ast/entity_t.h>
+
#include <apimagic/apimagic.h>
#include "apimagic_driver_impl.h"
@@ -25,6 +27,11 @@ int amgc_perform_unit_action(
return -1;
else
return amgc_list_unit_enums(uctx,0,stdout);
+
+ case AMGC_OUTPUT_TYPEDEF:
+ return amgc_output_unit_entities(
+ uctx,ENTITY_TYPEDEF,action->subset,
+ layout,fout);
}
return -1;