Commit 94e7213d authored by Adam Jackson's avatar Adam Jackson 🎧

Remove libc wrapper types from Xisb interfaces.

parent 47bdc952
2006-04-07 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xisb.c:
* hw/xfree86/common/xisb.h:
Remove libc wrapper types from Xisb interfaces.
2006-04-07 Daniel Stone <daniel@freedesktop.org>
* hw/xfree86/utils/xorgcfg/keyboard-cfg.c:
......
......@@ -69,7 +69,7 @@
****************************************************************************/
_X_EXPORT XISBuffer *
XisbNew (int fd, xf86ssize_t size)
XisbNew (int fd, ssize_t size)
{
XISBuffer *b;
......@@ -142,8 +142,8 @@ XisbRead (XISBuffer *b)
}
/* the only purpose of this function is to provide output tracing */
_X_EXPORT xf86ssize_t
XisbWrite (XISBuffer *b, unsigned char *msg, xf86ssize_t len)
_X_EXPORT ssize_t
XisbWrite (XISBuffer *b, unsigned char *msg, ssize_t len)
{
if (b->trace)
{
......
......@@ -29,6 +29,8 @@
#ifndef _xisb_H_
#define _xisb_H_
#include <unistd.h>
/******************************************************************************
* Definitions
* structs, typedefs, #defines, enums
......@@ -39,9 +41,9 @@ typedef struct _XISBuffer
int fd;
int trace;
int block_duration;
xf86ssize_t current; /* bytes read */
xf86ssize_t end;
xf86ssize_t buffer_size;
ssize_t current; /* bytes read */
ssize_t end;
ssize_t buffer_size;
unsigned char *buf;
} XISBuffer;
......@@ -51,10 +53,10 @@ typedef struct _XISBuffer
* of globals.
* put locals in the .c file.
*****************************************************************************/
XISBuffer * XisbNew (int fd, xf86ssize_t size);
XISBuffer * XisbNew (int fd, ssize_t size);
void XisbFree (XISBuffer *b);
int XisbRead (XISBuffer *b);
xf86ssize_t XisbWrite (XISBuffer *b, unsigned char *msg, xf86ssize_t len);
ssize_t XisbWrite (XISBuffer *b, unsigned char *msg, ssize_t len);
void XisbTrace (XISBuffer *b, int trace);
void XisbBlockDuration (XISBuffer *b, int block_duration);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment