1. define functions on relatvie module
for example: libavformat module
int ff_mpegts_parse(......){
}
2. export it
edit libavformat/libavformat.v* file, add the functions you define into it.