server.h (32785) | server.h (34461) |
---|---|
1/* Interface between the server and the rest of CVS. */ 2 3/* Miscellaneous stuff which isn't actually particularly server-specific. */ 4#ifndef STDIN_FILENO 5#define STDIN_FILENO 0 6#define STDOUT_FILENO 1 7#define STDERR_FILENO 2 8#endif --- 43 unchanged lines hidden (view full) --- 52 * repository. 53 */ 54extern void server_checked_in 55 PROTO((char *file, char *update_dir, char *repository)); 56 57extern void server_copy_file 58 PROTO((char *file, char *update_dir, char *repository, char *newfile)); 59 | 1/* Interface between the server and the rest of CVS. */ 2 3/* Miscellaneous stuff which isn't actually particularly server-specific. */ 4#ifndef STDIN_FILENO 5#define STDIN_FILENO 0 6#define STDOUT_FILENO 1 7#define STDERR_FILENO 2 8#endif --- 43 unchanged lines hidden (view full) --- 52 * repository. 53 */ 54extern void server_checked_in 55 PROTO((char *file, char *update_dir, char *repository)); 56 57extern void server_copy_file 58 PROTO((char *file, char *update_dir, char *repository, char *newfile)); 59 |
60/* Send the appropriate responses for a file described by FILE, 61 UPDATE_DIR, REPOSITORY, and VERS. FILE_INFO is the result of 62 statting the file, or NULL if it hasn't been statted yet. This is 63 called after server_register or server_scratch. In the latter case 64 the file is to be removed (and vers can be NULL). In the former 65 case, vers must be non-NULL, and UPDATED indicates whether the file 66 is now up to date (SERVER_UPDATED, yes, SERVER_MERGED, no, 67 SERVER_PATCHED, yes, but file is a diff from user version to 68 repository version, SERVER_RCS_DIFF, yes, like SERVER_PATCHED but 69 with an RCS style diff). */ | 60/* Send the appropriate responses for a file described by FINFO and 61 VERS. This is called after server_register or server_scratch. In 62 the latter case the file is to be removed (and VERS can be NULL). 63 In the former case, VERS must be non-NULL, and UPDATED indicates 64 whether the file is now up to date (SERVER_UPDATED, yes, 65 SERVER_MERGED, no, SERVER_PATCHED, yes, but file is a diff from 66 user version to repository version, SERVER_RCS_DIFF, yes, like 67 SERVER_PATCHED but with an RCS style diff). MODE is the mode the 68 file should get, or (mode_t) -1 if this should be obtained from the 69 file itself. CHECKSUM is the MD5 checksum of the file, or NULL if 70 this need not be sent. If FILEBUF is not NULL, it holds the 71 contents of the file, in which case the file itself may not exist. 72 If FILEBUF is not NULL, server_updated will free it. */ |
70enum server_updated_arg4 71{ 72 SERVER_UPDATED, 73 SERVER_MERGED, 74 SERVER_PATCHED, 75 SERVER_RCS_DIFF 76}; | 73enum server_updated_arg4 74{ 75 SERVER_UPDATED, 76 SERVER_MERGED, 77 SERVER_PATCHED, 78 SERVER_RCS_DIFF 79}; |
80#ifdef __STDC__ 81struct buffer; 82#endif 83 |
|
77extern void server_updated 78 PROTO((struct file_info *finfo, Vers_TS *vers, | 84extern void server_updated 85 PROTO((struct file_info *finfo, Vers_TS *vers, |
79 enum server_updated_arg4 updated, struct stat *, 80 unsigned char *checksum)); | 86 enum server_updated_arg4 updated, mode_t mode, 87 unsigned char *checksum, struct buffer *filebuf)); |
81 82/* Whether we should send RCS format patches. */ 83extern int server_use_rcs_diff PROTO((void)); 84 85/* Set the Entries.Static flag. */ 86extern void server_set_entstat PROTO((char *update_dir, char *repository)); 87/* Clear it. */ 88extern void server_clear_entstat PROTO((char *update_dir, char *repository)); --- 81 unchanged lines hidden --- | 88 89/* Whether we should send RCS format patches. */ 90extern int server_use_rcs_diff PROTO((void)); 91 92/* Set the Entries.Static flag. */ 93extern void server_set_entstat PROTO((char *update_dir, char *repository)); 94/* Clear it. */ 95extern void server_clear_entstat PROTO((char *update_dir, char *repository)); --- 81 unchanged lines hidden --- |