X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=include%2Fdriver.h;h=61ec465f40fb35de6ab197f8a7a6a0322c37f217;hb=1f51bad6c5ad8510a9012299f87a7d3f31054c80;hp=8076a0e03ddbfc10183ad0dd485e88c89d102650;hpb=bfff79aeb857855ef025efa294028e34f91d91f0;p=connman diff --git a/include/driver.h b/include/driver.h index 8076a0e..61ec465 100644 --- a/include/driver.h +++ b/include/driver.h @@ -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 +/** + * 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);