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