[#1948] WIP
[#1948] Added function pointer to clear inStruct function in api entry
and pack entry types
[#1948] resolved conflict