From b48f7c652516d74d3c0efbb33a5a4bb55cae6bef Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 19 Dec 2006 15:13:00 +0000 Subject: - 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. --- usr.bin/cvs/remote.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/remote.h') 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 * @@ -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 *, ...); -- cgit v1.2.3