00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef CMS_CFG_HH
00011 #define CMS_CFG_HH
00012
00013
00014
00015 #include "cms_user.hh"
00016 #include "rcs_defs.hh"
00017
00018
00019 #ifndef CMS_CONFIG_LINELEN
00020 #define CMS_CONFIG_LINELEN 200
00021 #endif
00022 #ifndef CMS_CONFIG_COMMENTCHAR
00023 #define CMS_CONFIG_COMMENTCHAR '#'
00024 #endif
00025
00026 #ifdef __cplusplus
00027 extern "C"
00028 {
00029 #endif
00030
00031
00032 extern int RCS_EXPORT cms_config (CMS ** c, char *b, char *p, char *f,
00033 int set_to_server = 0, int set_to_master =
00034 0);
00035
00036 extern int RCS_EXPORT cms_copy (CMS ** dest, CMS * src,
00037 int set_to_server = 0, int set_to_master =
00038 0);
00039
00040
00041 extern int cms_create_from_lines (CMS ** cms, char *buffer_line,
00042 char *proc_line, int set_to_server =
00043 0, int set_to_master = 0);
00044
00045 extern int cms_create (CMS ** cms, char *buf_line, char *proc_line,
00046 char *buffer_type, char *proc_type,
00047 int set_to_server = 0, int set_to_master = 0);
00048
00049
00050
00051 extern int load_nml_config_file (const char *file);
00052 extern int unload_nml_config_file (const char *file);
00053 extern int print_loaded_nml_config_file_list ();
00054 extern int unload_all_nml_config_files ();
00055 extern char *get_buffer_line (const char *buf, const char *file);
00056 extern int hostname_matches_bufferline (char *bufline);
00057
00058
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062
00063
00064
00065 #endif