Hello,
I am trying to figure out the advantages and disadvantages of exposing interfaces through Opaque data types in C. I have figured/found out the following two advantages
1. Higher level of abstraction
2. if the layout of the defined structure inside the source files changes, it will reduce/limit/minimize the amount of changes that may be needed in the code of the application that uses the library i.e. the library will itself handle the effect of the changes by enhancing the existing function definitions and possible exposing more interfaces.
Could you suggest some more advantages in this regard?
Just for your reference, I am including the following link that show how to expose an interface through opaque data types.
http://c-faq.com/struct/opaque.examp.html
Thanks in advance.
Regards,
Naveen