version 1.8, 2004/07/25 03:18:53 |
version 1.9, 2004/07/26 15:56:43 |
|
|
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <stdio.h> |
#include <stdio.h> |
|
#include <dirent.h> |
|
|
#include "rcs.h" |
#include "rcs.h" |
|
|
#define CVS_VERSION "OpenCVS 0.1" |
#define CVS_VERSION "OpenCVS 0.1" |
|
|
#define CVS_FST_REMOVED 4 |
#define CVS_FST_REMOVED 4 |
#define CVS_FST_CONFLICT 5 |
#define CVS_FST_CONFLICT 5 |
|
|
struct cvs_file { |
typedef struct cvs_file { |
char *cf_path; |
char *cf_path; |
struct cvs_file *cf_parent; /* parent directory (NULL if none) */ |
struct cvs_file *cf_parent; /* parent directory (NULL if none) */ |
char *cf_name; |
char *cf_name; |
|
|
struct cvs_dir *cf_ddat; /* only for directories */ |
struct cvs_dir *cf_ddat; /* only for directories */ |
|
|
LIST_ENTRY(cvs_file) cf_list; |
LIST_ENTRY(cvs_file) cf_list; |
}; |
} CVSFILE; |
|
|
|
|
struct cvs_dir { |
struct cvs_dir { |
|
|
|
|
/* client command handlers */ |
/* client command handlers */ |
int cvs_add (int, char **); |
int cvs_add (int, char **); |
|
int cvs_checkout (int, char **); |
int cvs_commit (int, char **); |
int cvs_commit (int, char **); |
int cvs_diff (int, char **); |
int cvs_diff (int, char **); |
int cvs_getlog (int, char **); |
int cvs_getlog (int, char **); |
|
|
|
|
|
|
/* from file.c */ |
/* from file.c */ |
int cvs_file_init (void); |
int cvs_file_init (void); |
int cvs_file_ignore (const char *); |
int cvs_file_ignore (const char *); |
int cvs_file_isignored (const char *); |
int cvs_file_chkign (const char *); |
char** cvs_file_getv (const char *, int *, int); |
char** cvs_file_getv (const char *, int *, int); |
struct cvs_file* cvs_file_get (const char *, int); |
CVSFILE* cvs_file_get (const char *, int); |
void cvs_file_free (struct cvs_file *); |
void cvs_file_free (struct cvs_file *); |
|
int cvs_file_examine (CVSFILE *, int (*)(CVSFILE *, void *), void *); |
|
|
|
|
/* Entries API */ |
/* Entries API */ |