[BACK]Return to remote.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Annotation of src/usr.bin/cvs/remote.h, Revision 1.21

1.21    ! niallo      1: /*     $OpenBSD: remote.h,v 1.20 2007/01/18 16:45:52 joris Exp $       */
1.1       joris       2: /*
                      3:  * Copyright (c) 2006 Joris Vink <joris@openbsd.org>
                      4:  *
                      5:  * Permission to use, copy, modify, and distribute this software for any
                      6:  * purpose with or without fee is hereby granted, provided that the above
                      7:  * copyright notice and this permission notice appear in all copies.
                      8:  *
                      9:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14:  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15:  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     16:  */
                     17:
                     18: #ifndef H_REMOTE
                     19: #define H_REMOTE
                     20:
                     21: struct cvs_req {
                     22:        char    name[32];
                     23:        int     supported;
                     24:
                     25:        void    (*hdlr)(char *);
                     26:        int     flags;
                     27: };
                     28:
                     29: struct cvs_resp {
                     30:        char    name[32];
                     31:        int     supported;
                     32:
                     33:        void    (*hdlr)(char *);
                     34:        int     flags;
                     35: };
                     36:
                     37: #define        REQ_NEEDED      0x01
                     38: #define RESP_NEEDED    0x01
1.15      joris      39:
                     40: extern int server_response;
                     41:
                     42: #define SERVER_OK      0
                     43: #define SERVER_ERROR   1
1.1       joris      44:
                     45: void   cvs_client_connect_to_server(void);
                     46: void   cvs_client_disconnect(void);
                     47: void   cvs_client_send_request(char *, ...);
                     48: void   cvs_client_read_response(void);
                     49: void   cvs_client_get_responses(void);
                     50:
                     51: void   cvs_client_ok(char *);
                     52: void   cvs_client_error(char *);
                     53: void   cvs_client_validreq(char *);
                     54: void   cvs_client_e(char *);
                     55: void   cvs_client_m(char *);
                     56: void   cvs_client_checkedin(char *);
                     57: void   cvs_client_updated(char *);
                     58: void   cvs_client_merged(char *);
                     59: void   cvs_client_removed(char *);
                     60: void   cvs_client_remove_entry(char *);
1.14      xsa        61: void   cvs_client_set_static_directory(char *);
1.13      xsa        62: void   cvs_client_clear_static_directory(char *);
                     63: void   cvs_client_set_sticky(char *);
                     64: void   cvs_client_clear_sticky(char *);
1.1       joris      65:
                     66: void   cvs_client_senddir(const char *);
                     67: void   cvs_client_sendfile(struct cvs_file *);
                     68: void   cvs_client_send_files(char **, int);
                     69:
                     70: void   cvs_server_root(char *);
                     71: void   cvs_server_send_response(char *, ...);
                     72: void   cvs_server_validresp(char *);
                     73: void   cvs_server_validreq(char *);
                     74: void   cvs_server_globalopt(char *);
                     75: void   cvs_server_directory(char *);
                     76: void   cvs_server_entry(char *);
                     77: void   cvs_server_modified(char *);
                     78: void   cvs_server_useunchanged(char *);
                     79: void   cvs_server_unchanged(char *);
                     80: void   cvs_server_questionable(char *);
                     81: void   cvs_server_argument(char *);
1.7       xsa        82: void   cvs_server_argumentx(char *);
1.8       xsa        83: void   cvs_server_set(char *);
1.11      xsa        84: void   cvs_server_static_directory(char *);
1.10      xsa        85: void   cvs_server_sticky(char *);
1.12      xsa        86: void   cvs_server_update_patches(char *);
1.17      joris      87: void   cvs_server_update_entry(const char *, struct cvs_file *cf);
1.1       joris      88:
1.2       xsa        89: void   cvs_server_add(char *);
1.20      joris      90: void   cvs_server_import(char *);
1.5       xsa        91: void   cvs_server_admin(char *);
1.9       xsa        92: void   cvs_server_annotate(char *);
1.1       joris      93: void   cvs_server_commit(char *);
1.19      joris      94: void   cvs_server_checkout(char *);
1.1       joris      95: void   cvs_server_diff(char *);
1.4       xsa        96: void   cvs_server_init(char *);
1.3       xsa        97: void   cvs_server_log(char *);
1.21    ! niallo     98: void   cvs_server_rlog(char *);
1.2       xsa        99: void   cvs_server_remove(char *);
1.3       xsa       100: void   cvs_server_status(char *);
                    101: void   cvs_server_tag(char *);
1.1       joris     102: void   cvs_server_update(char *);
1.6       xsa       103: void   cvs_server_version(char *);
1.1       joris     104:
                    105: void   cvs_remote_classify_file(struct cvs_file *);
                    106: void   cvs_remote_output(const char *);
                    107: char   *cvs_remote_input(void);
1.18      joris     108: void   cvs_remote_receive_file(int, size_t);
1.1       joris     109: void   cvs_remote_send_file(const char *);
1.16      joris     110:
                    111: extern int cvs_client_inlog_fd;
                    112: extern int cvs_client_outlog_fd;
1.1       joris     113:
                    114: extern struct cvs_req cvs_requests[];
                    115: extern struct cvs_resp cvs_responses[];
                    116:
                    117: struct cvs_req *cvs_remote_get_request_info(const char *);
                    118: struct cvs_resp *cvs_remote_get_response_info(const char *);
                    119:
                    120: #endif