bearer: allow comparing current bearer with a set of properties

This commit is contained in:
Aleksander Morgado
2012-01-21 18:08:03 +01:00
parent cf46336494
commit 1603fd1109
2 changed files with 16 additions and 0 deletions

View File

@@ -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 void
mm_bearer_expose_properties (MMBearer *bearer, mm_bearer_expose_properties (MMBearer *bearer,
MMCommonBearerProperties *properties) MMCommonBearerProperties *properties)

View File

@@ -75,6 +75,10 @@ struct _MMBearerClass {
gboolean (* disconnect_finish) (MMBearer *bearer, gboolean (* disconnect_finish) (MMBearer *bearer,
GAsyncResult *res, GAsyncResult *res,
GError **error); GError **error);
/* Check if the bearer has the exact same properties */
gboolean (* cmp_properties) (MMBearer *self,
MMCommonBearerProperties *properties);
}; };
GType mm_bearer_get_type (void); GType mm_bearer_get_type (void);
@@ -103,4 +107,7 @@ gboolean mm_bearer_disconnect_finish (MMBearer *self,
void mm_bearer_disconnect_force (MMBearer *self); void mm_bearer_disconnect_force (MMBearer *self);
gboolean mm_bearer_cmp_properties (MMBearer *self,
MMCommonBearerProperties *properties);
#endif /* MM_BEARER_H */ #endif /* MM_BEARER_H */