Remote protocol working.
[wrappi.git] / generator / wrappi_main.ml
index ffcef60..2b40ec2 100644 (file)
@@ -30,6 +30,12 @@ let nr_sds = StringMap.cardinal api.api_structs
 let nr_uns = StringMap.cardinal api.api_unions
 let nr_eps = StringMap.cardinal api.api_entry_points
 
+(* Extend the API with some entry points which are purely
+ * generated from other things, eg. from enums.
+ *)
+let api = Wrappi_enums.extend_api api
+let api = Wrappi_structs.extend_api api
+
 let dump_and_exit () =
   printf "typedefs (%d):\n" nr_tds;
   iter_typedefs api (fun td -> printf "  %s\n" (string_of_typedef td));
@@ -113,6 +119,8 @@ Run it from the top source directory using the command
      exit 1);
 
   (* Generate code. *)
+  Wrappi_c_impl.generate api;
+  Wrappi_c_xdr.generate api;
   Wrappi_c.generate api;
 
   printf "generated %d lines of code in %d files\n"