aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-08-15 19:54:01 +0200
committerEvan Huus <eapache@gmail.com>2014-08-17 02:29:31 +0000
commite7853d37f034d5c3983c961157e7fdc6d52ed0ed (patch)
tree843fd516eb408d1aaf8a1903330695b34c613d40 /epan/prefs.h
parent721008c708c1b234aedc92b72d5f5a8e6effc1ef (diff)
prefs.h : fix indent (use 4 spaces) and add modelines info
Change-Id: I319b76973ade38261f40e6120c436de923b5d5bf Reviewed-on: https://code.wireshark.org/review/3658 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/prefs.h')
-rw-r--r--epan/prefs.h62
1 files changed, 34 insertions, 28 deletions
diff --git a/epan/prefs.h b/epan/prefs.h
index 12093ecd43..4619b117b6 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -46,10 +46,10 @@ extern "C" {
#define RTP_PLAYER_DEFAULT_VISIBLE 4
#define TAP_UPDATE_DEFAULT_INTERVAL 3000
-#define ST_DEF_BURSTRES 5
+#define ST_DEF_BURSTRES 5
#define ST_DEF_BURSTLEN 100
-#define ST_MAX_BURSTRES 600000 /* somewhat arbirary limit of 10 minutes */
-#define ST_MAX_BURSTBUCKETS 100 /* somewhat arbirary limit - more buckets degrade performance */
+#define ST_MAX_BURSTRES 600000 /* somewhat arbirary limit of 10 minutes */
+#define ST_MAX_BURSTBUCKETS 100 /* somewhat arbirary limit - more buckets degrade performance */
struct epan_uat;
struct _e_addr_resolve;
@@ -67,15 +67,15 @@ char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_res
/*
* Modes for the starting directory in File Open dialogs.
*/
-#define FO_STYLE_LAST_OPENED 0 /* start in last directory we looked at */
-#define FO_STYLE_SPECIFIED 1 /* start in specified directory */
+#define FO_STYLE_LAST_OPENED 0 /* start in last directory we looked at */
+#define FO_STYLE_SPECIFIED 1 /* start in specified directory */
/*
* Toolbar styles.
*/
-#define TB_STYLE_ICONS 0
-#define TB_STYLE_TEXT 1
-#define TB_STYLE_BOTH 2
+#define TB_STYLE_ICONS 0
+#define TB_STYLE_TEXT 1
+#define TB_STYLE_BOTH 2
/*
* Types of layout of summary/details/hex panes.
@@ -203,15 +203,15 @@ typedef struct _e_prefs {
guint rtp_player_max_visible;
guint tap_update_interval;
gboolean display_hidden_proto_items;
- gpointer filter_expressions; /* Actually points to &head */
+ gpointer filter_expressions;/* Actually points to &head */
gboolean gui_update_enabled;
software_update_channel_e gui_update_channel;
gint gui_update_interval;
gchar *saved_at_version;
- gboolean unknown_prefs; /* unknown or obsolete pref(s) */
- gboolean unknown_colorfilters; /* unknown or obsolete color filter(s) */
- guint gui_qt_language; /* Qt Translation language selection */
- gboolean gui_packet_editor; /* Enable Packet Editor */
+ gboolean unknown_prefs; /* unknown or obsolete pref(s) */
+ gboolean unknown_colorfilters; /* unknown or obsolete color filter(s) */
+ guint gui_qt_language; /* Qt Translation language selection */
+ gboolean gui_packet_editor; /* Enable Packet Editor */
gboolean st_enable_burstinfo;
gboolean st_burst_showcount;
gint st_burst_resolution;
@@ -289,8 +289,7 @@ WS_DLL_PUBLIC module_t *prefs_register_protocol(int id, void (*apply_cb)(void));
* "description" is a longer human-readable description of the tap.
*/
WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
- const char *description,
- void (*apply_cb)(void));
+ const char *description, void (*apply_cb)(void));
/*
* Register that a protocol has preferences and group it under a single
@@ -298,7 +297,7 @@ WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
*/
#define PREFERENCE_GROUPING
WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(const char *subtree, int id,
- void (*apply_cb)(void));
+ void (*apply_cb)(void));
/*
* Register that a protocol used to have preferences but no longer does,
@@ -452,20 +451,14 @@ WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const
* preferences tab of the module.
*/
WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module,
- const char *name,
- const char* title,
- const char *description,
- struct epan_uat* uat);
+ const char *name, const char* title, const char *description, struct epan_uat* uat);
/*
* Register a uat 'preference' for QT only. It adds a button that opens the uat's window in the
* preferences tab of the module.
*/
WS_DLL_PUBLIC void prefs_register_uat_preference_qt(module_t *module,
- const char *name,
- const char* title,
- const char *description,
- struct epan_uat* uat);
+ const char *name, const char* title, const char *description, struct epan_uat* uat);
/*
@@ -580,10 +573,10 @@ WS_DLL_PUBLIC int write_prefs(char **);
* the syntax error.
*/
typedef enum {
- PREFS_SET_OK, /* succeeded */
- PREFS_SET_SYNTAX_ERR, /* syntax error in string */
- PREFS_SET_NO_SUCH_PREF, /* no such preference */
- PREFS_SET_OBSOLETE /* preference used to exist but no longer does */
+ PREFS_SET_OK, /* succeeded */
+ PREFS_SET_SYNTAX_ERR, /* syntax error in string */
+ PREFS_SET_NO_SUCH_PREF, /* no such preference */
+ PREFS_SET_OBSOLETE /* preference used to exist but no longer does */
} prefs_set_pref_e;
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg);
@@ -614,3 +607,16 @@ WS_DLL_PUBLIC gboolean prefs_capture_options_dialog_column_is_visible(const gcha
#endif /* __cplusplus */
#endif /* prefs.h */
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */