version 1.12, 2005/05/25 06:02:00 |
version 1.13, 2005/05/25 06:22:08 |
|
|
#include <string.h> |
#include <string.h> |
|
|
#include "cvs.h" |
#include "cvs.h" |
|
#include "log.h" |
#include "proto.h" |
#include "proto.h" |
#include "log.h" |
#include "log.h" |
|
|
static int cvs_version_sendflags (struct cvsroot *); |
static int cvs_version_init (struct cvs_cmd *, int, char **, int *); |
|
static int cvs_version_pre_exec (struct cvsroot *); |
|
|
struct cvs_cmd cvs_cmd_version = { |
struct cvs_cmd cvs_cmd_version = { |
CVS_OP_VERSION, CVS_REQ_VERSION, "version", |
CVS_OP_VERSION, CVS_REQ_VERSION, "version", |
|
|
"", |
"", |
NULL, |
NULL, |
0, |
0, |
|
cvs_version_init, |
|
cvs_version_pre_exec, |
NULL, |
NULL, |
cvs_version_sendflags, |
|
NULL, |
NULL, |
NULL, |
NULL, |
NULL, |
NULL, |
NULL, |
|
0 |
0 |
}; |
}; |
|
|
|
|
static int |
static int |
cvs_version_sendflags(struct cvsroot *root) |
cvs_version_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg) |
|
{ |
|
*arg = 1; |
|
return (0); |
|
} |
|
|
|
static int |
|
cvs_version_pre_exec(struct cvsroot *root) |
{ |
{ |
if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL)) |
if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL)) |
printf("Client: "); |
printf("Client: "); |