From: Marcel Holtmann Date: Wed, 11 Mar 2009 19:06:48 +0000 (+0100) Subject: Add support for notifier registration for Intel OSPM module X-Git-Tag: 2.0_alpha~3997 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=306c84e60b5779356addbbeff7084c0c7478a056;p=framework%2Fconnectivity%2Fconnman.git Add support for notifier registration for Intel OSPM module --- diff --git a/plugins/iospm.c b/plugins/iospm.c index ead675e..b9d657d 100644 --- a/plugins/iospm.c +++ b/plugins/iospm.c @@ -25,15 +25,22 @@ #define CONNMAN_API_SUBJECT_TO_CHANGE #include +#include #include +static struct connman_notifier iospm_notifier = { + .name = "iospm", + .priority = CONNMAN_NOTIFIER_PRIORITY_DEFAULT, +}; + static int iospm_init(void) { - return 0; + return connman_notifier_register(&iospm_notifier); } static void iospm_exit(void) { + connman_notifier_unregister(&iospm_notifier); } CONNMAN_PLUGIN_DEFINE(ospm, "Intel OSPM notification plugin", VERSION,