/contrib/cvs/src/edit.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 41 lines · 12 code · 5 blank · 24 comment · 0 complexity · c804278df36ebef221897de95b6a434a MD5 · raw file

  1. /* Interface to "cvs edit", "cvs watch on", and related features
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 2, or (at your option)
  5. any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details. */
  10. extern int watch_on PROTO ((int argc, char **argv));
  11. extern int watch_off PROTO ((int argc, char **argv));
  12. #ifdef CLIENT_SUPPORT
  13. /* Check to see if any notifications are sitting around in need of being
  14. sent. These are the notifications stored in CVSADM_NOTIFY (edit,unedit);
  15. commit calls notify_do directly. */
  16. extern void cvs_notify_check PROTO ((const char *repository,
  17. const char *update_dir));
  18. #endif /* CLIENT_SUPPORT */
  19. /* Issue a notification for file FILENAME. TYPE is 'E' for edit, 'U'
  20. for unedit, and 'C' for commit. WHO is the user currently running.
  21. For TYPE 'E', VAL is the time+host+directory data which goes in
  22. _editors, and WATCHES is zero or more of E,U,C, in that order, to specify
  23. what kinds of temporary watches to set. */
  24. extern void notify_do PROTO ((int type, const char *filename, const char *who,
  25. const char *val, const char *watches,
  26. const char *repository));
  27. /* Set attributes to reflect the fact that EDITOR is editing FILENAME.
  28. VAL is time+host+directory, or NULL if we are to say that EDITOR is
  29. *not* editing FILENAME. */
  30. extern void editor_set PROTO ((const char *filename, const char *editor,
  31. const char *val));
  32. /* Take note of the fact that FILE is up to date (this munges CVS/Base;
  33. processing of CVS/Entries is done separately). */
  34. extern void mark_up_to_date PROTO ((const char *file));