/contrib/cvs/src/root.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 57 lines · 35 code · 4 blank · 18 comment · 0 complexity · d96733642ff51c0e7bf3397332e5eba1 MD5 · raw file

  1. /*
  2. * Copyright (C) 1986-2005 The Free Software Foundation, Inc.
  3. *
  4. * Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
  5. * and others.
  6. *
  7. * Portions Copyright (C) 1992, Brian Berliner and Jeff Polk
  8. * Portions Copyright (C) 1989-1992, Brian Berliner
  9. *
  10. * You may distribute under the terms of the GNU General Public License as
  11. * specified in the README file that comes with the CVS kit.
  12. */
  13. /* CVSroot data structures */
  14. /* Access method specified in CVSroot. */
  15. typedef enum {
  16. null_method,
  17. local_method,
  18. server_method,
  19. pserver_method,
  20. kserver_method,
  21. gserver_method,
  22. ext_method,
  23. extssh_method,
  24. fork_method
  25. } CVSmethod;
  26. extern const char method_names[][16]; /* change this in root.c if you change
  27. the enum above */
  28. typedef struct cvsroot_s {
  29. char *original; /* The complete source CVSroot string. */
  30. CVSmethod method; /* One of the enum values above. */
  31. char *directory; /* The directory name. */
  32. unsigned char isremote; /* Nonzero if we are doing remote access. */
  33. #ifdef CLIENT_SUPPORT
  34. char *username; /* The username or NULL if method == local. */
  35. char *password; /* The password or NULL if method == local. */
  36. char *hostname; /* The hostname or NULL if method == local. */
  37. int port; /* The port or zero if method == local. */
  38. char *proxy_hostname; /* The hostname of the proxy server, or NULL
  39. * when method == local or no proxy will be
  40. * used.
  41. */
  42. int proxy_port; /* The port of the proxy or zero, as above. */
  43. #endif /* CLIENT_SUPPORT */
  44. } cvsroot_t;
  45. cvsroot_t *Name_Root PROTO((const char *dir, const char *update_dir));
  46. void free_cvsroot_t PROTO((cvsroot_t *root_in));
  47. cvsroot_t *parse_cvsroot PROTO((const char *root));
  48. cvsroot_t *local_cvsroot PROTO((const char *dir));
  49. void Create_Root PROTO((const char *dir, const char *rootdir));
  50. void root_allow_add PROTO ((char *));
  51. void root_allow_free PROTO ((void));
  52. int root_allow_ok PROTO ((char *));
  53. int root_allow_used PROTO ((void));