Add function for setting network group name
[connman] / include / driver.h
index 8076a0e..61ec465 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -28,6 +28,12 @@ extern "C" {
 
 #include <connman/element.h>
 
+/**
+ * SECTION:driver
+ * @title: Driver premitives
+ * @short_description: Functions for registering drivers
+ */
+
 #define CONNMAN_DRIVER_PRIORITY_LOW      -100
 #define CONNMAN_DRIVER_PRIORITY_DEFAULT     0
 #define CONNMAN_DRIVER_PRIORITY_HIGH      100
@@ -35,13 +41,11 @@ extern "C" {
 struct connman_driver {
        const char *name;
        enum connman_element_type type;
-       enum connman_element_type subtype;
        int priority;
        int (*probe) (struct connman_element *element);
        void (*remove) (struct connman_element *element);
-       int (*update) (struct connman_element *element);
-       int (*enable) (struct connman_element *element);
-       int (*disable) (struct connman_element *element);
+       void (*update) (struct connman_element *element);
+       void (*change) (struct connman_element *element);
 };
 
 extern int connman_driver_register(struct connman_driver *driver);