2003-09-30 17:47:42 +00:00
|
|
|
/* input event and data structure translation */
|
|
|
|
|
|
|
|
#include "x11-inc.h"
|
|
|
|
|
|
|
|
#include <u.h>
|
|
|
|
#include <libc.h>
|
|
|
|
#include <draw.h>
|
|
|
|
#include <memdraw.h>
|
|
|
|
#include <mouse.h>
|
|
|
|
#include <cursor.h>
|
|
|
|
#include <keyboard.h>
|
|
|
|
#include "x11-memdraw.h"
|
|
|
|
|
2003-11-23 18:15:43 +00:00
|
|
|
static int
|
2003-12-11 17:48:38 +00:00
|
|
|
__xtoplan9kbd(XEvent *e)
|
2003-09-30 17:47:42 +00:00
|
|
|
{
|
|
|
|
int ind, k, md;
|
|
|
|
|
|
|
|
md = e->xkey.state;
|
|
|
|
ind = 0;
|
|
|
|
if(md & ShiftMask)
|
|
|
|
ind = 1;
|
|
|
|
|
|
|
|
k = XKeycodeToKeysym(e->xany.display, (KeyCode)e->xkey.keycode, ind);
|
|
|
|
if(k == XK_Multi_key || k == NoSymbol)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
if(k&0xFF00){
|
|
|
|
switch(k){
|
|
|
|
case XK_BackSpace:
|
|
|
|
case XK_Tab:
|
|
|
|
case XK_Escape:
|
|
|
|
case XK_Delete:
|
|
|
|
case XK_KP_0:
|
|
|
|
case XK_KP_1:
|
|
|
|
case XK_KP_2:
|
|
|
|
case XK_KP_3:
|
|
|
|
case XK_KP_4:
|
|
|
|
case XK_KP_5:
|
|
|
|
case XK_KP_6:
|
|
|
|
case XK_KP_7:
|
|
|
|
case XK_KP_8:
|
|
|
|
case XK_KP_9:
|
|
|
|
case XK_KP_Divide:
|
|
|
|
case XK_KP_Multiply:
|
|
|
|
case XK_KP_Subtract:
|
|
|
|
case XK_KP_Add:
|
|
|
|
case XK_KP_Decimal:
|
|
|
|
k &= 0x7F;
|
|
|
|
break;
|
|
|
|
case XK_Linefeed:
|
|
|
|
k = '\r';
|
|
|
|
break;
|
|
|
|
case XK_KP_Space:
|
|
|
|
k = ' ';
|
|
|
|
break;
|
|
|
|
case XK_Home:
|
|
|
|
case XK_KP_Home:
|
|
|
|
k = Khome;
|
|
|
|
break;
|
|
|
|
case XK_Left:
|
|
|
|
case XK_KP_Left:
|
|
|
|
k = Kleft;
|
|
|
|
break;
|
|
|
|
case XK_Up:
|
|
|
|
case XK_KP_Up:
|
|
|
|
k = Kup;
|
|
|
|
break;
|
|
|
|
case XK_Down:
|
|
|
|
case XK_KP_Down:
|
|
|
|
k = Kdown;
|
|
|
|
break;
|
|
|
|
case XK_Right:
|
|
|
|
case XK_KP_Right:
|
|
|
|
k = Kright;
|
|
|
|
break;
|
|
|
|
case XK_Page_Down:
|
|
|
|
case XK_KP_Page_Down:
|
|
|
|
k = Kpgdown;
|
|
|
|
break;
|
|
|
|
case XK_End:
|
|
|
|
case XK_KP_End:
|
|
|
|
k = Kend;
|
|
|
|
break;
|
|
|
|
case XK_Page_Up:
|
|
|
|
case XK_KP_Page_Up:
|
|
|
|
k = Kpgup;
|
|
|
|
break;
|
|
|
|
case XK_Insert:
|
|
|
|
case XK_KP_Insert:
|
|
|
|
k = Kins;
|
|
|
|
break;
|
|
|
|
case XK_KP_Enter:
|
|
|
|
case XK_Return:
|
|
|
|
k = '\n';
|
|
|
|
break;
|
|
|
|
case XK_Alt_L:
|
|
|
|
case XK_Alt_R:
|
|
|
|
k = Kalt;
|
|
|
|
break;
|
|
|
|
default: /* not ISO-1 or tty control */
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Compensate for servers that call a minus a hyphen */
|
|
|
|
if(k == XK_hyphen)
|
|
|
|
k = XK_minus;
|
|
|
|
/* Do control mapping ourselves if translator doesn't */
|
|
|
|
if(e->xkey.state&ControlMask)
|
|
|
|
k &= 0x9f;
|
|
|
|
if(k == NoSymbol) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* BUG: could/should do Alt translation here! */
|
|
|
|
return k;
|
|
|
|
}
|
|
|
|
|
2003-11-23 18:15:43 +00:00
|
|
|
static Rune*
|
|
|
|
xtoplan9latin1(XEvent *e)
|
|
|
|
{
|
|
|
|
static Rune k[10];
|
|
|
|
static int alting, nk;
|
|
|
|
int n;
|
|
|
|
int r;
|
|
|
|
|
2003-12-11 17:48:38 +00:00
|
|
|
r = __xtoplan9kbd(e);
|
2003-11-23 18:15:43 +00:00
|
|
|
if(r < 0)
|
|
|
|
return nil;
|
|
|
|
if(alting){
|
|
|
|
k[nk++] = r;
|
|
|
|
n = _latin1(k, nk);
|
|
|
|
if(n > 0){
|
|
|
|
alting = 0;
|
|
|
|
k[0] = n;
|
|
|
|
k[1] = 0;
|
|
|
|
return k;
|
|
|
|
}
|
|
|
|
if(n == -1){
|
|
|
|
alting = 0;
|
|
|
|
k[nk] = 0;
|
|
|
|
return k;
|
|
|
|
}
|
|
|
|
/* n < -1, need more input */
|
|
|
|
return nil;
|
|
|
|
}else if(r == Kalt){
|
|
|
|
alting = 1;
|
|
|
|
nk = 0;
|
|
|
|
return nil;
|
|
|
|
}else{
|
|
|
|
k[0] = r;
|
|
|
|
k[1] = 0;
|
|
|
|
return k;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2003-12-11 17:48:38 +00:00
|
|
|
_xtoplan9kbd(XEvent *e)
|
2003-11-23 18:15:43 +00:00
|
|
|
{
|
|
|
|
static Rune *r;
|
|
|
|
|
|
|
|
if(e == (XEvent*)-1){
|
|
|
|
assert(r);
|
|
|
|
r--;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if(e)
|
|
|
|
r = xtoplan9latin1(e);
|
|
|
|
if(r && *r)
|
|
|
|
return *r++;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2003-09-30 17:47:42 +00:00
|
|
|
int
|
2003-12-11 17:48:38 +00:00
|
|
|
_xtoplan9mouse(XDisplay *xd, XEvent *e, Mouse *m)
|
2003-09-30 17:47:42 +00:00
|
|
|
{
|
|
|
|
int s;
|
|
|
|
XButtonEvent *be;
|
|
|
|
XMotionEvent *me;
|
|
|
|
|
2003-11-23 18:15:43 +00:00
|
|
|
if(_x.putsnarf != _x.assertsnarf){
|
|
|
|
_x.assertsnarf = _x.putsnarf;
|
|
|
|
XSetSelectionOwner(_x.mousecon, XA_PRIMARY, _x.drawable, CurrentTime);
|
|
|
|
if(_x.clipboard != None)
|
|
|
|
XSetSelectionOwner(_x.mousecon, _x.clipboard, _x.drawable, CurrentTime);
|
|
|
|
XFlush(xd);
|
|
|
|
}
|
|
|
|
|
2003-09-30 17:47:42 +00:00
|
|
|
switch(e->type){
|
|
|
|
case ButtonPress:
|
|
|
|
be = (XButtonEvent*)e;
|
2003-11-25 01:40:27 +00:00
|
|
|
/*
|
|
|
|
* Fake message, just sent to make us announce snarf.
|
|
|
|
* Apparently state and button are 16 and 8 bits on
|
|
|
|
* the wire, since they are truncated by the time they
|
|
|
|
* get to us.
|
|
|
|
*/
|
|
|
|
if(be->send_event
|
|
|
|
&& (~be->state&0xFFFF)==0
|
|
|
|
&& (~be->button&0xFF)==0)
|
2003-11-23 18:15:43 +00:00
|
|
|
return -1;
|
2003-09-30 17:47:42 +00:00
|
|
|
/* BUG? on mac need to inherit these from elsewhere? */
|
|
|
|
m->xy.x = be->x;
|
|
|
|
m->xy.y = be->y;
|
|
|
|
s = be->state;
|
|
|
|
m->msec = be->time;
|
|
|
|
switch(be->button){
|
|
|
|
case 1:
|
|
|
|
s |= Button1Mask;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
s |= Button2Mask;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
s |= Button3Mask;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ButtonRelease:
|
|
|
|
be = (XButtonEvent*)e;
|
|
|
|
m->xy.x = be->x;
|
|
|
|
m->xy.y = be->y;
|
|
|
|
s = be->state;
|
|
|
|
m->msec = be->time;
|
|
|
|
switch(be->button){
|
|
|
|
case 1:
|
|
|
|
s &= ~Button1Mask;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
s &= ~Button2Mask;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
s &= ~Button3Mask;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MotionNotify:
|
|
|
|
me = (XMotionEvent*)e;
|
|
|
|
s = me->state;
|
|
|
|
m->xy.x = me->x;
|
|
|
|
m->xy.y = me->y;
|
|
|
|
m->msec = me->time;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
m->buttons = 0;
|
|
|
|
if(s & Button1Mask)
|
|
|
|
m->buttons |= 1;
|
|
|
|
if(s & Button2Mask)
|
|
|
|
m->buttons |= 2;
|
|
|
|
if(s & Button3Mask)
|
|
|
|
m->buttons |= 4;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2003-12-11 17:48:38 +00:00
|
|
|
_xmoveto(Point p)
|
2003-09-30 17:47:42 +00:00
|
|
|
{
|
|
|
|
XWarpPointer(_x.display, None, _x.drawable, 0, 0, 0, 0, p.x, p.y);
|
|
|
|
XFlush(_x.display);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
revbyte(int b)
|
|
|
|
{
|
|
|
|
int r;
|
|
|
|
|
|
|
|
r = 0;
|
|
|
|
r |= (b&0x01) << 7;
|
|
|
|
r |= (b&0x02) << 5;
|
|
|
|
r |= (b&0x04) << 3;
|
|
|
|
r |= (b&0x08) << 1;
|
|
|
|
r |= (b&0x10) >> 1;
|
|
|
|
r |= (b&0x20) >> 3;
|
|
|
|
r |= (b&0x40) >> 5;
|
|
|
|
r |= (b&0x80) >> 7;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
xcursorarrow(void)
|
|
|
|
{
|
|
|
|
if(_x.cursor != 0){
|
|
|
|
XFreeCursor(_x.display, _x.cursor);
|
|
|
|
_x.cursor = 0;
|
|
|
|
}
|
|
|
|
XUndefineCursor(_x.display, _x.drawable);
|
|
|
|
XFlush(_x.display);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2003-12-11 17:48:38 +00:00
|
|
|
_xsetcursor(Cursor *c)
|
2003-09-30 17:47:42 +00:00
|
|
|
{
|
|
|
|
XColor fg, bg;
|
|
|
|
XCursor xc;
|
|
|
|
Pixmap xsrc, xmask;
|
|
|
|
int i;
|
|
|
|
uchar src[2*16], mask[2*16];
|
|
|
|
|
|
|
|
if(c == nil){
|
|
|
|
xcursorarrow();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for(i=0; i<2*16; i++){
|
|
|
|
src[i] = revbyte(c->set[i]);
|
|
|
|
mask[i] = revbyte(c->set[i] | c->clr[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
fg = _x.map[0];
|
|
|
|
bg = _x.map[255];
|
|
|
|
xsrc = XCreateBitmapFromData(_x.display, _x.drawable, src, 16, 16);
|
|
|
|
xmask = XCreateBitmapFromData(_x.display, _x.drawable, mask, 16, 16);
|
|
|
|
xc = XCreatePixmapCursor(_x.display, xsrc, xmask, &fg, &bg, -c->offset.x, -c->offset.y);
|
|
|
|
if(xc != 0) {
|
|
|
|
XDefineCursor(_x.display, _x.drawable, xc);
|
|
|
|
if(_x.cursor != 0)
|
|
|
|
XFreeCursor(_x.display, _x.cursor);
|
|
|
|
_x.cursor = xc;
|
|
|
|
}
|
|
|
|
XFreePixmap(_x.display, xsrc);
|
|
|
|
XFreePixmap(_x.display, xmask);
|
|
|
|
XFlush(_x.display);
|
|
|
|
}
|
|
|
|
|
2003-10-11 02:47:43 +00:00
|
|
|
struct {
|
|
|
|
char buf[SnarfSize];
|
|
|
|
QLock lk;
|
|
|
|
} clip;
|
|
|
|
|
|
|
|
char*
|
2003-12-11 17:48:38 +00:00
|
|
|
_xgetsnarf(XDisplay *xd)
|
2003-10-11 02:47:43 +00:00
|
|
|
{
|
|
|
|
uchar *data, *xdata;
|
2003-11-23 18:15:43 +00:00
|
|
|
Atom clipboard, type, prop;
|
2003-10-11 02:47:43 +00:00
|
|
|
ulong len, lastlen, dummy;
|
|
|
|
int fmt, i;
|
|
|
|
XWindow w;
|
|
|
|
|
|
|
|
qlock(&clip.lk);
|
2003-11-23 18:15:43 +00:00
|
|
|
/*
|
|
|
|
* Is there a primary selection (highlighted text in an xterm)?
|
|
|
|
*/
|
|
|
|
clipboard = XA_PRIMARY;
|
2003-10-11 02:47:43 +00:00
|
|
|
w = XGetSelectionOwner(xd, XA_PRIMARY);
|
|
|
|
if(w == _x.drawable){
|
2003-11-23 18:15:43 +00:00
|
|
|
mine:
|
2003-10-11 02:47:43 +00:00
|
|
|
data = (uchar*)strdup(clip.buf);
|
|
|
|
goto out;
|
|
|
|
}
|
2003-11-23 18:15:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If not, is there a clipboard selection?
|
|
|
|
*/
|
|
|
|
if(w == None && _x.clipboard != None){
|
|
|
|
clipboard = _x.clipboard;
|
|
|
|
w = XGetSelectionOwner(xd, _x.clipboard);
|
|
|
|
if(w == _x.drawable)
|
|
|
|
goto mine;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If not, give up.
|
|
|
|
*/
|
2003-10-11 02:47:43 +00:00
|
|
|
if(w == None){
|
|
|
|
data = nil;
|
|
|
|
goto out;
|
|
|
|
}
|
2003-11-23 18:15:43 +00:00
|
|
|
|
2003-10-11 02:47:43 +00:00
|
|
|
/*
|
|
|
|
* We should be waiting for SelectionNotify here, but it might never
|
2003-11-23 18:15:43 +00:00
|
|
|
* come, and we have no way to time out. Instead, we will clear
|
|
|
|
* local property #1, request our buddy to fill it in for us, and poll
|
|
|
|
* until he's done or we get tired of waiting.
|
2003-12-02 03:42:46 +00:00
|
|
|
*
|
|
|
|
* We should try to go for _x.utf8string instead of XA_STRING,
|
|
|
|
* but that would add to the polling.
|
2003-10-11 02:47:43 +00:00
|
|
|
*/
|
2003-11-23 18:15:43 +00:00
|
|
|
prop = 1;
|
|
|
|
XChangeProperty(xd, _x.drawable, prop, XA_STRING, 8, PropModeReplace, (uchar*)"", 0);
|
|
|
|
XConvertSelection(xd, clipboard, XA_STRING, prop, _x.drawable, CurrentTime);
|
2003-10-11 02:47:43 +00:00
|
|
|
XFlush(xd);
|
|
|
|
lastlen = 0;
|
2003-11-23 18:15:43 +00:00
|
|
|
for(i=0; i<10 || (lastlen!=0 && i<30); i++){
|
2003-10-11 02:47:43 +00:00
|
|
|
usleep(100*1000);
|
2003-11-23 18:15:43 +00:00
|
|
|
XGetWindowProperty(xd, _x.drawable, prop, 0, 0, 0, AnyPropertyType,
|
2003-10-11 02:47:43 +00:00
|
|
|
&type, &fmt, &dummy, &len, &data);
|
|
|
|
if(lastlen == len && len > 0)
|
|
|
|
break;
|
|
|
|
lastlen = len;
|
|
|
|
}
|
2003-12-02 03:42:46 +00:00
|
|
|
if(i == 10){
|
2003-10-11 02:47:43 +00:00
|
|
|
data = nil;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
/* get the property */
|
|
|
|
data = nil;
|
2003-11-23 18:15:43 +00:00
|
|
|
XGetWindowProperty(xd, _x.drawable, prop, 0, SnarfSize/sizeof(ulong), 0,
|
2003-10-11 02:47:43 +00:00
|
|
|
AnyPropertyType, &type, &fmt, &len, &dummy, &xdata);
|
2003-12-02 03:42:46 +00:00
|
|
|
if((type != XA_STRING && type != _x.utf8string) || len == 0){
|
2003-10-11 02:47:43 +00:00
|
|
|
if(xdata)
|
|
|
|
XFree(xdata);
|
|
|
|
data = nil;
|
|
|
|
}else{
|
|
|
|
if(xdata){
|
|
|
|
data = strdup((char*)xdata);
|
|
|
|
XFree(xdata);
|
|
|
|
}else
|
|
|
|
data = nil;
|
|
|
|
}
|
|
|
|
out:
|
|
|
|
qunlock(&clip.lk);
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2003-12-11 17:48:38 +00:00
|
|
|
_xputsnarf(XDisplay *xd, char *data)
|
2003-10-11 02:47:43 +00:00
|
|
|
{
|
2003-11-23 18:15:43 +00:00
|
|
|
XButtonEvent e;
|
|
|
|
|
2003-10-11 02:47:43 +00:00
|
|
|
if(strlen(data) >= SnarfSize)
|
|
|
|
return;
|
|
|
|
qlock(&clip.lk);
|
|
|
|
strcpy(clip.buf, data);
|
2003-11-23 18:15:43 +00:00
|
|
|
|
|
|
|
/* leave note for mouse proc to assert selection ownership */
|
|
|
|
_x.putsnarf++;
|
|
|
|
|
|
|
|
/* send mouse a fake event so snarf is announced */
|
|
|
|
memset(&e, 0, sizeof e);
|
|
|
|
e.type = ButtonPress;
|
|
|
|
e.window = _x.drawable;
|
|
|
|
e.state = ~0;
|
|
|
|
e.button = ~0;
|
|
|
|
XSendEvent(xd, _x.drawable, True, ButtonPressMask, (XEvent*)&e);
|
2003-10-11 02:47:43 +00:00
|
|
|
XFlush(xd);
|
2003-11-23 18:15:43 +00:00
|
|
|
|
2003-10-11 02:47:43 +00:00
|
|
|
qunlock(&clip.lk);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2003-12-11 17:48:38 +00:00
|
|
|
_xselect(XEvent *e, XDisplay *xd)
|
2003-10-11 02:47:43 +00:00
|
|
|
{
|
2003-12-02 03:42:46 +00:00
|
|
|
char *name;
|
2003-10-11 02:47:43 +00:00
|
|
|
XEvent r;
|
|
|
|
XSelectionRequestEvent *xe;
|
2003-12-02 03:42:46 +00:00
|
|
|
Atom a[4];
|
2003-10-11 02:47:43 +00:00
|
|
|
|
|
|
|
memset(&r, 0, sizeof r);
|
|
|
|
xe = (XSelectionRequestEvent*)e;
|
2003-12-02 03:42:46 +00:00
|
|
|
if(0) fprint(2, "xselect target=%d requestor=%d property=%d selection=%d\n",
|
|
|
|
xe->target, xe->requestor, xe->property, xe->selection);
|
|
|
|
r.xselection.property = xe->property;
|
|
|
|
if(xe->target == _x.targets){
|
|
|
|
a[0] = XA_STRING;
|
|
|
|
a[1] = _x.utf8string;
|
|
|
|
a[2] = _x.text;
|
|
|
|
a[3] = _x.compoundtext;
|
|
|
|
|
|
|
|
XChangeProperty(xd, xe->requestor, xe->property, xe->target,
|
|
|
|
8, PropModeReplace, (uchar*)a, sizeof a);
|
|
|
|
}else if(xe->target == XA_STRING || xe->target == _x.utf8string || xe->target == _x.text || xe->target == _x.compoundtext){
|
|
|
|
/* if the target is STRING we're supposed to reply with Latin1 XXX */
|
2003-10-11 02:47:43 +00:00
|
|
|
qlock(&clip.lk);
|
2003-12-02 03:42:46 +00:00
|
|
|
XChangeProperty(xd, xe->requestor, xe->property, xe->target,
|
|
|
|
8, PropModeReplace, (uchar*)clip.buf, strlen(clip.buf));
|
2003-10-11 02:47:43 +00:00
|
|
|
qunlock(&clip.lk);
|
|
|
|
}else{
|
2003-12-02 03:42:46 +00:00
|
|
|
name = XGetAtomName(xd, xe->target);
|
|
|
|
fprint(2, "%s: cannot handle selection request for '%s' (%d)\n", argv0, name, (int)xe->target);
|
2003-10-11 02:47:43 +00:00
|
|
|
r.xselection.property = None;
|
|
|
|
}
|
|
|
|
|
|
|
|
r.xselection.display = xe->display;
|
|
|
|
/* r.xselection.property filled above */
|
|
|
|
r.xselection.target = xe->target;
|
|
|
|
r.xselection.type = SelectionNotify;
|
|
|
|
r.xselection.requestor = xe->requestor;
|
|
|
|
r.xselection.time = xe->time;
|
|
|
|
r.xselection.send_event = True;
|
|
|
|
r.xselection.selection = xe->selection;
|
|
|
|
XSendEvent(xd, xe->requestor, False, 0, &r);
|
|
|
|
XFlush(xd);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
putsnarf(char *data)
|
|
|
|
{
|
2003-12-11 17:48:38 +00:00
|
|
|
_xputsnarf(_x.snarfcon, data);
|
2003-10-11 02:47:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
char*
|
|
|
|
getsnarf(void)
|
|
|
|
{
|
2003-12-11 17:48:38 +00:00
|
|
|
return _xgetsnarf(_x.snarfcon);
|
2003-10-11 02:47:43 +00:00
|
|
|
}
|
|
|
|
|