From: Daniel Wagner <[email protected]>

---
 plugins/ofono.c |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/plugins/ofono.c b/plugins/ofono.c
index bf0e0fd..e229e8a 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -2360,6 +2360,41 @@ static struct connman_device_driver modem_driver = {
        .disable        = modem_disable,
 };
 
+static int tech_probe(struct connman_technology *technology)
+{
+       DBG("");
+
+       return 0;
+}
+
+static void tech_remove(struct connman_technology *technology)
+{
+       DBG("");
+}
+
+static int tech_enable(struct connman_technology *technology)
+{
+       DBG("");
+
+       return 0;
+}
+
+static int tech_disable(struct connman_technology *technology)
+{
+       DBG("");
+
+       return 0;
+}
+
+static struct connman_technology_driver tech_driver = {
+       .name           = "cellular",
+       .type           = CONNMAN_SERVICE_TYPE_CELLULAR,
+       .probe          = tech_probe,
+       .remove         = tech_remove,
+       .enable         = tech_enable,
+       .disable        = tech_disable,
+};
+
 static guint watch;
 static guint modem_added_watch;
 static guint modem_removed_watch;
@@ -2474,6 +2509,13 @@ static int ofono_init(void)
                goto remove;
        }
 
+       err = connman_technology_driver_register(&tech_driver);
+       if (err < 0) {
+               connman_device_driver_unregister(&modem_driver);
+               connman_network_driver_unregister(&network_driver);
+               goto remove;
+       }
+
        return 0;
 
 remove:
@@ -2517,6 +2559,8 @@ static void ofono_exit(void)
                context_hash = NULL;
        }
 
+       connman_technology_driver_unregister(&tech_driver);
+
        connman_device_driver_unregister(&modem_driver);
        connman_network_driver_unregister(&network_driver);
 
-- 
1.7.8.110.g4cb5d1

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to