base-modem: no need for `port_grabbed()'
Subclasses can configure additional stuff in the ports just after all have been organized, in the SETUP_PORTS initialization step in MMBroadbandModem.
This commit is contained in:
@@ -234,10 +234,6 @@ mm_base_modem_grab_port (MMBaseModem *self,
|
|||||||
* Note: 'key' and 'port' now owned by the HT. */
|
* Note: 'key' and 'port' now owned by the HT. */
|
||||||
g_hash_table_insert (self->priv->ports, key, port);
|
g_hash_table_insert (self->priv->ports, key, port);
|
||||||
|
|
||||||
/* Let subclasses know we've grabbed it */
|
|
||||||
if (MM_BASE_MODEM_GET_CLASS (self)->port_grabbed)
|
|
||||||
MM_BASE_MODEM_GET_CLASS (self)->port_grabbed (self, port);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -56,12 +56,6 @@ struct _MMBaseModem {
|
|||||||
struct _MMBaseModemClass {
|
struct _MMBaseModemClass {
|
||||||
MmGdbusObjectSkeletonClass parent;
|
MmGdbusObjectSkeletonClass parent;
|
||||||
|
|
||||||
/* Called after the base class grabs a port so that subclasses can
|
|
||||||
* set port flags and other properties on the new port.
|
|
||||||
*/
|
|
||||||
void (*port_grabbed) (MMBaseModem *self,
|
|
||||||
MMPort *port);
|
|
||||||
|
|
||||||
/* Modem initialization.
|
/* Modem initialization.
|
||||||
* As soon as the ports are organized, this method gets called */
|
* As soon as the ports are organized, this method gets called */
|
||||||
void (* initialize) (MMBaseModem *self,
|
void (* initialize) (MMBaseModem *self,
|
||||||
|
Reference in New Issue
Block a user