summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/dat.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2014-04-30 12:14:29 -0400
committerRuss Cox <rsc@swtch.com>2014-04-30 12:14:29 -0400
commit4a3fb87264f8bc03fc62f00ef335056f30d18023 (patch)
tree77d52013a1fbb6fd967c1e146d5ddbf5ca0c065d /src/cmd/acme/dat.h
parent833216fef8b946895956737d205bcad7031bf06f (diff)
downloadplan9port-4a3fb87264f8bc03fc62f00ef335056f30d18023.tar.gz
plan9port-4a3fb87264f8bc03fc62f00ef335056f30d18023.zip
acme: add log file in acme root directory
Reading /mnt/acme/log reports a log of window create, put, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block. TBR=r R=r https://codereview.appspot.com/89560044
Diffstat (limited to 'src/cmd/acme/dat.h')
-rw-r--r--src/cmd/acme/dat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/acme/dat.h b/src/cmd/acme/dat.h
index 5c156eb6..df1a6422 100644
--- a/src/cmd/acme/dat.h
+++ b/src/cmd/acme/dat.h
@@ -8,6 +8,7 @@ enum
Qeditout,
Qindex,
Qlabel,
+ Qlog,
Qnew,
QWaddr,
@@ -391,6 +392,7 @@ struct Fid
Mntdir *mntdir;
int nrpart;
uchar rpart[UTFmax];
+ vlong logoff; // for putlog
};
@@ -403,7 +405,6 @@ struct Xfid
Fid *f;
uchar *buf;
int flushed;
-
};
void xfidctl(void *);
@@ -418,6 +419,10 @@ void xfideventwrite(Xfid*, Window*);
void xfidindexread(Xfid*);
void xfidutfread(Xfid*, Text*, uint, int);
int xfidruneread(Xfid*, Text*, uint, uint);
+void xfidlogopen(Xfid*);
+void xfidlogread(Xfid*);
+void xfidlogflush(Xfid*);
+void xfidlog(Window*, char*);
struct Reffont
{