aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/nfs/sx.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-15 12:39:09 +0000
committerrsc <devnull@localhost>2006-02-15 12:39:09 +0000
commit941e17134e92de7f12977f1899860b57bbf83330 (patch)
treee0c7dc5b23b603b24c2ec0cb8d3544f91bb36101 /src/cmd/upas/nfs/sx.h
parent1ea614ffaf9378df45410995d0a8c13042bba123 (diff)
downloadplan9port-941e17134e92de7f12977f1899860b57bbf83330.tar.gz
plan9port-941e17134e92de7f12977f1899860b57bbf83330.tar.bz2
plan9port-941e17134e92de7f12977f1899860b57bbf83330.zip
imap-based new upas/fs
Diffstat (limited to 'src/cmd/upas/nfs/sx.h')
-rw-r--r--src/cmd/upas/nfs/sx.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/cmd/upas/nfs/sx.h b/src/cmd/upas/nfs/sx.h
new file mode 100644
index 00000000..910f002e
--- /dev/null
+++ b/src/cmd/upas/nfs/sx.h
@@ -0,0 +1,31 @@
+/*
+ * S-expressions as used by IMAP.
+ */
+
+enum
+{
+ SxUnknown = 0,
+ SxAtom,
+ SxString,
+ SxNumber,
+ SxList,
+};
+
+typedef struct Sx Sx;
+struct Sx
+{
+ int type;
+ char *data;
+ int ndata;
+ vlong number;
+ Sx **sx;
+ int nsx;
+};
+
+Sx* Brdsx(Biobuf*);
+Sx* Brdsx1(Biobuf*);
+void freesx(Sx*);
+int oksx(Sx*);
+int sxfmt(Fmt*);
+int sxwalk(Sx*);
+