summaryrefslogtreecommitdiff
path: root/plugins/fake.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-10-12 20:38:38 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-10-12 20:38:38 +0200
commita2b65153ec2059d23ceb88d206518da687883ebb (patch)
treec9e71900ff8c4c0e211cb61345383a99eb6e3caf /plugins/fake.c
parent352b0a1ac4ab26a5a0474915339973bf9dddad70 (diff)
downloadconnman-a2b65153ec2059d23ceb88d206518da687883ebb.tar.gz
connman-a2b65153ec2059d23ceb88d206518da687883ebb.tar.bz2
connman-a2b65153ec2059d23ceb88d206518da687883ebb.zip
Make use of fake subtype
Diffstat (limited to 'plugins/fake.c')
-rw-r--r--plugins/fake.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/fake.c b/plugins/fake.c
index 7bd48dfa..74b32bcb 100644
--- a/plugins/fake.c
+++ b/plugins/fake.c
@@ -34,6 +34,7 @@ static void create_network(struct connman_element *parent, const char *name)
element = connman_element_create(name);
element->type = CONNMAN_ELEMENT_TYPE_NETWORK;
+ element->subtype = CONNMAN_ELEMENT_SUBTYPE_FAKE;
connman_element_register(element, parent);
connman_element_unref(element);
@@ -82,7 +83,7 @@ static int fake_device_disable(struct connman_element *element)
static struct connman_driver fake_device_driver = {
.name = "fake-device",
.type = CONNMAN_ELEMENT_TYPE_DEVICE,
- .priority = CONNMAN_DRIVER_PRIORITY_HIGH,
+ .subtype = CONNMAN_ELEMENT_SUBTYPE_FAKE,
.probe = fake_device_probe,
.remove = fake_device_remove,
.update = fake_device_update,
@@ -96,6 +97,7 @@ static void create_device(const char *name)
element = connman_element_create(name);
element->type = CONNMAN_ELEMENT_TYPE_DEVICE;
+ element->subtype = CONNMAN_ELEMENT_SUBTYPE_FAKE;
//connman_element_define_properties(element,
// CONNMAN_PROPERTY_ID_IPV4_METHOD,