diff options
author | Jan Ziak <0xe2.0x9a.0x9b@xfce.org> | 2021-08-01 02:26:53 +0200 |
---|---|---|
committer | Jan Ziak <0xe2.0x9a.0x9b@xfce.org> | 2021-08-01 02:26:53 +0200 |
commit | ed6b2e1c9c100a9b780edfdd5f36f634f30fec54 (patch) | |
tree | b8576fcd4649266072b1beb51423572ad64ffbb4 | |
parent | 603e7ae0d91590f489d5a015e39d00a357b38e77 (diff) | |
download | libxfce4util-ed6b2e1c9c100a9b780edfdd5f36f634f30fec54.tar.gz |
Add missing G_BEGIN_DECLS and G_END_DECLS
The missing directives prevent libxfce4util to be used from C++ code.
-rw-r--r-- | libxfce4util/xfce-gio-extensions.h | 4 | ||||
-rw-r--r-- | libxfce4util/xfce-i18n.h | 4 | ||||
-rw-r--r-- | libxfce4util/xfce-rc-private.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/libxfce4util/xfce-gio-extensions.h b/libxfce4util/xfce-gio-extensions.h index aa58e06..e6e2bff 100644 --- a/libxfce4util/xfce-gio-extensions.h +++ b/libxfce4util/xfce-gio-extensions.h @@ -27,6 +27,8 @@ #include <glib.h> #include <gio/gio.h> +G_BEGIN_DECLS + gboolean xfce_g_file_metadata_is_supported (GFile *file); gchar *xfce_g_file_create_checksum (GFile *file, GCancellable *cancellable, @@ -39,4 +41,6 @@ gboolean xfce_g_file_is_trusted (GFile *file, GCancellable *cancellable, GError **error); +G_END_DECLS + #endif /*__XFCE_GIO_EXTENSIONS_H__*/ diff --git a/libxfce4util/xfce-i18n.h b/libxfce4util/xfce-i18n.h index 782a657..681c004 100644 --- a/libxfce4util/xfce-i18n.h +++ b/libxfce4util/xfce-i18n.h @@ -35,6 +35,8 @@ #include <glib/gi18n.h> #endif +G_BEGIN_DECLS + #if !defined(GETTEXT_PACKAGE) #ifdef gettext @@ -91,4 +93,6 @@ gchar* xfce_get_path_localized (gchar *dst, guint xfce_locale_match (const gchar *locale1, const gchar *locale2); +G_END_DECLS + #endif /* !__XFCE_I18N_H__ */ diff --git a/libxfce4util/xfce-rc-private.h b/libxfce4util/xfce-rc-private.h index e482729..3f2f616 100644 --- a/libxfce4util/xfce-rc-private.h +++ b/libxfce4util/xfce-rc-private.h @@ -24,6 +24,8 @@ #include <libxfce4util/libxfce4util.h> +G_BEGIN_DECLS + typedef struct _XfceRcConfig XfceRcConfig; typedef struct _XfceRcSimple XfceRcSimple; @@ -133,5 +135,6 @@ G_GNUC_INTERNAL void _xfce_rc_config_write_entry (XfceRc *rc, const gchar *key, const gchar *value); +G_END_DECLS #endif /* !__LIBXFCE4UTIL_XFCE_RC_PRIVATE_H__ */ |