This chapter is intended to those that want to write a module. Please take a look at section 2.4 first.
It's necessary to include the file gocr_module.h, which defines all the necessary stuff. Unless you need some function declared there, there's no need to include gocr.h.