diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-28 01:53:30 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-28 01:53:30 +0000 |
commit | 77723507f3fb65306e7b4671a8597bc69399e873 (patch) | |
tree | eaafe7dbe7864ce4751650ead6585101a6098810 /usr.bin/cvs/cvs.h | |
parent | c8803f84e8cb8511982d364a9666d88163ff2ca3 (diff) |
* prepare for an overhaul of the connection code by adding a cvsroot
parameter to the cvs_client_connect() and cvs_client_disconnect()
functions, so we rely less and less on a global variable
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r-- | usr.bin/cvs/cvs.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index 4694917354e..99c43f018d0 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.10 2004/07/27 12:01:58 jfb Exp $ */ +/* $OpenBSD: cvs.h,v 1.11 2004/07/28 01:53:29 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -230,6 +230,7 @@ struct cvs_op { struct cvsroot { + char *cr_str; u_int cr_method; char *cr_buf; char *cr_user; @@ -237,6 +238,11 @@ struct cvsroot { char *cr_host; char *cr_dir; u_int cr_port; + u_int cr_ref; + + /* connection data */ + FILE *cr_srvin; + FILE *cr_srvout; }; @@ -383,8 +389,8 @@ int cvs_recvfile (const char *); /* from client.c */ -int cvs_client_connect (void); -void cvs_client_disconnect (void); +int cvs_client_connect (struct cvsroot *); +void cvs_client_disconnect (struct cvsroot *); int cvs_client_sendreq (u_int, const char *, int); int cvs_client_sendarg (const char *, int); int cvs_client_sendln (const char *); |