diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-21 18:08:03 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:55 +0100 |
commit | 1603fd1109d6056320472e072c5ec3698a95c81c (patch) | |
tree | b7943b056763df0827fd899f24db78c38b728593 /src | |
parent | cf4633649443e8292529f34f055562dbf7df089e (diff) |
bearer: allow comparing current bearer with a set of properties
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-bearer.c | 9 | ||||
-rw-r--r-- | src/mm-bearer.h | 7 |
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 */ |