summaryrefslogtreecommitdiff
path: root/console-client/trans.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2005-07-11 13:59:24 +0000
committerMarcus Brinkmann <marcus@gnu.org>2005-07-11 13:59:24 +0000
commit94414efd38f6a555ac97d013bd0aced76803142d (patch)
tree39a3a126bf24edc3a0e1658fc0863f0da9453909 /console-client/trans.h
parent2f745c154065dfeae33c864b4e61cfca7a3d4974 (diff)
2005-07-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
* Makefile (modules): Add `current-vcs' and its rules. * console.c (console_current_id): New function. * input.h (console_current_id): New prototype. * trans.c (struct netnode): New member `symlink_path'. (console_demuxer): Handle case when node it anonymous. (netfs_S_io_select): Likewise. (netfs_S_io_read): Likewise. (netfs_S_io_write): Likewise. (netfs_report_access): Likewise. (netfs_attempt_mksymlink): Implement symlinks. (netfs_attempt_lookup): Likewise. (netfs_attempt_unlink): Likewise. (netfs_attempt_link): Likewise. (netfs_attempt_mkfile): Likewise. (netfs_attempt_readlink): Likewise. (netfs_get_dirents): Likewise. (netfs_create_consnode): Likewise. * trans.h (struct consnode): New members `readlink' and `mksymlink'. * current-vcs.c: New file.
Diffstat (limited to 'console-client/trans.h')
-rw-r--r--console-client/trans.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/console-client/trans.h b/console-client/trans.h
index 1b5156ae..f781e31f 100644
--- a/console-client/trans.h
+++ b/console-client/trans.h
@@ -54,6 +54,12 @@ struct consnode
/* The demuxer used for this node. */
int (*demuxer) (mach_msg_header_t *inp, mach_msg_header_t *outp);
+ /* Called when the symlink is read */
+ error_t (*readlink) (struct iouser *user, struct node *np, char *buf);
+
+ /* Called when the symlink is written */
+ error_t (*mksymlink) (struct iouser *cred, struct node *np, char *name);
+
struct consnode *next;
};