1 /* 2 * Copyright (C) 2020 Purism SPC 3 * 4 * SPDX-License-Identifier: LGPL-2.1+ 5 */ 6 #pragma once 7 8 #include <glib.h> 9 10 G_BEGIN_DECLS 11 12 #define __LIBFEEDBACK_H_INSIDE__ 13 14 #ifndef LIBFEEDBACK_USE_UNSTABLE_API 15 #error LIBFEEDBACK is unstable API. You must define LIBFEEDBACK_USE_UNSTABLE_API before including libfeedback.h 16 #endif 17 18 #include "lfb-enums.h" 19 #include "lfb-event.h" 20 #include "lfb-gdbus.h" 21 22 gboolean lfb_init (const gchar *app_id, GError **error); 23 void lfb_uninit (void); 24 void lfb_set_app_id (const char *app_id); 25 const char *lfb_get_app_id (void); 26 gboolean lfb_is_initted (void); 27 void lfb_set_feedback_profile (const char *profile); 28 const char *lfb_get_feedback_profile (void); 29 LfbGdbusFeedback *lfb_get_proxy (void); 30 31 G_END_DECLS 32