tirex: change api

Signed-off-by: Hiroshi Miura <miurahr@linux.com>