engines/null: allow build as external C++ ioengine
authorDaniel Gollub <daniel.gollub@t-online.de>
Wed, 12 Feb 2014 19:13:46 +0000 (20:13 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 13 Feb 2014 04:24:25 +0000 (21:24 -0700)
commit46a674786944e964517dd652fbf41807c9395cc4
tree6561f129f9ebb56e9915160976960d6a878d5fc1
parenta8075704d3392fede7bd7cfa394616fa0eed7ae0
engines/null: allow build as external C++ ioengine

In first place to have a simple test candidate for external
ioengines using get_ioengine() method for retriving the
io_engine struct.

Can be compiled with:

g++ -O2 -g -shared -rdynamic -fPIC -o null.so null.c -DFIO_EXTERNAL_ENGINE

Signed-off-by: Daniel Gollub <d.gollub@telekom.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/null.c