eurephiafw_struct.h

Go to the documentation of this file.
00001 /* eurephiafw.h  --  Firewall interface struct typedef
00002  *
00003  *  GPLv2 only - Copyright (C) 2008 - 2010
00004  *               David Sommerseth <dazo@users.sourceforge.net>
00005  *
00006  *  This program is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU General Public License
00008  *  as published by the Free Software Foundation; version 2
00009  *  of the License.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  *
00020  */
00021 
00032 #ifndef         EUREPHIAFW_STRUCT_H_
00033 #define         EUREPHIAFW_STRUCT_H_
00034 
00035 #include <mqueue.h>
00036 #include <semaphore.h>
00037 
00038 #include <eurephia_values_struct.h>
00039 
00044 typedef struct {
00045         mqd_t msgq;             
00046         sem_t *semp_worker;     
00047         sem_t *semp_master;     
00048         char *fw_command;       
00049         void *ctx;              
00050 } efw_threaddata;
00051 
00055 typedef struct {
00056         efw_threaddata thrdata; 
00057         pid_t fwproc_pid;       
00059         char *fwblacklist;           
00060         char *fwblacklist_sendto;    
00061         eurephiaVALUES *blacklisted; 
00062 } eurephiaFWINTF;
00063 
00064 #endif      /* !EUREPHIAFW_STRUCT_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines