Rewrite X11 snarf. Maybe this will be better.

This commit is contained in:
Russ Cox
2005-10-17 16:18:45 +00:00
parent a43c1e6fab
commit 54ca86f879
3 changed files with 265 additions and 170 deletions

View File

@ -183,6 +183,24 @@ static char Eoldname[] = "named image no longer valid";
static char Enamed[] = "image already has name";
static char Ewrongname[] = "wrong name for image";
int
drawcanqlock(void)
{
return canqlock(&sdraw.lk);
}
void
drawqlock(void)
{
qlock(&sdraw.lk);
}
void
drawqunlock(void)
{
qunlock(&sdraw.lk);
}
static int
drawgen(Chan *c, char *name, Dirtab *dt, int ndt, int s, Dir *dp)
{