mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Deprecated GSlice config API
This was marked as 'internal debugging' in the headers, and should have never been made public. As a first step to repair this, deprecate it. https://bugzilla.gnome.org/show_bug.cgi?id=680831
This commit is contained in:
parent
0b8662635d
commit
a74749d354
@ -77,8 +77,12 @@ typedef enum {
|
|||||||
G_SLICE_CONFIG_CHUNK_SIZES,
|
G_SLICE_CONFIG_CHUNK_SIZES,
|
||||||
G_SLICE_CONFIG_CONTENTION_COUNTER
|
G_SLICE_CONFIG_CONTENTION_COUNTER
|
||||||
} GSliceConfig;
|
} GSliceConfig;
|
||||||
|
|
||||||
|
GLIB_DEPRECATED_IN_2_34
|
||||||
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
||||||
|
GLIB_DEPRECATED_IN_2_34
|
||||||
gint64 g_slice_get_config (GSliceConfig ckey);
|
gint64 g_slice_get_config (GSliceConfig ckey);
|
||||||
|
GLIB_DEPRECATED_IN_2_34
|
||||||
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
/* We test deprecated functionality here */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_slice_config (void)
|
test_slice_config (void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user