'service/notification', 'NSConsumerInterface.h')
# Go to build Unit test
-#if target_os == 'linux':
-# SConscript('unittest/SConscript')
+if target_os == 'linux':
+ SConscript('unittest/SConscript')
# Go to build sample apps
SConscript('examples/SConscript')
std::cout << __func__ << std::endl;
}
- static void NSSubscriptionAcceptedCallback(NSProvider *)
+ static void NSProviderChangedCallback(NSProvider *, NSResponse)
{
std::cout << __func__ << std::endl;
}
{
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
EXPECT_EQ(NS_OK, NSStartConsumer(cfg));
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);