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

Annotation of src/usr.bin/cvs/config.h, Revision 1.4

1.4     ! joris       1: /*     $OpenBSD: config.h,v 1.3 2008/02/02 19:32:28 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 CONFIG_H
                     19: #define CONFIG_H
                     20:
1.3       joris      21: void cvs_read_config(char *name, void (*cb)(char *));
                     22:
1.1       joris      23: void cvs_parse_configfile(void);
1.3       joris      24: void cvs_parse_modules(void);
1.2       joris      25:
                     26: void config_parse_line(char *);
1.3       joris      27: void modules_parse_line(char *);
                     28:
                     29: #include <sys/queue.h>
                     30:
                     31: /* module stuff */
                     32:
1.4     ! joris      33: #define MODULE_ALIAS           0x01
        !            34: #define MODULE_TARGETDIR       0x02
        !            35: #define MODULE_NORECURSE       0x04
        !            36:
        !            37: struct module_checkout {
        !            38:        char                    *mc_repo;
        !            39:        char                    *mc_wdir;
        !            40:        int                      mc_flags;
        !            41: };
1.3       joris      42:
                     43: struct module_info {
                     44:        char                            *mi_name;
                     45:        char                            *mi_repository;
1.4     ! joris      46:        int                              mi_flags;
1.3       joris      47:
1.4     ! joris      48:        TAILQ_ENTRY(module_info)         m_list;
1.3       joris      49: };
1.1       joris      50:
1.4     ! joris      51: struct module_checkout *cvs_module_lookup(char *);
1.1       joris      52: #endif