From 12c92433d857311e4f4decb4794907a7c7938b36 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 30 Oct 2020 15:59:34 +0100 Subject: Refactor: move bScreen .blend I/O to IDTypeInfo callbacks I could not easily move `direct_link_screen` yet, because it has a return value. That has to be solved differently at some point. --- source/blender/blenloader/BLO_read_write.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenloader/BLO_read_write.h') diff --git a/source/blender/blenloader/BLO_read_write.h b/source/blender/blenloader/BLO_read_write.h index 001b1c8b8a9..56b51bf3096 100644 --- a/source/blender/blenloader/BLO_read_write.h +++ b/source/blender/blenloader/BLO_read_write.h @@ -106,6 +106,14 @@ void BLO_write_struct_at_address_by_id(BlendWriter *writer, BLO_write_struct_at_address_by_id( \ writer, BLO_get_struct_id(writer, struct_name), address, data_ptr) +/* Write single struct at address and specify a filecode. */ +void BLO_write_struct_at_address_by_id_with_filecode( + BlendWriter *writer, int filecode, int struct_id, const void *address, const void *data_ptr); +#define BLO_write_struct_at_address_with_filecode( \ + writer, filecode, struct_name, address, data_ptr) \ + BLO_write_struct_at_address_by_id_with_filecode( \ + writer, filecode, BLO_get_struct_id(writer, struct_name), address, data_ptr) + /* Write struct array. */ void BLO_write_struct_array_by_name(BlendWriter *writer, const char *struct_name, -- cgit v1.2.3