00001 /* eurephiafw_helpers.h -- Helper functions, shared between main module and 00002 * firewall module. Setting up Posix MQ and semaphores 00003 * 00004 * GPLv2 only - Copyright (C) 2008 - 2010 00005 * David Sommerseth <dazo@users.sourceforge.net> 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation; version 2 00010 * of the License. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00020 * 00021 */ 00022 00033 #ifndef EUREPHIAFW_HELPERS_H_ 00034 #define EUREPHIAFW_HELPERS_H_ 00035 00036 #define EFW_MSG_SIZE 1024 00037 #define MQUEUE_NAME "/eurephiaFW" 00038 #define SEMPH_MASTER "eurephiafw_master" 00039 #define SEMPH_WORKER "eurephiafw_worker" 00041 int efwSetupSemaphores(eurephiaCTX *, efw_threaddata *); 00042 int efwRemoveSemaphores(eurephiaCTX *, efw_threaddata *); 00043 00044 int efwSetupMessageQueue(eurephiaCTX *, efw_threaddata *); 00045 int efwRemoveMessageQueue(eurephiaCTX *, efw_threaddata *); 00046 00047 #endif /* !EUREPHIAFW_HELPERS_H_ */
1.7.1