textio: create callback typedef cb_textio_input_t

This commit is contained in:
Darryl L. Miles
2025-02-23 10:24:40 -05:00
committed by Tim Edwards
parent c8ca1d242e
commit 6ed8f17136
6 changed files with 34 additions and 23 deletions
+4 -3
View File
@@ -175,10 +175,11 @@ NullTextSize(text, size, r)
* ----------------------------------------------------------------------------
*/
/** @typedef cb_textio_input_t */
void
nullStdin(fd, cdata)
int fd;
ClientData cdata;
nullStdin(
int fd,
ClientData cdata) /* notused */
{
int ch;
TxInputEvent *event;
+10 -7
View File
@@ -64,7 +64,7 @@ extern void GrOGLClose(), GrOGLFlush();
extern void GrOGLDelete(), GrOGLConfigure(), GrOGLRaise(), GrOGLLower();
extern void GrOGLLock(), GrOGLUnlock(), GrOGLIconUpdate();
extern bool GrOGLInit(), GrOGLCreate();
extern void grOGLWStdin();
extern void grOGLWStdin(int fd, ClientData cdata); /* cb_textio_input_t (unused) */
/*---------------------------------------------------------
@@ -418,8 +418,11 @@ oglSetProjection(llx, lly, width, height)
/* is a macro and can be re-implemented using XNextEvent() calls. */
/*----------------------------------------------------------------------*/
/** @typedef cb_textio_input_t */
void
pipehandler()
pipehandler(
int fd,
ClientData cdata) /* notused */
{
TxInputEvent *event;
XEvent xevent;
@@ -757,12 +760,12 @@ oglSetDisplay (dispType, outFileName, mouseFileName)
*
* ----------------------------------------------------------------------------
*/
/*ARGSUSED*/
/*ARGSUSED*/
/** @typedef cb_textio_input_t */
void
grOGLWStdin(fd, cdata)
int fd;
ClientData cdata;
grOGLWStdin(
int fd,
ClientData cdata) /* notused */
{
int ch;
TxInputEvent *event;
+11 -6
View File
@@ -118,7 +118,7 @@ extern void GrX11Close(), GrX11Flush();
extern bool GrX11Init(), GrX11Create();
extern void GrX11Delete(), GrX11Configure(), GrX11Raise(), GrX11Lower();
extern void GrX11Lock(), GrX11Unlock(), GrX11IconUpdate();
extern void grXWStdin();
extern void grXWStdin(int fd, ClientData cdata); /* cb_textio_input_t (unused) */
extern bool grx11GetCursorPos();
@@ -739,7 +739,7 @@ GrX11Flush ()
/*
* ---------------------------------------------------------------------------
*
* grXStdin --
* grX11Stdin --
*
* Handle the stdin device for the X driver.
*
@@ -752,8 +752,12 @@ GrX11Flush ()
* ---------------------------------------------------------------------------
*/
/*ARGSUSED*/
/** @typedef cb_textio_input_t */
void
grX11Stdin()
grX11Stdin(
int fd,
ClientData cdata) /* notused */
{
TxInputEvent *event;
XEvent xevent;
@@ -1104,10 +1108,11 @@ x11SetDisplay (dispType, outFileName, mouseFileName)
* ----------------------------------------------------------------------------
*/
/** @typedef cb_textio_input_t */
void
grXWStdin(fd, cdata)
int fd;
ClientData cdata;
grXWStdin(
int fd,
ClientData cdata) /* notused */
{
int ch;
TxInputEvent *event;