Open larsbrinkhoff opened 2 years ago
Some file formats need parameter passed in. A recent example is the Harware Read-In format which needs to know the start and end of the memory region.
My current idea is to pass in an array. It can be NULL for no parameters. Each item is a function pointer and a string.
struct param params[] = { { memory_start, "1234" }, { memory_end, "4321" }, { NULL, NULL } }; output_file_format->write (stdout, &memory, params);
Some file formats need parameter passed in. A recent example is the Harware Read-In format which needs to know the start and end of the memory region.
My current idea is to pass in an array. It can be NULL for no parameters. Each item is a function pointer and a string.