aqhome: add and implement a flush function for fd/tty objects.

This commit is contained in:
Martin Preuss
2026-04-27 16:04:42 +02:00
parent 0ac20ba82c
commit 59c05d379c
4 changed files with 109 additions and 35 deletions

View File

@@ -26,6 +26,7 @@ enum {
typedef int (*AQH_FDOBJECT_STARTMSG_FN)(AQH_OBJECT *o);
typedef void (*AQH_FDOBJECT_ENDMSG_FN)(AQH_OBJECT *o);
typedef int (*AQH_FDOBJECT_FLUSH_FN)(AQH_OBJECT *o);
/**
@@ -48,6 +49,7 @@ AQHOME_API void AQH_FdObject_EndMsg(AQH_OBJECT *o);
AQHOME_API AQH_FDOBJECT_STARTMSG_FN AQH_FdObject_SetStartMsgFn(AQH_OBJECT *o, AQH_FDOBJECT_STARTMSG_FN f);
AQHOME_API AQH_FDOBJECT_ENDMSG_FN AQH_FdObject_SetEndMsgFn(AQH_OBJECT *o, AQH_FDOBJECT_ENDMSG_FN f);
AQHOME_API AQH_FDOBJECT_FLUSH_FN AQH_FdObject_SetFlushFn(AQH_OBJECT *o, AQH_FDOBJECT_FLUSH_FN f);
#endif