]> granicus.if.org Git - fcron/blob - fcrondyn.h
don't include debug files in tar
[fcron] / fcrondyn.h
1 /*
2  * FCRON - periodic command scheduler 
3  *
4  *  Copyright 2000-2014 Thibault Godouet <fcron@free.fr>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  * 
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  * 
20  *  The GNU General Public License can also be found in the file
21  *  `LICENSE' that comes with the fcron source distribution.
22  */
23
24
25 #ifndef __FCRONDYN_H__
26 #define __FCRONDYN_H__
27
28 #include "global.h"
29 #include "dyncom.h"
30 #include "fcronconf.h"
31
32 /* global variables */
33 extern pid_t daemon_pid;
34 extern uid_t rootuid;
35 extern gid_t rootgid;
36
37 /* types def */
38 #define MAX_NUM_ALIAS 2
39 #define MAX_NUM_OPT 4
40 typedef struct cmd_list_ent {
41     char *cmd_name;
42     char *cmd_alias[MAX_NUM_ALIAS];
43     char *cmd_desc;
44     int cmd_numopt;
45     long int cmd_code;
46     int cmd_opt[MAX_NUM_OPT];
47     int cmd_default[MAX_NUM_OPT];
48 } cmd_list_ent;
49
50 #endif                          /* __FCRONDYN_H__ */