blob: 2ffc6c817f82bc8121b1da9721fbf996f5d6e00f (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
/** @file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __PACKET_LIST_UTILS_H__
#define __PACKET_LIST_UTILS_H__
#include "cfile.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/**
* Check to see if a column should be right justified.
*
* @param [in] col The column number.
* @param [in] cf The capture file containing the packet data.
*
* @return true if the column should be right justified, false otherwise.
*/
bool right_justify_column (int col, capture_file *cf);
/**
* Check to see if a column's data should be resolved.
*
* @param [in] col The column number.
* @param [in] cf The capture file containing the packet data.
*
* @return true if resolution is required, false otherwise.
*/
bool resolve_column (int col, capture_file *cf);
/**
* @brief The following methods have to be implemented by any class that
* whishes to represent a packet list.
*/
/** Write all packet list geometry values to the recent file.
*
* @param rf recent file handle from caller
*/
extern void packet_list_recent_write_all(FILE *rf);
extern void packet_list_clear(void);
extern void packet_list_freeze(void);
extern void packet_list_recreate_visible_rows(void);
extern void packet_list_thaw(void);
extern unsigned packet_list_append(column_info *cinfo, frame_data *fdata);
extern void packet_list_queue_draw(void);
extern bool packet_list_select_row_from_data(frame_data *fdata_needle);
extern bool packet_list_select_finfo(field_info *fi);
extern bool packet_list_multi_select_active(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __PACKET_LIST_UTILS_H__ */
|