session-item: remove get_config_spec, in favor of using WpSiFactory

This commit is contained in:
George Kiagiadakis 2020-03-18 18:29:04 +02:00
parent 0c455a0c11
commit 37d3c56d42
2 changed files with 0 additions and 34 deletions

View file

@ -180,35 +180,6 @@ wp_session_item_clear_flag (WpSessionItem * self, WpSiFlags flag)
}
}
/**
* wp_session_item_get_config_spec: (virtual get_config_spec)
* @self: the session item
*
* Constructs and returns a description of all the configuration options
* that this item has. Configuration options are a way for items to accept
* input from external sources that affects their behavior, or to provide
* output for other items to consume as their configuration.
*
* The returned GVariant has the a(ssymv) type. This is an array of tuples,
* where each tuple has the following values, in order:
* * s (string): the name of the option
* * s (string): a GVariant type string, describing the type of the data
* * y (byte): a combination of #WpSiConfigOptionFlags
* * mv (optional variant): optionally, an additional variant
* This is provided to allow extensions.
*
* Returns: (transfer floating): the configuration description
*/
GVariant *
wp_session_item_get_config_spec (WpSessionItem * self)
{
g_return_val_if_fail (WP_IS_SESSION_ITEM (self), NULL);
g_return_val_if_fail (WP_SESSION_ITEM_GET_CLASS (self)->get_config_spec,
NULL);
return WP_SESSION_ITEM_GET_CLASS (self)->get_config_spec (self);
}
/**
* wp_session_item_configure: (virtual configure)
* @self: the session item

View file

@ -63,7 +63,6 @@ typedef enum {
/**
* WpSessionItemClass:
* @get_config_spec: See wp_session_item_get_config_spec()
* @configure: See wp_session_item_configure()
* @get_configuration: See wp_session_item_get_configuration()
* @get_next_step: Implements #WpTransitionClass.get_next_step() for the
@ -76,7 +75,6 @@ struct _WpSessionItemClass
{
GObjectClass parent_class;
GVariant * (*get_config_spec) (WpSessionItem * self);
gboolean (*configure) (WpSessionItem * self, GVariant * args);
GVariant * (*get_configuration) (WpSessionItem * self);
@ -104,9 +102,6 @@ void wp_session_item_clear_flag (WpSessionItem * self, WpSiFlags flag);
/* configuration */
WP_API
GVariant * wp_session_item_get_config_spec (WpSessionItem * self);
WP_API
gboolean wp_session_item_configure (WpSessionItem * self, GVariant * args);