aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer.c9
-rw-r--r--src/mm-bearer.h7
2 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-bearer.c b/src/mm-bearer.c
index ac777f92..d64d4732 100644
--- a/src/mm-bearer.c
+++ b/src/mm-bearer.c
@@ -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)
diff --git a/src/mm-bearer.h b/src/mm-bearer.h
index 962bbff3..474a5552 100644
--- a/src/mm-bearer.h
+++ b/src/mm-bearer.h
@@ -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 */