Add an event number for port adding/removal. As currently the ports are
static, this event is not emitted for now.

Signed-off-by: Jiri Benc <jb...@redhat.com>
---
 clock.c        |    4 +++-
 notification.h |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/clock.c b/clock.c
index 2e7794cc07cd..20fea847ef68 100644
--- a/clock.c
+++ b/clock.c
@@ -1067,7 +1067,9 @@ void clock_notify_event(struct clock *c, enum 
notification event)
        int id;
 
        switch (event) {
-       /* set id */
+       case NOTIFY_PORT_ENUM:
+               id = PORT_ENUMERATION_NP;
+               break;
        default:
                return;
        }
diff --git a/notification.h b/notification.h
index 47c9b56c4f7e..9e202c7d5fe0 100644
--- a/notification.h
+++ b/notification.h
@@ -22,6 +22,7 @@
 
 enum notification {
        NOTIFY_PORT_STATE,
+       NOTIFY_PORT_ENUM,
 };
 
 #endif
-- 
1.7.6.5


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to