*
* Declarations of UI utility routines; these routines have GUI-independent
* APIs, but GUI-dependent implementations, so that they can be called by
* GUI-independent code to affect the GUI.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __UI_UTIL_H__
#define __UI_UTIL_H__
#include <stdint.h>
#include <wsutil/processes.h>
#include "epan/packet_info.h"
#include "epan/column-utils.h"
#include "epan/color_filters.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct window_geometry_s {
char *key;
bool set_pos;
int x;
int y;
bool set_size;
int width;
int height;
bool set_maximized;
bool maximized;
char* qt_geom;
} window_geometry_t;
extern void main_window_update(void);
WS_NORETURN extern void exit_application(int status);
to be GUI independent, but has lots of GTK leanings. But if you put these in a GTK UI
header file, file_dlg_win32.c complains about all of the GTK structures also in the header
files
Function names make it clear where they are coming from
*/
void color_filter_add_cb(color_filter_t *colorf, void *user_data);
#ifdef __cplusplus
}
#endif
#endif