]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/src/root.h
This commit was generated by cvs2svn to compensate for changes in r173932,
[FreeBSD/FreeBSD.git] / contrib / cvs / src / root.h
1 /*
2  * Copyright (c) 2001, Derek Price and others
3  * Copyright (c) 1992, Brian Berliner and Jeff Polk
4  * Copyright (c) 1989-1992, Brian Berliner
5  *
6  * You may distribute under the terms of the GNU General Public License as
7  * specified in the README file that comes with the CVS kit.
8  */
9
10 /* CVSroot data structures */
11
12 /* Access method specified in CVSroot. */
13 typedef enum {
14     null_method,
15     local_method,
16     server_method,
17     pserver_method,
18     kserver_method,
19     gserver_method,
20     ext_method,
21     fork_method
22 } CVSmethod;
23 extern const char method_names[][16];   /* change this in root.c if you change
24                                            the enum above */
25
26 typedef struct cvsroot_s {
27     char *original;             /* The complete source CVSroot string. */
28     CVSmethod method;           /* One of the enum values above. */
29     char *directory;            /* The directory name. */
30 #ifdef CLIENT_SUPPORT
31     char *username;             /* The username or NULL if method == local. */
32     char *password;             /* The password or NULL if method == local. */
33     char *hostname;             /* The hostname or NULL if method == local. */
34     int port;                   /* The port or zero if method == local. */
35     char *proxy_hostname;       /* The hostname of the proxy server, or NULL
36                                  * when method == local or no proxy will be
37                                  * used.
38                                  */
39     int proxy_port;             /* The port of the proxy or zero, as above. */
40     unsigned char isremote;     /* Nonzero if we are doing remote access. */
41 #endif /* CLIENT_SUPPORT */
42 } cvsroot_t;