Ahaggar: update the struct pattern_match

* Add two callback functions to match arguments and all the line.
* Add an int at the end of the struct to active the pattern:
  This integer should be at the end to avoid GCC warnings when it tries
  to initialize the array.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Ahaggar: made the regexp compile function able to take callbacks

This callbacks will analyze the passed output and if there is a match
then return 0

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>