aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
blob: ea502a41114265a75e1455c30a2c002c24e54140 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef __GLOBALS_H__
#define __GLOBALS_H__

#ifndef _STDIO_H_
#include <stdio.h>
#endif

#ifndef __PACKET_H__
#include "packet.h"
#endif

#ifndef __GTK_H__
#include <gtk/gtk.h>
#endif

#ifndef __FILE_H__
#include "file.h"
#endif

#ifndef __TIMESTAMP_H__
#include "timestamp.h"
#endif

extern FILE        *data_out_file;
extern packet_info  pi;
extern capture_file cf;
extern GtkWidget   *file_sel, *packet_list, *tree_view, *byte_view, *prog_bar,
            *info_bar;
extern GdkFont     *m_r_font, *m_b_font;
extern guint        main_ctx, file_ctx;
extern gint         start_capture;
extern gchar        comp_info_str[256];
extern gchar       *ethereal_path;
extern gchar       *medium_font;
extern gchar       *bold_font;
extern gchar       *last_open_dir;

extern ts_type timestamp_type;

extern GtkStyle *item_style;

#ifdef HAVE_LIBPCAP
extern int sync_mode;	/* allow sync */
extern int sync_pipe[2]; /* used to sync father */
extern int fork_mode;	/* fork a child to do the capture */
extern int sigusr2_received;
extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */
#endif

#define PF_DIR ".ethereal"

#endif