mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-04 21:18:03 +02:00
lib: remove deprecated APIs
This commit is contained in:
parent
c0905c233f
commit
102792527a
4 changed files with 0 additions and 92 deletions
|
|
@ -894,40 +894,6 @@ wp_properties_new_iterator (WpProperties * self)
|
|||
return g_steal_pointer (&it);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the key from a properties iterator item
|
||||
*
|
||||
* \ingroup wpproperties
|
||||
* \param item a GValue that was returned from the WpIterator of
|
||||
* wp_properties_new_iterator()
|
||||
* \returns (transfer none): the property key of the \a item
|
||||
* \deprecated Use wp_properties_item_get_key() instead
|
||||
*/
|
||||
const gchar *
|
||||
wp_properties_iterator_item_get_key (const GValue * item)
|
||||
{
|
||||
WpPropertiesItem *pi = g_value_get_boxed (item);
|
||||
g_return_val_if_fail (pi != NULL, NULL);
|
||||
return wp_properties_item_get_key (pi);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the value from a properties iterator item
|
||||
*
|
||||
* \ingroup wpproperties
|
||||
* \param item a GValue that was returned from the WpIterator of
|
||||
* wp_properties_new_iterator()
|
||||
* \returns (transfer none): the property value of the \a item
|
||||
* \deprecated Use wp_properties_item_get_value() instead
|
||||
*/
|
||||
const gchar *
|
||||
wp_properties_iterator_item_get_value (const GValue * item)
|
||||
{
|
||||
WpPropertiesItem *pi = g_value_get_boxed (item);
|
||||
g_return_val_if_fail (pi != NULL, NULL);
|
||||
return wp_properties_item_get_value (pi);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the number of properties contained in this object
|
||||
* \ingroup wpproperties
|
||||
|
|
|
|||
|
|
@ -157,14 +157,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (WpPropertiesItem, wp_properties_item_unref)
|
|||
WP_API
|
||||
WpIterator * wp_properties_new_iterator (WpProperties * self);
|
||||
|
||||
WP_API
|
||||
G_DEPRECATED_FOR(wp_properties_item_get_key)
|
||||
const gchar * wp_properties_iterator_item_get_key (const GValue * item);
|
||||
|
||||
WP_API
|
||||
G_DEPRECATED_FOR(wp_properties_item_get_value)
|
||||
const gchar * wp_properties_iterator_item_get_value (const GValue * item);
|
||||
|
||||
/* count */
|
||||
|
||||
WP_API
|
||||
|
|
|
|||
42
lib/wp/wp.c
42
lib/wp/wp.c
|
|
@ -103,48 +103,6 @@ wp_get_module_dir (void)
|
|||
return module_dir;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the full path to the WirePlumber configuration directory
|
||||
* \returns The WirePlumber configuration directory
|
||||
* \deprecated Use wp_find_file() instead
|
||||
*/
|
||||
const gchar *
|
||||
wp_get_config_dir (void)
|
||||
{
|
||||
static gchar config_dir[PATH_MAX] = {0};
|
||||
if (config_dir[0] == '\0') {
|
||||
g_autofree gchar *abspath;
|
||||
const gchar *path = g_getenv ("WIREPLUMBER_CONFIG_DIR");
|
||||
|
||||
if (!path)
|
||||
path = WIREPLUMBER_DEFAULT_CONFIG_DIR;
|
||||
|
||||
abspath = g_canonicalize_filename (path, NULL);
|
||||
(void) g_strlcpy (config_dir, abspath, sizeof (config_dir));
|
||||
}
|
||||
return config_dir;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets full path to the WirePlumber data directory
|
||||
* \returns The WirePlumber data directory
|
||||
* \deprecated Use wp_find_file() instead
|
||||
*/
|
||||
const gchar *
|
||||
wp_get_data_dir (void)
|
||||
{
|
||||
static gchar data_dir[PATH_MAX] = {0};
|
||||
if (data_dir[0] == '\0') {
|
||||
g_autofree gchar *abspath;
|
||||
const char *path = g_getenv ("WIREPLUMBER_DATA_DIR");
|
||||
if (!path)
|
||||
path = WIREPLUMBER_DEFAULT_DATA_DIR;
|
||||
abspath = g_canonicalize_filename (path, NULL);
|
||||
(void) g_strlcpy (data_dir, abspath, sizeof (data_dir));
|
||||
}
|
||||
return data_dir;
|
||||
}
|
||||
|
||||
/*! \} */
|
||||
|
||||
static gchar *
|
||||
|
|
|
|||
|
|
@ -78,14 +78,6 @@ const char * wp_get_library_api_version (void);
|
|||
WP_API
|
||||
const gchar * wp_get_module_dir (void);
|
||||
|
||||
WP_API
|
||||
G_DEPRECATED_FOR (wp_find_file)
|
||||
const gchar * wp_get_config_dir (void);
|
||||
|
||||
WP_API
|
||||
G_DEPRECATED_FOR (wp_find_file)
|
||||
const gchar * wp_get_data_dir (void);
|
||||
|
||||
/*!
|
||||
* \brief Flags to specify lookup directories
|
||||
* \ingroup wp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue