Source File include/constants.h

    1    | #ifndef READ_CONSTANTS
    2    | #define READ_CONSTANTS
    3    |
    4    | /***************************************
    5    |   $Revision: 1.10 $
    6    |
    7    |   Constants module (co) - this _should_ eventually get merged in with the
    8    |   config module.
    9    |
    10   |   Status: NOT REVUED, NOT TESTED
    11   |
    12   |   ******************/ /******************
    13   |   Copyright (c) 1999                              RIPE NCC
    14   |
    15   |   All Rights Reserved
    16   |
    17   |   Permission to use, copy, modify, and distribute this software and its
    18   |   documentation for any purpose and without fee is hereby granted,
    19   |   provided that the above copyright notice appear in all copies and that
    20   |   both that copyright notice and this permission notice appear in
    21   |   supporting documentation, and that the name of the author not be
    22   |   used in advertising or publicity pertaining to distribution of the
    23   |   software without specific, written prior permission.
    24   |
    25   |   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
    26   |   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
    27   |   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
    28   |   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
    29   |   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
    30   |   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    31   |   ***************************************/
    32   |
    33   | #include <glib.h>
    34   |
    35   | int CO_get_max_threads();
    36   | char *CO_get_whois_port();
    37   | char *CO_get_config_port();
    38   | char *CO_get_mirror_port();
    39   | char *CO_get_update_port();
    40   | char *CO_get_host();
    41   | char *CO_get_user();
    42   | char *CO_get_password();
    43   | int CO_get_database_port();
    44   | char *CO_get_database();
    45   | char *CO_get_query();
    46   | char *CO_get_in_query();
    47   | char *CO_get_rt_query();
    48   | int CO_get_authenticate();
    49   | int CO_get_whois_suspended();
    50   | char *CO_get_welcome();
    51   | char *CO_get_prompt();
    52   | int CO_get_clear_screen();
    53   | int CO_get_sleep_time();
    54   | int CO_get_accounting();
    55   | int CO_get_query_logging();
    56   | char *CO_get_query_logfile();
    57   | int CO_get_comnd_logging();
    58   | char *CO_get_comnd_logfile();
    59   | int CO_get_instr_logging();
    60   | char *CO_get_instr_logfile();
    61   | int CO_get_tests_logging();
    62   | char *CO_get_tests_logfile();
    63   | int CO_get_thread_logging();
    64   | char *CO_get_thread_logfile();
    65   | int CO_get_socket_logging();
    66   | char *CO_get_socket_logfile();
    67   | int CO_get_config_logging();
    68   | char *CO_get_config_logfile();
    69   |
    70   | char *CO_get_nrtm_host();
    71   | char *CO_get_nrtm_port();
    72   | int CO_get_nrtm_version();
    73   | int CO_get_nrtm_delay();
    74   | char *CO_get_nrtm_cserialfile();
    75   | char *CO_get_nrtm_logfile();
    76   | int CO_get_do_nrtm();
    77   | int CO_get_update_mode();
    78   | int CO_get_do_update();
    79   | int CO_get_do_server();
    80   |
    81   |
    82   | char *CO_to_string(void);
    83   | char *CO_const_to_string(const char *name);
    84   | int CO_set_const(const char *name, const char *value);
    85   | char *CO_set(void);
    86   |
    87   | char * CO_sources_to_string(void);
    88   | char *CO_sources_list_to_string(GList *sources_list);
    89   | char * const *CO_get_sources(void) ;
    90   | const char *CO_get_source(int index);
    91   | const char *CO_get_source_database(int index);
    92   |
    93   | #endif /* READ_CONSTANTS */