Commit 6f8f1f70 authored by Colin Walters's avatar Colin Walters Committed by Allison Karlitskaya

Remove most use of G_GNUC_INTERNAL

Now that we use an explicit list of symbols to export, the
G_GNUC_INTERNAL is redundant.

https://bugzilla.gnome.org/show_bug.cgi?id=688681
parent dbf44729
......@@ -11,10 +11,8 @@ typedef struct
GVariant *state;
} RemoteActionInfo;
G_GNUC_INTERNAL
void g_application_impl_destroy (GApplicationImpl *impl);
G_GNUC_INTERNAL
GApplicationImpl * g_application_impl_register (GApplication *application,
const gchar *appid,
GApplicationFlags flags,
......@@ -23,27 +21,21 @@ GApplicationImpl * g_application_impl_register (GApplic
GCancellable *cancellable,
GError **error);
G_GNUC_INTERNAL
void g_application_impl_activate (GApplicationImpl *impl,
GVariant *platform_data);
G_GNUC_INTERNAL
void g_application_impl_open (GApplicationImpl *impl,
GFile **files,
gint n_files,
const gchar *hint,
GVariant *platform_data);
G_GNUC_INTERNAL
int g_application_impl_command_line (GApplicationImpl *impl,
gchar **arguments,
GVariant *platform_data);
G_GNUC_INTERNAL
void g_application_impl_flush (GApplicationImpl *impl);
G_GNUC_INTERNAL
GDBusConnection * g_application_impl_get_dbus_connection (GApplicationImpl *impl);
G_GNUC_INTERNAL
const gchar * g_application_impl_get_dbus_object_path (GApplicationImpl *impl);
......@@ -505,7 +505,7 @@ g_dbus_action_group_get (GDBusConnection *connection,
return group;
}
G_GNUC_INTERNAL gboolean
gboolean
g_dbus_action_group_sync (GDBusActionGroup *group,
GCancellable *cancellable,
GError **error)
......
......@@ -56,17 +56,12 @@ struct _GDelayedSettingsBackend
GDelayedSettingsBackendPrivate *priv;
};
G_GNUC_INTERNAL
GType g_delayed_settings_backend_get_type (void);
G_GNUC_INTERNAL
GDelayedSettingsBackend * g_delayed_settings_backend_new (GSettingsBackend *backend,
gpointer owner,
GMainContext *owner_context);
G_GNUC_INTERNAL
void g_delayed_settings_backend_revert (GDelayedSettingsBackend *delayed);
G_GNUC_INTERNAL
void g_delayed_settings_backend_apply (GDelayedSettingsBackend *delayed);
G_GNUC_INTERNAL
gboolean g_delayed_settings_backend_get_has_unapplied (GDelayedSettingsBackend *delayed);
#endif /* __G_DELAYED_SETTINGS_BACKEND_H__ */
......@@ -24,7 +24,6 @@
#include <glib-object.h>
G_GNUC_INTERNAL
GType g_registry_backend_get_type (void);
......
......@@ -24,15 +24,12 @@
#include <glib-object.h>
G_GNUC_INTERNAL
GVariant * g_settings_set_mapping (const GValue *value,
const GVariantType *expected_type,
gpointer user_data);
G_GNUC_INTERNAL
gboolean g_settings_get_mapping (GValue *value,
GVariant *variant,
gpointer user_data);
G_GNUC_INTERNAL
gboolean g_settings_mapping_is_compatible (GType gvalue_type,
const GVariantType *variant_type);
......
......@@ -49,59 +49,44 @@ typedef struct
const gchar *path);
} GSettingsListenerVTable;
G_GNUC_INTERNAL
void g_settings_backend_watch (GSettingsBackend *backend,
const GSettingsListenerVTable *vtable,
GObject *target,
GMainContext *context);
G_GNUC_INTERNAL
void g_settings_backend_unwatch (GSettingsBackend *backend,
GObject *target);
G_GNUC_INTERNAL
GTree * g_settings_backend_create_tree (void);
G_GNUC_INTERNAL
GVariant * g_settings_backend_read (GSettingsBackend *backend,
const gchar *key,
const GVariantType *expected_type,
gboolean default_value);
G_GNUC_INTERNAL
gboolean g_settings_backend_write (GSettingsBackend *backend,
const gchar *key,
GVariant *value,
gpointer origin_tag);
G_GNUC_INTERNAL
gboolean g_settings_backend_write_tree (GSettingsBackend *backend,
GTree *tree,
gpointer origin_tag);
G_GNUC_INTERNAL
void g_settings_backend_reset (GSettingsBackend *backend,
const gchar *key,
gpointer origin_tag);
G_GNUC_INTERNAL
gboolean g_settings_backend_get_writable (GSettingsBackend *backend,
const char *key);
G_GNUC_INTERNAL
void g_settings_backend_unsubscribe (GSettingsBackend *backend,
const char *name);
G_GNUC_INTERNAL
void g_settings_backend_subscribe (GSettingsBackend *backend,
const char *name);
G_GNUC_INTERNAL
GPermission * g_settings_backend_get_permission (GSettingsBackend *backend,
const gchar *path);
G_GNUC_INTERNAL
void g_settings_backend_sync_default (void);
G_GNUC_INTERNAL
GType g_null_settings_backend_get_type (void);
G_GNUC_INTERNAL
GType g_memory_settings_backend_get_type (void);
#ifdef HAVE_COCOA
G_GNUC_INTERNAL
GType g_nextstep_settings_backend_get_type (void);
#endif
......
......@@ -41,49 +41,34 @@ typedef struct
GVariant *default_value;
} GSettingsSchemaKey;
G_GNUC_INTERNAL
const gchar * g_settings_schema_get_gettext_domain (GSettingsSchema *schema);
G_GNUC_INTERNAL
GVariantIter * g_settings_schema_get_value (GSettingsSchema *schema,
const gchar *key);
G_GNUC_INTERNAL
gboolean g_settings_schema_has_key (GSettingsSchema *schema,
const gchar *key);
G_GNUC_INTERNAL
const GQuark * g_settings_schema_list (GSettingsSchema *schema,
gint *n_items);
G_GNUC_INTERNAL
const gchar * g_settings_schema_get_string (GSettingsSchema *schema,
const gchar *key);
G_GNUC_INTERNAL
void g_settings_schema_key_init (GSettingsSchemaKey *key,
GSettingsSchema *schema,
const gchar *name);
G_GNUC_INTERNAL
void g_settings_schema_key_clear (GSettingsSchemaKey *key);
G_GNUC_INTERNAL
gboolean g_settings_schema_key_type_check (GSettingsSchemaKey *key,
GVariant *value);
G_GNUC_INTERNAL
gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key,
GVariant *value);
G_GNUC_INTERNAL
GVariant * g_settings_schema_key_range_fixup (GSettingsSchemaKey *key,
GVariant *value);
G_GNUC_INTERNAL
GVariant * g_settings_schema_key_get_translated_default (GSettingsSchemaKey *key);
G_GNUC_INTERNAL
gint g_settings_schema_key_to_enum (GSettingsSchemaKey *key,
GVariant *value);
G_GNUC_INTERNAL
GVariant * g_settings_schema_key_from_enum (GSettingsSchemaKey *key,
gint value);
G_GNUC_INTERNAL
guint g_settings_schema_key_to_flags (GSettingsSchemaKey *key,
GVariant *value);
G_GNUC_INTERNAL
GVariant * g_settings_schema_key_from_flags (GSettingsSchemaKey *key,
guint value);
......
......@@ -87,7 +87,7 @@ get_alias_hash (void)
/* As an abuse of the alias table, the following routines gets
* the charsets that are aliases for the canonical name.
*/
G_GNUC_INTERNAL const char **
const char **
_g_charset_get_aliases (const char *canonical_name)
{
GHashTable *alias_hash = get_alias_hash ();
......
......@@ -25,8 +25,7 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL const char ** _g_charset_get_aliases (const char *canonical_name);
;
const char ** _g_charset_get_aliases (const char *canonical_name);
G_END_DECLS
......
......@@ -229,7 +229,7 @@ try_to_aliases (const char **to_aliases,
return FALSE;
}
G_GNUC_INTERNAL extern const char **
extern const char **
_g_charset_get_aliases (const char *canonical_name);
/**
......
......@@ -24,17 +24,17 @@
#include "gmessages.h"
G_GNUC_INTERNAL extern GLogLevelFlags g_log_always_fatal;
G_GNUC_INTERNAL extern GLogLevelFlags g_log_msg_prefix;
extern GLogLevelFlags g_log_always_fatal;
extern GLogLevelFlags g_log_msg_prefix;
GLIB_VAR gboolean g_mem_gc_friendly;
#ifdef G_OS_WIN32
#include <windows.h>
G_GNUC_INTERNAL void g_thread_win32_thread_detach (void);
G_GNUC_INTERNAL void g_thread_win32_init (void);
G_GNUC_INTERNAL void g_clock_win32_init (void);
G_GNUC_INTERNAL extern HMODULE glib_dll;
void g_thread_win32_thread_detach (void);
void g_thread_win32_init (void);
void g_clock_win32_init (void);
extern HMODULE glib_dll;
#endif
#endif /* __GLIB_INIT_H__ */
......@@ -23,11 +23,8 @@
#include <glib.h>
#include "gwakeup.h"
G_GNUC_INTERNAL
GMainContext * g_get_worker_context (void);
G_GNUC_INTERNAL
gboolean g_check_setuid (void);
G_GNUC_INTERNAL
GMainContext * g_main_context_new_with_next_id (guint next_id);
#ifdef G_OS_WIN32
......
......@@ -2485,7 +2485,7 @@ g_get_real_time (void)
static ULONGLONG (*g_GetTickCount64) (void) = NULL;
static guint32 g_win32_tick_epoch = 0;
G_GNUC_INTERNAL void
void
g_clock_win32_init (void)
{
HMODULE kernel32;
......
......@@ -116,7 +116,7 @@ GLIB_AVAILABLE_IN_ALL
GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
/* internal */
G_GNUC_INTERNAL void _g_log_fallback_handler (const gchar *log_domain,
void _g_log_fallback_handler (const gchar *log_domain,
GLogLevelFlags log_level,
const gchar *message,
gpointer unused_data);
......
......@@ -983,7 +983,7 @@ g_thread_lookup_native_funcs (void)
return TRUE;
}
G_GNUC_INTERNAL void
void
g_thread_win32_init (void)
{
if (!g_thread_lookup_native_funcs ())
......@@ -992,7 +992,7 @@ g_thread_win32_init (void)
InitializeCriticalSection (&g_private_lock);
}
G_GNUC_INTERNAL void
void
g_thread_win32_thread_detach (void)
{
gboolean dtors_called;
......
......@@ -37,24 +37,18 @@ struct _GRealThread
};
/* system thread implementation (gthread-posix.c, gthread-win32.c) */
G_GNUC_INTERNAL
void g_system_thread_wait (GRealThread *thread);
G_GNUC_INTERNAL
GRealThread * g_system_thread_new (GThreadFunc func,
gulong stack_size,
GError **error);
G_GNUC_INTERNAL
void g_system_thread_free (GRealThread *thread);
G_GNUC_INTERNAL
void g_system_thread_exit (void);
G_GNUC_INTERNAL
void g_system_thread_set_name (const gchar *name);
/* gthread.c */
G_GNUC_INTERNAL
GThread * g_thread_new_internal (const gchar *name,
GThreadFunc proxy,
GThreadFunc func,
......@@ -62,7 +56,6 @@ GThread * g_thread_new_internal (const gchar *name,
gsize stack_size,
GError **error);
G_GNUC_INTERNAL
gpointer g_thread_proxy (gpointer thread);
#endif /* __G_THREADPRIVATE_H__ */
......@@ -25,9 +25,8 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL gunichar *_g_utf8_normalize_wc
(const gchar *str,
gssize max_len,
gunichar *_g_utf8_normalize_wc (const gchar *str,
gssize max_len,
GNormalizeMode mode);
G_END_DECLS
......
......@@ -27,16 +27,13 @@
/* gvariant-core.c */
G_GNUC_INTERNAL
GVariant * g_variant_new_from_children (const GVariantType *type,
GVariant **children,
gsize n_children,
gboolean trusted);
G_GNUC_INTERNAL
gboolean g_variant_is_trusted (GVariant *value);
G_GNUC_INTERNAL
GVariantTypeInfo * g_variant_get_type_info (GVariant *value);
#endif /* __G_VARIANT_CORE_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment