#if !defined oslib_valavapi_H
#define oslib_valavapi_H

#if !defined oslib_vapi_H
#define oslib_vapi_H

#include <stdlib.h>

#define os_lib_colourdbox_colour_model_new(n) \
  (colourdbox_colour_model*)malloc (colourdbox_SIZEOF_COLOUR_MODEL(n))

#define os_lib_colourpicker_colour_new(n) \
  (colourpicker_colour*)malloc (colourpicker_SIZEOF_COLOUR(n))

#define os_lib_colourpicker_dialogue_new(n) \
  (colourpicker_dialogue*)malloc (colourpicker_SIZEOF_DIALOGUE(n))

#define os_lib_colourpicker_message_colour_choice_new(n) \
  (colourpicker_message_colour_choice*)malloc (colourpicker_SIZEOF_MESSAGE_COLOUR_CHOICE(n))

#define os_lib_colourpicker_message_colour_changed_new(n) \
  (colourpicker_message_colour_changed*)malloc (colourpicker_SIZEOF_MESSAGE_COLOUR_CHANGED(n))

#define os_lib_colourpicker_full_message_colour_choice_new(n) \
  (colourpicker_full_message_colour_choice*)malloc (colourpicker_SIZEOF_FULL_MESSAGE_COLOUR_CHOICE(n))

#define os_lib_colourpicker_full_message_colour_changed_new(n) \
  (colourpicker_full_message_colour_changed*)malloc (colourpicker_SIZEOF_FULL_MESSAGE_COLOUR_CHANGED(n))

#define os_lib_colourtrans_calibration_table_new(n) \
  (colourtrans_calibration_table*)malloc (colourtrans_SIZEOF_CALIBRATION_TABLE(n))

#define os_lib_compressjpeg_scan_description_new(n) \
  (compressjpeg_scan_description*)malloc (compressjpeg_SIZEOF_SCAN_DESCRIPTION(n))

#define os_lib_draw_dash_pattern_new(n) \
  (draw_dash_pattern*)malloc (draw_SIZEOF_DASH_PATTERN(n))

#define os_lib_drawfile_font_def_new(n) \
  (drawfile_font_def*)malloc (drawfile_SIZEOF_FONT_DEF(n))

#define os_lib_drawfile_text_new(n) \
  (drawfile_text*)malloc (drawfile_SIZEOF_TEXT(n))

#define os_lib_drawfile_sprite_new(n) \
  (drawfile_sprite*)malloc (drawfile_SIZEOF_SPRITE(n))

#define os_lib_drawfile_group_new(n) \
  (drawfile_group*)malloc (drawfile_SIZEOF_GROUP(n))

#define os_lib_drawfile_tagged_new(n) \
  (drawfile_tagged*)malloc (drawfile_SIZEOF_TAGGED(n))

#define os_lib_drawfile_area_text_new(n) \
  (drawfile_area_text*)malloc (drawfile_SIZEOF_AREA_TEXT(n))

#define os_lib_drawfile_trfm_text_new(n) \
  (drawfile_trfm_text*)malloc (drawfile_SIZEOF_TRFM_TEXT(n))

#define os_lib_drawfile_trfm_sprite_new(n) \
  (drawfile_trfm_sprite*)malloc (drawfile_SIZEOF_TRFM_SPRITE(n))

#define os_lib_drawfile_diagram_new(n) \
  (drawfile_diagram*)malloc (drawfile_SIZEOF_DIAGRAM(n))

#define os_lib_filecore_track_format_new(n) \
  (filecore_track_format*)malloc (filecore_SIZEOF_TRACK_FORMAT(n))

#define os_lib_gadget_object_new(n) \
  (gadget_object*)malloc (gadget_SIZEOF_OBJECT(n))

#define os_lib_menu_object_new(n) \
  (menu_object*)malloc (menu_SIZEOF_OBJECT(n))

#define os_lib_menu_object_template_new(n) \
  (menu_object_template*)malloc (menu_SIZEOF_OBJECT_TEMPLATE(n))

