Add structs.
[wrappi.git] / generator / wrappi_structs.ml
diff --git a/generator/wrappi_structs.ml b/generator/wrappi_structs.ml
new file mode 100644 (file)
index 0000000..26bef65
--- /dev/null
@@ -0,0 +1,30 @@
+(* wrappi
+ * Copyright (C) 2011 Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *)
+
+open Camlp4.PreCast
+
+open Wrappi_types
+open Wrappi_utils
+
+open Printf
+
+(* Nothing at the moment, but for Perl it'd be useful to have a way
+ * to get a list of the fields in a struct. XXX
+ *)
+let extend_api api =
+  api