You can find the OpenDPI manual at the download section
(http://code.google.com/p/opendpi/downloads/list). This document
describes the basic steps required to integrate OpenDPI. Besides that,
you may also look at the demo application in the utils directory which
basically uses the libpcap to load pcap files and runs the detection on
the packets.
Best Regards,
Ralf