]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/btimers.h
Backport from BEE
[bacula/bacula] / bacula / src / lib / btimers.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2003-2014 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from many
7    others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    Bacula® is a registered trademark of Kern Sibbald.
15 */
16 /*
17  * Process and thread timer routines, built on top of watchdogs.
18  *
19  *    Nic Bellamy <nic@bellamy.co.nz>, October 2003.
20  *
21 */
22
23 #ifndef __BTIMERS_H_
24 #define __BTIMERS_H_
25
26 struct btimer_t {
27    watchdog_t *wd;                    /* Parent watchdog */
28    int type;
29    bool killed;
30    pid_t pid;                         /* process id if TYPE_CHILD */
31    pthread_t tid;                     /* thread id if TYPE_PTHREAD */
32    BSOCK *bsock;                      /* Pointer to BSOCK */
33    JCR *jcr;                          /* Pointer to job control record */
34 };
35
36 #endif /* __BTIMERS_H_ */