示例#1
0
void SubscriberManager::build_patch(PatchObject& po,
                                    const std::vector<std::string>& remove_bindings,
                                    const std::vector<std::string>& remove_subscriptions)
{
  po.set_remove_bindings(remove_bindings);
  po.set_remove_subscriptions(remove_subscriptions);
  po.set_increment_cseq(true);
}
示例#2
0
void SubscriberManager::build_patch(PatchObject& po,
                                    const Bindings& update_bindings,
                                    const std::vector<std::string>& remove_bindings,
                                    const std::vector<std::string>& remove_subscriptions,
                                    const AssociatedURIs& associated_uris)
{
  po.set_update_bindings(SubscriberDataUtils::copy_bindings(update_bindings));
  po.set_remove_bindings(remove_bindings);
  po.set_remove_subscriptions(remove_subscriptions);
  po.set_associated_uris(associated_uris);
  po.set_increment_cseq(true);
}