1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
/*\ 
||| This file a part of Pike, and is copyright by Fredrik Hubinette 
||| Pike is distributed as GPL (General Public License) 
||| See the files COPYING and DISCLAIMER for more information. 
\*/ 
 
/* 
 * $Id: main.h,v 1.7 1998/03/28 15:12:14 grubba Exp $ 
 */ 
#ifndef MAIN_H 
#define MAIN_H 
 
#include "callback.h" 
 
extern int d_flag, t_flag, a_flag, l_flag, c_flag, p_flag, debug_options; 
 
#define DEBUG_SIGNALS 1 
 
/* Prototypes begin here */ 
struct callback *add_post_master_callback(callback_func call, 
                                          void *arg, 
                                          callback_func free_func); 
struct callback *add_exit_callback(callback_func call, 
                                   void *arg, 
                                   callback_func free_func); 
int dbm_main(int argc, char **argv); 
void do_exit(int num) ATTRIBUTE((noreturn)); 
void low_init_main(void); 
void exit_main(void); 
void init_main(void); 
void low_exit_main(void); 
/* Prototypes end here */ 
 
#endif