示例#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 Subscriptions& update_subscriptions,
                                    const std::vector<std::string>& remove_subscriptions,
                                    const AssociatedURIs& associated_uris)
{
  po.set_update_subscriptions(SubscriberDataUtils::copy_subscriptions(update_subscriptions));
  po.set_remove_subscriptions(remove_subscriptions);
  po.set_associated_uris(associated_uris);
  po.set_increment_cseq(true);
}