“libtypec” is aimed to provide a generic interface abstracting all platform complexity for user space to develop tools for efficient USB-C port management. The library can also enable development of diagnostic and debug tools to debug system issues around USB-C/USB PD topology.
I think the "libtypec_capabiliy_data" struct defined in libtypec.h should be named "libtypec_capability_data". Capability is missing a "t".