Annotation of src/usr.bin/cvs/proto.h, Revision 1.13
1.13 ! joris 1: /* $OpenBSD: proto.h,v 1.12 2006/01/04 14:58:12 xsa Exp $ */
1.1 jfb 2: /*
3: * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
1.5 tedu 4: * All rights reserved.
1.1 jfb 5: *
1.5 tedu 6: * Redistribution and use in source and binary forms, with or without
7: * modification, are permitted provided that the following conditions
8: * are met:
1.1 jfb 9: *
1.5 tedu 10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
1.1 jfb 12: * 2. The name of the author may not be used to endorse or promote products
1.5 tedu 13: * derived from this software without specific prior written permission.
1.1 jfb 14: *
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
16: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17: * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
18: * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23: * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1.5 tedu 24: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.1 jfb 25: */
26:
27: #ifndef PROTO_H
28: #define PROTO_H
1.2 jfb 29:
30: #include "buf.h"
1.4 jfb 31:
1.7 xsa 32: #define CVS_PROTO_MAXARG 256
33: #define CVS_REQ_TIMEOUT 300
1.1 jfb 34:
35: /* client/server protocol requests */
1.7 xsa 36: #define CVS_REQ_NONE 0
37: #define CVS_REQ_ROOT 1
38: #define CVS_REQ_VALIDREQ 2
39: #define CVS_REQ_VALIDRESP 3
40: #define CVS_REQ_DIRECTORY 4
41: #define CVS_REQ_MAXDOTDOT 5
42: #define CVS_REQ_STATICDIR 6
43: #define CVS_REQ_STICKY 7
44: #define CVS_REQ_ENTRY 8
45: #define CVS_REQ_ENTRYEXTRA 9
46: #define CVS_REQ_CHECKINTIME 10
47: #define CVS_REQ_MODIFIED 11
48: #define CVS_REQ_ISMODIFIED 12
49: #define CVS_REQ_UNCHANGED 13
50: #define CVS_REQ_USEUNCHANGED 14
51: #define CVS_REQ_NOTIFY 15
52: #define CVS_REQ_NOTIFYUSER 16
53: #define CVS_REQ_QUESTIONABLE 17
54: #define CVS_REQ_CASE 18
55: #define CVS_REQ_UTF8 19
56: #define CVS_REQ_ARGUMENT 20
57: #define CVS_REQ_ARGUMENTX 21
58: #define CVS_REQ_GLOBALOPT 22
59: #define CVS_REQ_GZIPSTREAM 23
60: #define CVS_REQ_KERBENCRYPT 24
61: #define CVS_REQ_GSSENCRYPT 25
62: #define CVS_REQ_PROTOENCRYPT 26
63: #define CVS_REQ_GSSAUTH 27
64: #define CVS_REQ_PROTOAUTH 28
65: #define CVS_REQ_READCVSRC2 29
66: #define CVS_REQ_READWRAP 30
67: #define CVS_REQ_ERRIFREADER 31
68: #define CVS_REQ_VALIDRCSOPT 32
69: #define CVS_REQ_READIGNORE 33
70: #define CVS_REQ_SET 34
71: #define CVS_REQ_XPANDMOD 35
72: #define CVS_REQ_CI 36
73: #define CVS_REQ_CHOWN 37
74: #define CVS_REQ_SETOWN 38
75: #define CVS_REQ_SETPERM 39
76: #define CVS_REQ_CHACL 40
77: #define CVS_REQ_LISTPERM 41
78: #define CVS_REQ_LISTACL 42
79: #define CVS_REQ_SETPASS 43
80: #define CVS_REQ_PASSWD 44
81: #define CVS_REQ_DIFF 45
82: #define CVS_REQ_STATUS 46
83: #define CVS_REQ_LS 47
84: #define CVS_REQ_TAG 48
85: #define CVS_REQ_IMPORT 49
86: #define CVS_REQ_ADMIN 50
87: #define CVS_REQ_HISTORY 51
88: #define CVS_REQ_WATCHERS 52
89: #define CVS_REQ_EDITORS 53
90: #define CVS_REQ_ANNOTATE 54
91: #define CVS_REQ_LOG 55
92: #define CVS_REQ_CO 56
93: #define CVS_REQ_EXPORT 57
94: #define CVS_REQ_RANNOTATE 58
95: #define CVS_REQ_INIT 59
96: #define CVS_REQ_UPDATE 60
97: #define CVS_REQ_ADD 62
98: #define CVS_REQ_REMOVE 63
99: #define CVS_REQ_NOOP 64
100: #define CVS_REQ_RTAG 65
101: #define CVS_REQ_RELEASE 66
102: #define CVS_REQ_RLOG 67
103: #define CVS_REQ_RDIFF 68
104: #define CVS_REQ_VERSION 69
1.8 moritz 105: #define CVS_REQ_WATCH_ON 70
106: #define CVS_REQ_WATCH_OFF 71
107: #define CVS_REQ_WATCH_ADD 72
108: #define CVS_REQ_WATCH_REMOVE 73
109: #define CVS_REQ_MAX 73
1.1 jfb 110:
111: /* responses */
1.7 xsa 112: #define CVS_RESP_NONE 0
113: #define CVS_RESP_OK 1
114: #define CVS_RESP_ERROR 2
115: #define CVS_RESP_VALIDREQ 3
116: #define CVS_RESP_CHECKEDIN 4
117: #define CVS_RESP_NEWENTRY 5
118: #define CVS_RESP_CKSUM 6
119: #define CVS_RESP_COPYFILE 7
120: #define CVS_RESP_UPDATED 8
121: #define CVS_RESP_CREATED 9
122: #define CVS_RESP_UPDEXIST 10
123: #define CVS_RESP_MERGED 11
124: #define CVS_RESP_PATCHED 12
125: #define CVS_RESP_RCSDIFF 13
126: #define CVS_RESP_MODE 14
127: #define CVS_RESP_MODTIME 15
128: #define CVS_RESP_REMOVED 16
129: #define CVS_RESP_RMENTRY 17
130: #define CVS_RESP_SETSTATDIR 18
131: #define CVS_RESP_CLRSTATDIR 19
132: #define CVS_RESP_SETSTICKY 20
133: #define CVS_RESP_CLRSTICKY 21
134: #define CVS_RESP_TEMPLATE 22
135: #define CVS_RESP_SETCIPROG 23
136: #define CVS_RESP_SETUPDPROG 24
137: #define CVS_RESP_NOTIFIED 25
138: #define CVS_RESP_MODXPAND 26
139: #define CVS_RESP_WRAPRCSOPT 27
140: #define CVS_RESP_M 28
141: #define CVS_RESP_MBINARY 29
142: #define CVS_RESP_E 30
143: #define CVS_RESP_F 31
144: #define CVS_RESP_MT 32
1.13 ! joris 145: #define CVS_RESP_MAX 32
1.3 jfb 146:
147: struct cvs_req {
1.7 xsa 148: int req_id;
149: char req_str[32];
150: u_int req_flags;
1.3 jfb 151: };
152:
153: struct cvs_resp {
1.7 xsa 154: u_int resp_id;
155: char resp_str[32];
1.3 jfb 156: };
1.1 jfb 157:
1.7 xsa 158: #endif /* PROTO_H */