mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-12-21 20:02:07 +00:00
Fix introspection support
Fix includes, comments and parameter names so that introspection builds without warnings.
This commit is contained in:
parent
698b3a5f60
commit
a1448acc5b
@ -369,6 +369,12 @@ gvc_channel_bar_set_adjustment (GvcChannelBar *bar,
|
||||
g_object_notify (G_OBJECT (bar), "adjustment");
|
||||
}
|
||||
|
||||
/**
|
||||
* gvc_channel_bar_get_adjustment:
|
||||
* @bar:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
*/
|
||||
GtkAdjustment *
|
||||
gvc_channel_bar_get_adjustment (GvcChannelBar *bar)
|
||||
{
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define __GVC_CHANNEL_BAR_H
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -122,7 +122,6 @@ gvc_channel_map_get_mapping (const GvcChannelMap *map)
|
||||
|
||||
/**
|
||||
* gvc_channel_map_has_position: (skip)
|
||||
*
|
||||
* @map:
|
||||
* @position:
|
||||
*
|
||||
|
@ -148,7 +148,6 @@ gvc_mixer_card_set_icon_name (GvcMixerCard *card,
|
||||
|
||||
/**
|
||||
* gvc_mixer_card_get_profile: (skip)
|
||||
*
|
||||
* @card:
|
||||
*
|
||||
* Returns:
|
||||
@ -325,10 +324,9 @@ gvc_mixer_card_set_profiles (GvcMixerCard *card,
|
||||
|
||||
/**
|
||||
* gvc_mixer_card_get_gicon:
|
||||
*
|
||||
* @card:
|
||||
*
|
||||
* Return value: (transfer full) (element-type GIcon):
|
||||
* Return value: (transfer full):
|
||||
*/
|
||||
GIcon *
|
||||
gvc_mixer_card_get_gicon (GvcMixerCard *card)
|
||||
@ -343,11 +341,11 @@ gvc_mixer_card_get_gicon (GvcMixerCard *card)
|
||||
|
||||
/**
|
||||
* gvc_mixer_card_set_ports:
|
||||
* @profiles: (transfer full) (element-type GvcMixerCardPort):
|
||||
* @ports: (transfer full) (element-type GvcMixerCardPort):
|
||||
*/
|
||||
gboolean
|
||||
gvc_mixer_card_set_ports (GvcMixerCard *card,
|
||||
GList *ports)
|
||||
GList *ports)
|
||||
{
|
||||
g_return_val_if_fail (GVC_IS_MIXER_CARD (card), FALSE);
|
||||
g_return_val_if_fail (card->priv->ports == NULL, FALSE);
|
||||
|
@ -134,7 +134,6 @@ gvc_mixer_control_get_pa_context (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_event_sink_input:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
@ -215,6 +214,7 @@ gvc_mixer_control_stream_restore_source_cb (pa_context *c,
|
||||
* gvc_mixer_control_lookup_device_from_stream:
|
||||
* @control:
|
||||
* @stream:
|
||||
*
|
||||
* Returns: (transfer none): a #GvcUIDevice or %NULL
|
||||
*/
|
||||
GvcMixerUIDevice *
|
||||
@ -364,7 +364,6 @@ gvc_mixer_control_set_default_source (GvcMixerControl *control,
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_default_sink:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
@ -388,7 +387,6 @@ gvc_mixer_control_get_default_sink (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_default_source:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
@ -420,7 +418,6 @@ gvc_mixer_control_lookup_id (GHashTable *hash_table,
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_lookup_stream_id:
|
||||
*
|
||||
* @control:
|
||||
* @id:
|
||||
*
|
||||
@ -437,7 +434,6 @@ gvc_mixer_control_lookup_stream_id (GvcMixerControl *control,
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_lookup_card_id:
|
||||
*
|
||||
* @control:
|
||||
* @id:
|
||||
*
|
||||
@ -456,6 +452,7 @@ gvc_mixer_control_lookup_card_id (GvcMixerControl *control,
|
||||
* gvc_mixer_control_lookup_output_id:
|
||||
* @control:
|
||||
* @id:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
*/
|
||||
GvcMixerUIDevice *
|
||||
@ -471,6 +468,7 @@ gvc_mixer_control_lookup_output_id (GvcMixerControl *control,
|
||||
* gvc_mixer_control_lookup_input_id:
|
||||
* @control:
|
||||
* @id:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
*/
|
||||
GvcMixerUIDevice *
|
||||
@ -486,6 +484,7 @@ gvc_mixer_control_lookup_input_id (GvcMixerControl *control,
|
||||
* gvc_mixer_control_get_stream_from_device:
|
||||
* @control:
|
||||
* @device:
|
||||
*
|
||||
* Returns: (transfer none):
|
||||
*/
|
||||
GvcMixerStream *
|
||||
@ -511,6 +510,7 @@ gvc_mixer_control_get_stream_from_device (GvcMixerControl *control,
|
||||
* @control:
|
||||
* @device:
|
||||
* @profile: Can be null if any profile present on this port is okay
|
||||
*
|
||||
* Returns: This method will attempt to swap the profile on the card of
|
||||
* the device with given profile name. If successfull it will set the
|
||||
* preferred profile on that device so as we know the next time the user
|
||||
@ -749,7 +749,6 @@ gvc_card_collate (GvcMixerCard *a,
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_cards:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerCard):
|
||||
@ -786,7 +785,6 @@ gvc_stream_collate (GvcMixerStream *a,
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_streams:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerStream):
|
||||
@ -807,7 +805,6 @@ gvc_mixer_control_get_streams (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_sinks:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerSink):
|
||||
@ -828,7 +825,6 @@ gvc_mixer_control_get_sinks (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_sources:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerSource):
|
||||
@ -849,7 +845,6 @@ gvc_mixer_control_get_sources (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_sink_inputs:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerSinkInput):
|
||||
@ -870,7 +865,6 @@ gvc_mixer_control_get_sink_inputs (GvcMixerControl *control)
|
||||
|
||||
/**
|
||||
* gvc_mixer_control_get_source_outputs:
|
||||
*
|
||||
* @control:
|
||||
*
|
||||
* Returns: (transfer container) (element-type Gvc.MixerSourceOutput):
|
||||
@ -1863,7 +1857,7 @@ card_num_streams_to_status (guint sinks,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* A utility method to gather which card profiles are relevant to the port .
|
||||
*/
|
||||
static GList *
|
||||
|
@ -124,7 +124,7 @@ void gvc_mixer_control_change_output (Gvc
|
||||
void gvc_mixer_control_change_input (GvcMixerControl *control,
|
||||
GvcMixerUIDevice* input);
|
||||
GvcMixerStream* gvc_mixer_control_get_stream_from_device (GvcMixerControl *control,
|
||||
GvcMixerUIDevice *dev);
|
||||
GvcMixerUIDevice *device);
|
||||
gboolean gvc_mixer_control_change_profile_on_selected_device (GvcMixerControl *control,
|
||||
GvcMixerUIDevice *device,
|
||||
const gchar* profile);
|
||||
|
@ -210,9 +210,8 @@ gvc_mixer_event_role_finalize (GObject *object)
|
||||
|
||||
/**
|
||||
* gvc_mixer_event_role_new: (skip)
|
||||
*
|
||||
* @context:
|
||||
* @index:
|
||||
* @device:
|
||||
* @channel_map:
|
||||
*
|
||||
* Returns:
|
||||
|
@ -142,7 +142,6 @@ gvc_mixer_sink_input_finalize (GObject *object)
|
||||
|
||||
/**
|
||||
* gvc_mixer_sink_input_new: (skip)
|
||||
*
|
||||
* @context:
|
||||
* @index:
|
||||
* @channel_map:
|
||||
|
@ -50,7 +50,7 @@ GType gvc_mixer_sink_input_get_type (void);
|
||||
|
||||
GvcMixerStream * gvc_mixer_sink_input_new (pa_context *context,
|
||||
guint index,
|
||||
GvcChannelMap *map);
|
||||
GvcChannelMap *channel_map);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -171,7 +171,6 @@ gvc_mixer_sink_finalize (GObject *object)
|
||||
|
||||
/**
|
||||
* gvc_mixer_sink_new: (skip)
|
||||
*
|
||||
* @context:
|
||||
* @index:
|
||||
* @channel_map:
|
||||
|
@ -50,7 +50,7 @@ GType gvc_mixer_sink_get_type (void);
|
||||
|
||||
GvcMixerStream * gvc_mixer_sink_new (pa_context *context,
|
||||
guint index,
|
||||
GvcChannelMap *map);
|
||||
GvcChannelMap *channel_map);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -97,7 +97,6 @@ gvc_mixer_source_output_finalize (GObject *object)
|
||||
|
||||
/**
|
||||
* gvc_mixer_source_output_new: (skip)
|
||||
*
|
||||
* @context:
|
||||
* @index:
|
||||
* @channel_map:
|
||||
|
@ -50,7 +50,7 @@ GType gvc_mixer_source_output_get_type (void);
|
||||
|
||||
GvcMixerStream * gvc_mixer_source_output_new (pa_context *context,
|
||||
guint index,
|
||||
GvcChannelMap *map);
|
||||
GvcChannelMap *channel_map);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -171,7 +171,6 @@ gvc_mixer_source_finalize (GObject *object)
|
||||
|
||||
/**
|
||||
* gvc_mixer_source_new: (skip)
|
||||
*
|
||||
* @context:
|
||||
* @index:
|
||||
* @channel_map:
|
||||
|
@ -50,7 +50,7 @@ GType gvc_mixer_source_get_type (void);
|
||||
|
||||
GvcMixerStream * gvc_mixer_source_new (pa_context *context,
|
||||
guint index,
|
||||
GvcChannelMap *map);
|
||||
GvcChannelMap *channel_map);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -132,7 +132,6 @@ gvc_mixer_stream_get_channel_map (GvcMixerStream *stream)
|
||||
|
||||
/**
|
||||
* gvc_mixer_stream_get_volume:
|
||||
*
|
||||
* @stream:
|
||||
*
|
||||
* Returns: (type guint32) (transfer none):
|
||||
@ -156,7 +155,6 @@ gvc_mixer_stream_get_decibel (GvcMixerStream *stream)
|
||||
|
||||
/**
|
||||
* gvc_mixer_stream_set_volume:
|
||||
*
|
||||
* @stream:
|
||||
* @volume: (type guint32):
|
||||
*
|
||||
@ -442,7 +440,6 @@ gvc_mixer_stream_set_sysfs_path (GvcMixerStream *stream,
|
||||
|
||||
/**
|
||||
* gvc_mixer_stream_get_base_volume:
|
||||
*
|
||||
* @stream:
|
||||
*
|
||||
* Returns: (type guint32) (transfer none):
|
||||
@ -457,7 +454,6 @@ gvc_mixer_stream_get_base_volume (GvcMixerStream *stream)
|
||||
|
||||
/**
|
||||
* gvc_mixer_stream_set_base_volume:
|
||||
*
|
||||
* @stream:
|
||||
* @base_volume: (type guint32):
|
||||
*
|
||||
|
@ -378,8 +378,7 @@ add_canonical_names_of_profiles (GvcMixerUIDevice *device,
|
||||
|
||||
/**
|
||||
* gvc_mixer_ui_device_set_profiles:
|
||||
*
|
||||
* @in_profiles: a list of GvcMixerCardProfile
|
||||
* @in_profiles: (element-type Gvc.MixerCardProfile): a list of GvcMixerCardProfile
|
||||
*
|
||||
* Assigns value to
|
||||
* - device->priv->profiles (profiles to be added to combobox)
|
||||
@ -430,7 +429,6 @@ gvc_mixer_ui_device_set_profiles (GvcMixerUIDevice *device,
|
||||
|
||||
/**
|
||||
* gvc_mixer_ui_device_get_best_profile:
|
||||
*
|
||||
* @selected: The selected profile or its canonical name or %NULL for any profile
|
||||
* @current: The currently selected profile
|
||||
*
|
||||
@ -543,6 +541,12 @@ gvc_mixer_ui_device_should_profiles_be_hidden (GvcMixerUIDevice *device)
|
||||
return device->priv->disable_profile_swapping;
|
||||
}
|
||||
|
||||
/**
|
||||
* gvc_mixer_ui_device_get_profiles:
|
||||
* @device:
|
||||
*
|
||||
* Returns: (transfer none) (element-type Gvc.MixerCardProfile):
|
||||
*/
|
||||
GList*
|
||||
gvc_mixer_ui_device_get_profiles (GvcMixerUIDevice *device)
|
||||
{
|
||||
@ -551,6 +555,12 @@ gvc_mixer_ui_device_get_profiles (GvcMixerUIDevice *device)
|
||||
return device->priv->profiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* gvc_mixer_ui_device_get_supported_profiles:
|
||||
* @device:
|
||||
*
|
||||
* Returns: (transfer none) (element-type Gvc.MixerCardProfile):
|
||||
*/
|
||||
GList*
|
||||
gvc_mixer_ui_device_get_supported_profiles (GvcMixerUIDevice *device)
|
||||
{
|
||||
|
@ -53,29 +53,29 @@ typedef enum
|
||||
|
||||
GType gvc_mixer_ui_device_get_type (void) G_GNUC_CONST;
|
||||
|
||||
guint gvc_mixer_ui_device_get_id (GvcMixerUIDevice *dev);
|
||||
gint gvc_mixer_ui_device_get_stream_id (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_description (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_origin (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_port (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_best_profile (GvcMixerUIDevice *dev,
|
||||
guint gvc_mixer_ui_device_get_id (GvcMixerUIDevice *device);
|
||||
gint gvc_mixer_ui_device_get_stream_id (GvcMixerUIDevice *device);
|
||||
const gchar * gvc_mixer_ui_device_get_description (GvcMixerUIDevice *device);
|
||||
const gchar * gvc_mixer_ui_device_get_origin (GvcMixerUIDevice *device);
|
||||
const gchar * gvc_mixer_ui_device_get_port (GvcMixerUIDevice *device);
|
||||
const gchar * gvc_mixer_ui_device_get_best_profile (GvcMixerUIDevice *device,
|
||||
const gchar *selected,
|
||||
const gchar *current);
|
||||
const gchar * gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device);
|
||||
const gchar * gvc_mixer_ui_device_get_matching_profile (GvcMixerUIDevice *dev,
|
||||
const gchar * gvc_mixer_ui_device_get_matching_profile (GvcMixerUIDevice *device,
|
||||
const gchar *profile);
|
||||
const gchar * gvc_mixer_ui_device_get_user_preferred_profile (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_top_priority_profile (GvcMixerUIDevice *dev);
|
||||
GList * gvc_mixer_ui_device_get_profiles (GvcMixerUIDevice *dev);
|
||||
const gchar * gvc_mixer_ui_device_get_user_preferred_profile (GvcMixerUIDevice *device);
|
||||
const gchar * gvc_mixer_ui_device_get_top_priority_profile (GvcMixerUIDevice *device);
|
||||
GList * gvc_mixer_ui_device_get_profiles (GvcMixerUIDevice *device);
|
||||
GList * gvc_mixer_ui_device_get_supported_profiles (GvcMixerUIDevice *device);
|
||||
gboolean gvc_mixer_ui_device_should_profiles_be_hidden (GvcMixerUIDevice *device);
|
||||
void gvc_mixer_ui_device_set_profiles (GvcMixerUIDevice *device,
|
||||
const GList *profiles);
|
||||
const GList *in_profiles);
|
||||
void gvc_mixer_ui_device_set_user_preferred_profile (GvcMixerUIDevice *device,
|
||||
const gchar *profile);
|
||||
void gvc_mixer_ui_device_invalidate_stream (GvcMixerUIDevice *dev);
|
||||
gboolean gvc_mixer_ui_device_has_ports (GvcMixerUIDevice *dev);
|
||||
gboolean gvc_mixer_ui_device_is_output (GvcMixerUIDevice *dev);
|
||||
void gvc_mixer_ui_device_invalidate_stream (GvcMixerUIDevice *device);
|
||||
gboolean gvc_mixer_ui_device_has_ports (GvcMixerUIDevice *device);
|
||||
gboolean gvc_mixer_ui_device_is_output (GvcMixerUIDevice *device);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user