#define os_lib_netfs_read_disc_info_reply_new(n) \
  (netfs_read_disc_info_reply*)malloc (netfs_SIZEOF_READ_DISC_INFO_REPLY(n))

#define os_lib_netfs_read_logon_info_reply_new(n) \
  (netfs_read_logon_info_reply*)malloc (netfs_SIZEOF_READ_LOGON_INFO_REPLY(n))

#define os_lib_netfs_read_logon_info_extended_reply_new(n) \
  (netfs_read_logon_info_extended_reply*)malloc (netfs_SIZEOF_READ_LOGON_INFO_EXTENDED_REPLY(n))

#define os_lib_os_gs_new(n) \
  (os_gs*)malloc (os_SIZEOF_GS(n))

#define os_lib_os_amb_table_new(n) \
  (os_amb_table*)malloc (os_SIZEOF_AMB_TABLE(n))

#define os_lib_os_mode_block_new(n) \
  (os_mode_block*)malloc (os_SIZEOF_MODE_BLOCK(n))

#define os_lib_os_mode_selector_new(n) \
  (os_mode_selector*)malloc (os_SIZEOF_MODE_SELECTOR(n))

#define os_lib_osgbpb_name_new(n) \
  (osgbpb_name*)malloc (osgbpb_SIZEOF_NAME(n))

#define os_lib_osgbpb_info_new(n) \
  (osgbpb_info*)malloc (osgbpb_SIZEOF_INFO(n))

#define os_lib_osgbpb_system_info_new(n) \
  (osgbpb_system_info*)malloc (osgbpb_SIZEOF_SYSTEM_INFO(n))

#define os_lib_osgbpb_info_stamped_new(n) \
  (osgbpb_info_stamped*)malloc (osgbpb_SIZEOF_INFO_STAMPED(n))

#define os_lib_oswordwriteclock_block_new(n) \
  (oswordwriteclock_block*)malloc (oswordwriteclock_SIZEOF_BLOCK(n))

#define os_lib_pdriver_configuration_info_new(n) \
  (pdriver_configuration_info*)malloc (pdriver_SIZEOF_CONFIGURATION_INFO(n))

#define os_lib_resourcefs_file_header_new(n) \
  (resourcefs_file_header*)malloc (resourcefs_SIZEOF_FILE_HEADER(n))

#define os_lib_resourcefs_file_data_new(n) \
  (resourcefs_file_data*)malloc (resourcefs_SIZEOF_FILE_DATA(n))

#define os_lib_squash_file_new(n) \
  (squash_file*)malloc (squash_SIZEOF_FILE(n))

#define os_lib_toolbox_resource_file_object_new(n) \
  (toolbox_resource_file_object*)malloc (toolbox_SIZEOF_RESOURCE_FILE_OBJECT(n))

#define os_lib_toolbox_relocation_table_new(n) \
  (toolbox_relocation_table*)malloc (toolbox_SIZEOF_RELOCATION_TABLE(n))

#define os_lib_toolbox_resource_file_new(n) \
  (toolbox_resource_file*)malloc (toolbox_SIZEOF_RESOURCE_FILE(n))

#define os_lib_toolbox_action_header_new(n) \
  (toolbox_action_header*)malloc (toolbox_SIZEOF_ACTION_HEADER(n))

#define os_lib_wimp_window_new(n) \
  (wimp_window*)malloc (wimp_SIZEOF_WINDOW(n))

#define os_lib_wimp_window_info_new(n) \
  (wimp_window_info*)malloc (wimp_SIZEOF_WINDOW_INFO(n))

#define os_lib_wimp_menu_new(n) \
  (wimp_menu*)malloc (wimp_SIZEOF_MENU(n))

#define os_lib_wimp_message_header_new(n) \
  (wimp_message_header*)malloc (wimp_SIZEOF_MESSAGE_HEADER(n))

#define os_lib_window_object_new(n) \
  (window_object*)malloc (window_SIZEOF_OBJECT(n))

#define os_lib_window_object_template_new(n) \
  (window_object_template*)malloc (window_SIZEOF_OBJECT_TEMPLATE(n))

#endif

#endif

