Added a glib class that provides some wrapper function which can be used directly in XDAQ application. This will reduce the code in XDAQ application.