bearer: allow comparing current bearer with a set of properties
This commit is contained in:
@@ -538,6 +538,15 @@ mm_bearer_disconnect_force (MMBearer *self)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
gboolean
|
||||
mm_bearer_cmp_properties (MMBearer *self,
|
||||
MMCommonBearerProperties *properties)
|
||||
{
|
||||
return MM_BEARER_GET_CLASS (self)->cmp_properties (self, properties);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
mm_bearer_expose_properties (MMBearer *bearer,
|
||||
MMCommonBearerProperties *properties)
|
||||
|
@@ -75,6 +75,10 @@ struct _MMBearerClass {
|
||||
gboolean (* disconnect_finish) (MMBearer *bearer,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
/* Check if the bearer has the exact same properties */
|
||||
gboolean (* cmp_properties) (MMBearer *self,
|
||||
MMCommonBearerProperties *properties);
|
||||
};
|
||||
|
||||
GType mm_bearer_get_type (void);
|
||||
@@ -103,4 +107,7 @@ gboolean mm_bearer_disconnect_finish (MMBearer *self,
|
||||
|
||||
void mm_bearer_disconnect_force (MMBearer *self);
|
||||
|
||||
gboolean mm_bearer_cmp_properties (MMBearer *self,
|
||||
MMCommonBearerProperties *properties);
|
||||
|
||||
#endif /* MM_BEARER_H */
|
||||
|
Reference in New Issue
Block a user