Annotation of acopm/src/vars.c, Revision 1.1
1.1 ! bountyht 1: /*
! 2: * Copyright (C) 2017 Aaron M. D. Jones <aaronmdjones@gmail.com>
! 3: *
! 4: * Redistribution and use in source and binary forms, with or without
! 5: * modification, are permitted provided that the following
! 6: * conditions are met:
! 7: *
! 8: * 1. Redistributions of source code must retain the above copyright
! 9: * notice, this list of conditions and the following disclaimer.
! 10: *
! 11: * 2. Redistributions in binary form must reproduce the above copyright
! 12: * notice, this list of conditions and the following disclaimer in the
! 13: * documentation and/or other materials provided with the distribution.
! 14: *
! 15: * 3. Neither the name of the copyright holder nor the names of its
! 16: * contributors may be used to endorse or promote products derived from
! 17: * this software without specific prior written permission.
! 18: *
! 19: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
! 20: * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
! 21: * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
! 22: * PARTICULAR PURPOSE ARE DISCLAIMED.
! 23: *
! 24: * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
! 25: * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 26: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 27: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 28: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
! 29: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
! 30: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
! 31: * POSSIBILITY OF SUCH DAMAGE.
! 32: */
! 33:
! 34: #include "acopm-common.h"
! 35:
! 36: #include <event2/event.h> /* struct event_base */
! 37:
! 38: #include "vars.h" /* global variable definitions */
! 39:
! 40: #include "irc/client.h" /* struct acopm_irc_client */
! 41: #include "dnsbl/client.h" /* struct acopm_dnsbl_client */
! 42: #include "proxy/client.h" /* struct acopm_proxy_client */
! 43:
! 44: struct event_base *ev_base = NULL;
! 45:
! 46: struct acopm_irc_client *acopm_irc_client = NULL;
! 47: struct acopm_dnsbl_client *acopm_dnsbl_client = NULL;
! 48: struct acopm_proxy_client *acopm_proxy_client = NULL;
! 49:
! 50: char config_file[PATH_MAX];
! 51: char proxy_hit_exe[PATH_MAX];
! 52: char proxy_hit_log[PATH_MAX];
! 53:
! 54: char client_notice_msg[ACOPM_IRC_NOTICE_MAX + 1];
! 55: char dnsbl_hit_cmd[ACOPM_IRC_LINE_MAX + 1];
! 56: char proxy_hit_cmd[ACOPM_IRC_LINE_MAX + 1];
! 57: char proxy_hit_var1[ACOPM_EXE_CONF_MAX + 1];
! 58: char proxy_hit_var2[ACOPM_EXE_CONF_MAX + 1];
! 59: char proxy_hit_var3[ACOPM_EXE_CONF_MAX + 1];
! 60: char proxy_hit_var4[ACOPM_EXE_CONF_MAX + 1];
! 61: char proxy_hit_var5[ACOPM_EXE_CONF_MAX + 1];
CVSweb