Annotation of acopm/src/vars.h, 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: #ifndef INC_ACOPM_VARS_INTERNAL_H
! 35: #define INC_ACOPM_VARS_INTERNAL_H
! 36:
! 37: #include "acopm-common.h"
! 38:
! 39: #include <limits.h> /* PATH_MAX */
! 40:
! 41: #include <event2/event.h> /* struct event_base */
! 42:
! 43: #include "irc/client.h" /* struct acopm_irc_client, ACOPM_IRC_LINE_MAX, ACOPM_IRC_NOTICE_MAX */
! 44: #include "dnsbl/client.h" /* struct acopm_dnsbl_client */
! 45: #include "proxy/client.h" /* struct acopm_proxy_client */
! 46:
! 47: #ifndef PATH_MAX
! 48: # define PATH_MAX 4096
! 49: #endif
! 50:
! 51: #define ACOPM_EXE_EVAR_MAX 16384
! 52: #define ACOPM_EXE_CONF_MAX 256
! 53: #define ACOPM_EXE_PATH_MAX PATH_MAX
! 54:
! 55: extern struct event_base *ev_base;
! 56:
! 57: extern struct acopm_irc_client *acopm_irc_client;
! 58: extern struct acopm_dnsbl_client *acopm_dnsbl_client;
! 59: extern struct acopm_proxy_client *acopm_proxy_client;
! 60:
! 61: extern char config_file[PATH_MAX];
! 62: extern char proxy_hit_exe[PATH_MAX];
! 63: extern char proxy_hit_log[PATH_MAX];
! 64:
! 65: extern char client_notice_msg[ACOPM_IRC_NOTICE_MAX + 1];
! 66: extern char dnsbl_hit_cmd[ACOPM_IRC_LINE_MAX + 1];
! 67: extern char proxy_hit_cmd[ACOPM_IRC_LINE_MAX + 1];
! 68: extern char proxy_hit_var1[ACOPM_EXE_CONF_MAX + 1];
! 69: extern char proxy_hit_var2[ACOPM_EXE_CONF_MAX + 1];
! 70: extern char proxy_hit_var3[ACOPM_EXE_CONF_MAX + 1];
! 71: extern char proxy_hit_var4[ACOPM_EXE_CONF_MAX + 1];
! 72: extern char proxy_hit_var5[ACOPM_EXE_CONF_MAX + 1];
! 73:
! 74: #endif /* !INC_ACOPM_VARS_INTERNAL_H */
CVSweb