Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 28. marec 2024

Súbor: [Platon] / ep / src / conf.h (stiahnutie)

Revízia 1.18, Fri Nov 28 17:35:11 2003 UTC (20 years, 4 months ago) by nepto


Zmeny od 1.17: +3 -3 [lines]

Changed URL from www.platon.sk to platon.sk.

/*
 * ep - extended pipelining
 *
 * conf.h - command line and config file parsing header file
 * ____________________________________________________________
 *
 * Developed by Ondrej Jombik <nepto@platon.sk>
 *          and Lubomir Host <rajo@platon.sk>
 * Copyright (c) 2000-2003 Platon SDG, http://platon.sk/
 * All rights reserved.
 *
 * See README file for more information about this software.
 * See COPYING file for license information.
 *
 * Download the latest version from
 * http://platon.sk/projects/ep/
 */

/* $Platon: ep/src/conf.h,v 1.17 2003/05/03 09:58:19 nepto Exp $ */

#ifndef _CONF_H
#define _CONF_H

#include "fd.h" /* N_FD */
#include "proctable.h" /* PROCTABLE */

extern char *conf_global_filename;
extern char *conf_user_filename;
extern struct conf_struct_global cfg;

struct conf_struct_global {
    int help;
    int quiet;
    int verbose;
    int disable_global_config;
    int disable_user_config;
    int case_insensitive_names;
    int fast_data_transfer;

    char **config_file;
};

struct conf_struct_process {
    int nice;

    char **fd_str[N_FD];
    char **name;
    char **argv;
};

int conf_init(void);
void conf_destroy(void);

PROCTABLE conf_parse_all(int argc, char **argv);

int conf_cfgfile_parse(
        char *filename,
        struct conf_struct_global **global,
        struct conf_struct_process ***processes);

int conf_cmdline_parse(
        int argc, char **argv,
        struct conf_struct_global **global,
        struct conf_struct_process ***processes);

#endif /* _CONF_H */


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok