How do I wrap a custom opus codec build for asterisk?

I am trying to debug the Opus codec, so I added some debug and built it. However, The Asterisk docs say that they wrap codecs in a thin layer, so I am not sure how to wrap the Opus codec such that it will work with Asterisk. The end result should be a file of the format ‘codec_opus.so’. Is there any documentation for this wrapping process?

There is no guide or anything. You have to implement the codec interface that Asterisk provides, there are existing ones that can be used as a basis.