How do you handle backwards compatibility?
Asked by
Florian Forster
Hi,
I'm having a couple of changes here that require modification of the "modbus_param_t" structure. Since the struct is visible to other programs, such a change is both API and ABI incompatible. I notice, however, that the struct has been changed between 2.0.3 and the current development version.
Would you accept a patch that turns the structure into an "opaque" data type? This means that the structure will be declared in the header file but defined in "src/modbus.c". Client programs can then only use pointers to such structures but cannot dereference the pointer, effectively hiding the content of the struct.
Regards,
—octo
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stéphane Raimbault
- Solved:
- Last query:
- Last reply:
To post a message you must log in.