2000-08-11 13:37:21 +00:00
|
|
|
/* main.h
|
1998-09-16 02:39:15 +00:00
|
|
|
* Global defines, etc.
|
|
|
|
*
|
2001-12-31 04:41:50 +00:00
|
|
|
* $Id: main.h,v 1.25 2001/12/31 04:41:50 gerald Exp $
|
1998-09-16 03:22:19 +00:00
|
|
|
*
|
1998-09-16 02:39:15 +00:00
|
|
|
* Ethereal - Network traffic analyzer
|
2001-10-22 22:59:26 +00:00
|
|
|
* By Gerald Combs <gerald@ethereal.com>
|
1998-09-16 02:39:15 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
1999-10-08 07:29:42 +00:00
|
|
|
#ifndef __MAIN_H__
|
|
|
|
#define __MAIN_H__
|
1998-09-16 02:39:15 +00:00
|
|
|
|
1999-09-09 03:32:03 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
1998-09-16 02:39:15 +00:00
|
|
|
#include "config.h"
|
1999-09-09 03:32:03 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "globals.h"
|
1998-09-16 02:39:15 +00:00
|
|
|
|
2001-10-22 22:59:26 +00:00
|
|
|
/*
|
|
|
|
* File under personal preferences directory in which GTK settings for
|
|
|
|
* Ethereal are stored.
|
|
|
|
*/
|
|
|
|
#define RC_FILE "gtkrc"
|
|
|
|
|
1999-07-13 02:53:26 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
1998-09-16 02:39:15 +00:00
|
|
|
#define DEF_READY_MESSAGE " Ready to load or capture"
|
1999-07-13 02:53:26 +00:00
|
|
|
#else
|
|
|
|
#define DEF_READY_MESSAGE " Ready to load file"
|
|
|
|
#endif
|
1998-09-16 02:39:15 +00:00
|
|
|
|
|
|
|
typedef struct _selection_info {
|
|
|
|
GtkWidget *tree;
|
|
|
|
GtkWidget *text;
|
|
|
|
} selection_info;
|
|
|
|
|
1998-12-29 04:05:38 +00:00
|
|
|
extern GtkStyle *item_style;
|
|
|
|
|
1998-10-16 01:18:35 +00:00
|
|
|
void about_ethereal( GtkWidget *, gpointer);
|
1999-06-24 16:25:59 +00:00
|
|
|
void match_selected_cb( GtkWidget *, gpointer);
|
1998-09-16 02:39:15 +00:00
|
|
|
void file_quit_cmd_cb(GtkWidget *, gpointer);
|
|
|
|
void file_print_cmd_cb(GtkWidget *, gpointer);
|
1999-07-23 15:04:05 +00:00
|
|
|
void file_print_packet_cmd_cb(GtkWidget *, gpointer);
|
1999-12-09 20:43:38 +00:00
|
|
|
void tools_plugins_cmd_cb(GtkWidget *, gpointer);
|
1999-09-11 12:38:18 +00:00
|
|
|
void expand_all_cb(GtkWidget *, gpointer);
|
|
|
|
void collapse_all_cb(GtkWidget *, gpointer);
|
2000-02-20 14:52:28 +00:00
|
|
|
void resolve_name_cb(GtkWidget *, gpointer);
|
2000-08-21 19:36:19 +00:00
|
|
|
void mark_frame_cb(GtkWidget *, gpointer);
|
|
|
|
void mark_all_frames_cb(GtkWidget *w, gpointer);
|
|
|
|
void unmark_all_frames_cb(GtkWidget *w, gpointer);
|
2000-08-22 14:04:52 +00:00
|
|
|
void update_marked_frames(void);
|
1998-09-16 02:39:15 +00:00
|
|
|
|
2000-09-08 10:59:21 +00:00
|
|
|
char *boldify(const char *);
|
2001-03-02 23:10:12 +00:00
|
|
|
void set_fonts(GdkFont *regular, GdkFont *bold);
|
2001-04-09 22:35:23 +00:00
|
|
|
void set_last_open_dir(char *dirname);
|
2000-09-08 10:59:21 +00:00
|
|
|
|
1999-10-08 07:29:42 +00:00
|
|
|
#endif /* __MAIN_H__ */
|