BIND 10 trac2932, updated. ccb473862e3046f9cf0dcc923757a4ada7ba093f [2932] Interface to subscribe and unsubscribe notifications

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Sep 5 12:05:37 UTC 2013


The branch, trac2932 has been updated
       via  ccb473862e3046f9cf0dcc923757a4ada7ba093f (commit)
      from  9b97fd86866e26db1da44237352f5c9312d79291 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ccb473862e3046f9cf0dcc923757a4ada7ba093f
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Thu Sep 5 14:04:55 2013 +0200

    [2932] Interface to subscribe and unsubscribe notifications
    
    Not documented as of yet, and no implementation.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/config/ccsession.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/config/ccsession.h b/src/lib/config/ccsession.h
index c536861..49b49ea 100644
--- a/src/lib/config/ccsession.h
+++ b/src/lib/config/ccsession.h
@@ -575,6 +575,19 @@ public:
     /// \param id The id of request as returned by groupRecvMsgAsync.
     void cancelAsyncRecv(const AsyncRecvRequestID& id);
 
+    typedef boost::function<void (const std::string& event_name,
+                                  const data::ConstElementPtr& params)>
+        NotificationCallback;
+    typedef std::list<NotificationCallback> NotificationCallbacks;
+    typedef std::map<std::string, NotificationCallbacks>
+        SubscribedNotifications;
+    typedef std::pair<SubscribedNotifications::iterator,
+                      NotificationCallbacks::iterator>
+        NotificationID;
+    NotificationID subscribeNotification(const std::string& notification_group,
+                                         const NotificationCallback& callback);
+    void unsubscribeNotification(const NotificationID& notification);
+
     /// \brief Subscribe to a group
     ///
     /// Wrapper around the CCSession::subscribe.



More information about the bind10-changes mailing list