cid#1606940 Check of thread-shared field evades lock acquisition
[LibreOffice.git] / vcl / inc / unx / gtk / hudawareness.h
blob6c9c015d6af758096a65c7fd679f484f6e59f64b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <gio/gio.h>
14 G_BEGIN_DECLS
16 typedef void (* HudAwarenessCallback) (gboolean hud_active,
17 gpointer user_data);
19 guint hud_awareness_register (GDBusConnection *connection,
20 const gchar *object_path,
21 HudAwarenessCallback callback,
22 gpointer user_data,
23 GDestroyNotify notify,
24 GError **error);
26 void hud_awareness_unregister (GDBusConnection *connection,
27 guint awareness_id);
29 G_END_DECLS