/** * @file mctrl.c Media Control * * Copyright (C) 2010 Creytiv.com */ #include #include #include "core.h" /* * RFC 5168 XML Schema for Media Control * note: deprecated, use RTCP FIR instead * * * Example XML Document: * *

   
     
       
         
           
	   
	 
       
     

  
*/ int mctrl_handle_media_control(struct pl *body, bool *pfu) { if (!body) return EINVAL; /* XXX: Poor-mans XML parsing (use xml-parser instead) */ if (0 == re_regex(body->p, body->l, "picture_fast_update")) { if (pfu) *pfu = true; } return 0; }