~ubuntu-branches/ubuntu/lucid/varnish/lucid

« back to all changes in this revision

Viewing changes to bin/varnishd/mgt.h

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*-
2
2
 * Copyright (c) 2006 Verdens Gang AS
3
 
 * Copyright (c) 2006-2008 Linpro AS
 
3
 * Copyright (c) 2006-2009 Linpro AS
4
4
 * All rights reserved.
5
5
 *
6
6
 * Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
26
26
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
 * SUCH DAMAGE.
28
28
 *
29
 
 * $Id: mgt.h 3732 2009-02-11 07:13:12Z tfheen $
 
29
 * $Id: mgt.h 4579 2010-02-21 20:15:44Z phk $
30
30
 */
31
31
 
 
32
#include <vqueue.h>
 
33
 
32
34
#include "common.h"
33
35
#include "miniobj.h"
34
36
 
37
39
struct cli;
38
40
 
39
41
extern struct vev_base  *mgt_evb;
 
42
extern unsigned         d_flag;
 
43
extern int              exit_status;
40
44
 
41
45
/* mgt_child.c */
42
 
void mgt_run(int dflag, const char *T_arg);
43
 
extern pid_t mgt_pid, child_pid;
 
46
extern pid_t child_pid;
 
47
void MGT_Run(void);
44
48
void mgt_stop_child(void);
45
49
 
46
50
/* mgt_cli.c */
47
51
 
48
 
void mgt_cli_setup(int fdi, int fdo, int verbose, const char *ident);
 
52
typedef void mgt_cli_close_f(void *priv);
 
53
void mgt_cli_setup(int fdi, int fdo, int verbose, const char *ident, mgt_cli_close_f *close_func, void *priv);
49
54
int mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...);
50
55
void mgt_cli_start_child(int fdi, int fdo);
51
56
void mgt_cli_stop_child(void);
52
 
void mgt_cli_telnet(int dflag, const char *T_arg);
 
57
void mgt_cli_telnet(const char *T_arg);
 
58
void mgt_cli_master(const char *M_arg);
 
59
void mgt_cli_secret(const char *S_arg);
 
60
void mgt_cli_close_all(void);
53
61
 
54
62
/* mgt_param.c */
55
63
void MCF_ParamSync(void);
56
64
void MCF_ParamInit(struct cli *);
57
65
void MCF_ParamSet(struct cli *, const char *param, const char *val);
 
66
#ifdef DIAGNOSTICS
 
67
void MCF_DumpMdoc(void);
 
68
#endif
58
69
 
59
70
/* mgt_vcc.c */
60
71
void mgt_vcc_init(void);
61
 
int mgt_vcc_default(const char *bflag, char *vcl, int Cflag);
 
72
int mgt_vcc_default(const char *bflag, const char *f_arg, char *vcl, int Cflag);
62
73
int mgt_push_vcls_and_start(unsigned *status, char **p);
63
74
int mgt_has_vcl(void);
64
75
extern char *mgt_cc_cmd;
75
86
                fprintf(stderr, fmt "\n", __VA_ARGS__); \
76
87
                syslog(pri, fmt, __VA_ARGS__);          \
77
88
        } while (0)
78