#ifndef _XAS_OBJECT_H #define _XAS_OBJECT_H typedef struct _xas_object xas_object; typedef int (*xas_object_start_callback)(xas_object *object); typedef int (*xas_object_stop_callback)(xas_object *object); typedef int (*xas_object_set_gain_callback)(xas_object *object, float gain); struct _xas_object { xas_object_start_callback start; xas_object_stop_callback stop; xas_object_set_gain_callback set_gain; }; int xas_object_start(xas_object *object); int xas_object_stop(xas_object *object); int xas_object_set_gain(xas_object *object, float gain); #endif /* _XAS_OBJECT_H */