summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remote.h
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-12-19 15:13:00 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-12-19 15:13:00 +0000
commitb48f7c652516d74d3c0efbb33a5a4bb55cae6bef (patch)
treed64e03d952b94fece518fe4235b5206cd143c0d1 /usr.bin/cvs/remote.h
parente73a0e699c57f06d47ec44ec7eb9e9958892d616 (diff)
- Introduce a way for the command code to recognize what the server replied.
- Modify the add command so it uses the above method to correctly enter added files in CVS/Entries if in a remote setup. ok xsa@ ... And no a shark didnt eat me.
Diffstat (limited to 'usr.bin/cvs/remote.h')
-rw-r--r--usr.bin/cvs/remote.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/remote.h b/usr.bin/cvs/remote.h
index d53ea308ca1..3f06631c5f0 100644
--- a/usr.bin/cvs/remote.h
+++ b/usr.bin/cvs/remote.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: remote.h,v 1.14 2006/12/19 14:11:21 xsa Exp $ */
+/* $OpenBSD: remote.h,v 1.15 2006/12/19 15:12:59 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -37,6 +37,11 @@ struct cvs_resp {
#define REQ_NEEDED 0x01
#define RESP_NEEDED 0x01
+extern int server_response;
+
+#define SERVER_OK 0
+#define SERVER_ERROR 1
+
void cvs_client_connect_to_server(void);
void cvs_client_disconnect(void);
void cvs_client_send_request(char *, ...);