Changeset 20 for trunk/src/sh_readconf.c
- Timestamp:
- Feb 13, 2006, 11:54:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_readconf.c
r1 r20 731 731 #endif 732 732 733 /* Yes, this isn't very elegant ;) 734 */ 735 #if defined(WITH_EXTERNAL) 736 int sh_error_set_external_wrap (char * str) { 737 return sh_error_set_external ((const char *) str); 738 } 739 #endif 740 #if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE) 741 int sh_files_setrecursion_wrap (char * str) { 742 return sh_files_setrecursion ((const char *) str); 743 } 744 int sh_util_setchecksum_wrap (char * str) { 745 return sh_util_setchecksum ((const char *) str); 746 } 747 #endif 748 int sh_util_setlooptime_wrap (char * str) { 749 return sh_util_setlooptime ((const char *) str); 750 } 751 #ifdef SH_WITH_MAIL 752 int sh_error_setseverity_wrap (char * str) { 753 return sh_error_setseverity ((const char *) str); 754 } 755 #endif 756 int sh_calls_set_bind_addr_wrap (char * str) { 757 return sh_calls_set_bind_addr ((const char *) str); 758 } 759 int sh_unix_setdeamon_wrap (char * str) { 760 return sh_unix_setdeamon ((const char *) str); 761 } 762 int sh_error_setprint_wrap (char * str) { 763 return sh_error_setprint ((const char *) str); 764 } 765 int sh_error_setlog_wrap (char * str) { 766 return sh_error_setlog ((const char *) str); 767 } 768 int sh_error_set_syslog_wrap (char * str) { 769 return sh_error_set_syslog ((const char *) str); 770 } 771 #ifdef HAVE_LIBPRELUDE 772 int sh_error_set_prelude_wrap (char * str) { 773 return sh_error_set_prelude ((const char *) str); 774 } 775 #endif 776 #ifdef SH_WITH_CLIENT 777 int sh_error_setexport_wrap (char * str) { 778 return sh_error_setexport ((const char *) str); 779 } 780 #endif 781 #ifdef SH_WITH_SERVER 782 int sh_forward_set_strip_wrap (char * str) { 783 return sh_forward_set_strip ((const char *) str); 784 } 785 int sh_unix_set_chroot_wrap (char * str) { 786 return sh_unix_set_chroot ((const char *) str); 787 } 788 #endif 789 #if defined(WITH_DATABASE) 790 int sh_error_set_database_wrap (char * str) { 791 return sh_error_set_database ((const char *) str); 792 } 793 #endif 794 733 795 cfg_options ext_table[] = { 734 796 #if defined(WITH_EXTERNAL) … … 756 818 sh_ext_add_or }, 757 819 { N_("externalseverity"),SH_SECTION_LOG, SH_SECTION_EXTERNAL, 758 sh_error_set_external },820 sh_error_set_external_wrap }, 759 821 { N_("externalclass"), SH_SECTION_LOG, SH_SECTION_EXTERNAL, 760 822 sh_error_external_mask }, … … 840 902 sh_util_obscure_ok }, 841 903 { N_("setrecursionlevel"), SH_SECTION_MISC, SH_SECTION_NONE, 842 sh_files_setrecursion },904 sh_files_setrecursion_wrap }, 843 905 { N_("checksumtest"), SH_SECTION_MISC, SH_SECTION_NONE, 844 sh_util_setchecksum },906 sh_util_setchecksum_wrap }, 845 907 { N_("reportonlyonce"), SH_SECTION_MISC, SH_SECTION_NONE, 846 908 sh_files_reportonce }, … … 915 977 sh_socket_password }, 916 978 { N_("setstripdomain"), SH_SECTION_SRV, SH_SECTION_MISC, 917 sh_forward_set_strip },979 sh_forward_set_strip_wrap }, 918 980 { N_("useseparatelogs"), SH_SECTION_SRV, SH_SECTION_MISC, 919 981 set_flag_sep_log }, 920 982 { N_("setchrootdir"), SH_SECTION_SRV, SH_SECTION_MISC, 921 sh_unix_set_chroot },983 sh_unix_set_chroot_wrap }, 922 984 { N_("setclienttimelimit"), SH_SECTION_SRV, SH_SECTION_MISC, 923 985 sh_forward_set_time_limit }, … … 940 1002 #ifdef SH_WITH_CLIENT 941 1003 { N_("exportseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 942 sh_error_setexport },1004 sh_error_setexport_wrap }, 943 1005 { N_("exportclass"), SH_SECTION_LOG, SH_SECTION_NONE, 944 1006 sh_error_export_mask }, … … 949 1011 sh_readconf_setFiletime }, 950 1012 { N_("setlooptime"), SH_SECTION_MISC, SH_SECTION_NONE, 951 sh_util_setlooptime },1013 sh_util_setlooptime_wrap }, 952 1014 953 1015 #ifdef SH_WITH_MAIL 954 1016 { N_("mailseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 955 sh_error_setseverity },1017 sh_error_setseverity_wrap }, 956 1018 { N_("mailclass"), SH_SECTION_LOG, SH_SECTION_NONE, 957 1019 sh_error_mail_mask }, … … 978 1040 #endif 979 1041 { N_("setbindaddress"), SH_SECTION_MISC, SH_SECTION_NONE, 980 sh_calls_set_bind_addr },1042 sh_calls_set_bind_addr_wrap }, 981 1043 { N_("daemon"), SH_SECTION_MISC, SH_SECTION_NONE, 982 sh_unix_setdeamon },1044 sh_unix_setdeamon_wrap }, 983 1045 { N_("samhainpath"), SH_SECTION_MISC, SH_SECTION_NONE, 984 1046 sh_unix_self_hash }, … … 989 1051 990 1052 { N_("printseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 991 sh_error_setprint },1053 sh_error_setprint_wrap }, 992 1054 { N_("printclass"), SH_SECTION_LOG, SH_SECTION_NONE, 993 1055 sh_error_print_mask }, 994 1056 995 1057 { N_("logseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 996 sh_error_setlog },1058 sh_error_setlog_wrap }, 997 1059 { N_("logclass"), SH_SECTION_LOG, SH_SECTION_NONE, 998 1060 sh_error_log_mask }, 999 1061 1000 1062 { N_("syslogseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 1001 sh_error_set_syslog },1063 sh_error_set_syslog_wrap }, 1002 1064 { N_("syslogclass"), SH_SECTION_LOG, SH_SECTION_NONE, 1003 1065 sh_error_syslog_mask }, 1004 1066 #ifdef HAVE_LIBPRELUDE 1005 1067 { N_("preludeseverity"), SH_SECTION_LOG, SH_SECTION_NONE, 1006 sh_error_set_prelude },1068 sh_error_set_prelude_wrap }, 1007 1069 { N_("preludeclass"), SH_SECTION_LOG, SH_SECTION_NONE, 1008 1070 sh_error_prelude_mask },
Note:
See TracChangeset
for help on using the changeset viewer.