summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-02 22:45:58 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-02 22:45:58 +0000
commit10852c24e5ca2bf509b6c390e867b9ced00ff896 (patch)
treee289a6e8e7ff66a45c8b16b2a006a92546f300bb /usr.bin/cvs/cvs.h
parent68541f1fd2757160a5aaa3523688b417f79ae346 (diff)
When we connect to a remote server, always send the Version request and
add a hack so we don't print it (we receive it through a 'M') but store it in the cvs root structure instead. This will allow us to make better decisions in what we use to communicate with the remote server.
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r--usr.bin/cvs/cvs.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h
index 44ea445c0f5..ed621c3064c 100644
--- a/usr.bin/cvs/cvs.h
+++ b/usr.bin/cvs/cvs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.h,v 1.18 2004/07/30 23:13:24 jfb Exp $ */
+/* $OpenBSD: cvs.h,v 1.19 2004/08/02 22:45:57 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -32,8 +32,11 @@
#include <dirent.h>
#include "rcs.h"
+#include "file.h"
-#define CVS_VERSION "OpenCVS 0.1"
+#define CVS_VERSION_MAJOR 0
+#define CVS_VERSION_MINOR 2
+#define CVS_VERSION "OpenCVS 0.2"
#define CVS_HIST_CACHE 128
@@ -44,7 +47,7 @@
/* operations */
-#define CVS_OP_ANY 0 /* all operations */
+#define CVS_OP_UNKNOWN 0
#define CVS_OP_ADD 1
#define CVS_OP_ANNOTATE 2
#define CVS_OP_CHECKOUT 3
@@ -61,6 +64,7 @@
#define CVS_OP_UPDATE 14
#define CVS_OP_VERSION 15
+#define CVS_OP_ANY 64 /* all operations */
@@ -112,13 +116,14 @@
struct cvs_file;
struct cvs_dir;
-
+struct cvs_flist;
struct cvs_op {
- u_int co_op;
- uid_t co_uid; /* user performing the operation */
- char *co_path; /* target path of the operation */
- char *co_tag; /* tag or branch, NULL if HEAD */
+ u_int co_op;
+ uid_t co_uid; /* user performing the operation */
+ char *co_tag; /* tag or branch, NULL if HEAD */
+ char *co_msg; /* message string (on commit or add) */
+ struct cvs_flist co_files;
};
@@ -137,6 +142,7 @@ struct cvsroot {
/* connection data */
FILE *cr_srvin;
FILE *cr_srvout;
+ char *cr_version; /* version of remote server */
};