Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
feature_list.h
Go to the documentation of this file.
1
12#ifndef __WSUTIL_FEATURE_LIST_H__
13#define __WSUTIL_FEATURE_LIST_H__
14
15#include <glib.h>
16#include "ws_symbol_export.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22
33typedef GList **feature_list;
34
35/*
36 * The format of entries in a feature_list is a char* starting with a
37 * '+' or '-' character indicating if the feature is respectively
38 * present or absent, followed by the unchanged feature description.
39 * This allows the insert order of features to be preserved,
40 * while still preserving the present/absent status in a simple way.
41 */
42
43
48
56WS_DLL_PUBLIC
57void with_feature(feature_list l, const char *fmt, ...) G_GNUC_PRINTF(2,3);
58
66WS_DLL_PUBLIC
67void without_feature(feature_list l, const char *fmt, ...) G_GNUC_PRINTF(2,3);
68
79WS_DLL_PUBLIC
81
96WS_DLL_PUBLIC
97void separate_features(feature_list l, feature_list with_list, feature_list without_list);
98
107WS_DLL_PUBLIC
109
110#ifdef __cplusplus
111}
112#endif /* __cplusplus */
113
114#endif /* __WSUTIL_FEATURE_LIST_H__ */
GList ** feature_list
Semi-opaque handle to a list of features or dependencies.
Definition feature_list.h:33
WS_DLL_PUBLIC void separate_features(feature_list l, feature_list with_list, feature_list without_list)
Split a feature list into present and absent feature subsets.
Definition feature_list.c:73
WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void sort_features(feature_list l)
Sort a feature list alphabetically by feature name.
Definition feature_list.c:67
WS_DLL_PUBLIC void with_feature(feature_list l, const char *fmt,...) G_GNUC_PRINTF(2
Mark a feature as present in the provided list.
WS_DLL_PUBLIC void WS_DLL_PUBLIC void without_feature(feature_list l, const char *fmt,...) G_GNUC_PRINTF(2
Mark a feature as absent in the given list.
WS_DLL_PUBLIC void free_features(feature_list l)
Free all memory associated with a feature list.
Definition feature_list.c:89
void(* gather_feature_func)(feature_list l)
Pointer to a function which gathers a list of features.
Definition feature_list.h:47