extern c for match&flow

export match&flow function