init.h

Go to the documentation of this file.
00001 
00007 /*
00008  COPYRIGHT (C) 2005 RIVERDRUMS
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #ifndef __VELDFIRE_INIT_H__
00027 #define __VELDFIRE_INIT_H__
00028 
00029 #include <stdio.h>
00030 #include <string.h>
00031 #include <stdlib.h>
00032 #include <unistd.h>
00033 #include <sys/types.h>
00034 #include <sys/stat.h>
00035 
00042 typedef struct _veldfire {
00043   char *prog;         
00045   struct rdconf *c;   
00046   char *configfile;   
00047   char *section;      
00049   int sent;           
00050   int fail;           
00052   char *logfile;      
00053   int   loglevel;     
00054   int   printlog;     
00055   struct rdlog *log;  
00057   char *host;         
00058   int   port;         
00060   int maxconnection;  
00061   int sendtimeout;    
00062   int recvtimeout;    
00064   char *from;         
00065   char *to;           
00066   char *subject;      
00067   char *msg;          
00068   short freemsg;      
00069   char **files;       
00070   char **headers;     
00072   char *report;       
00074   int bulk;           
00075   int nomessage;      
00076   int debug;          
00077   int foreground;     
00079 } veldfire;
00080 
00081 
00082 veldfire *VF__init(int ac, char *av[]);
00083 char *    VF__get_msg(veldfire *v);
00084 void      VF__version(veldfire *v);
00085 void      VF__help(veldfire *v);
00086 int       VF__check_config(veldfire *v);
00087 void      VF__cleanup(veldfire *v);
00088 
00089 #endif

 

 


Jason Armstrong <ja@riverdrums.com>