So, I'm in the middle of understanding how the icecast.xml file is parsed, and how the settings for a specific mount point are read.<div><br></div><div>In cfgfile.c - _parse_mount() I've added the following lines:</div>
<div><br></div><div><div>} else if (xmlStrcmp (node->name, XMLSTR("playlist-notify-uri")) == 0) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>mount->playlist_notify_uri = (char *)xmlNodeListGetString (doc, node->xmlChildrenNode, 1);</div>
<div> }</div><div><br></div><div>My goal is to include the URI in my logging.c file, and get the value of the field:</div><div><br></div><div><mount></div><div> <playlist-notify-uri><a href="http://test.com/icecast/notify">http://test.com/icecast/notify</a></playlist-notify-uri></div>
<div></mount></div><div><br></div><div>Basically, I'm having Icecast POST to a certain URI whenever it detects a change in metadata. (Which I've already implemented, but now, I need to add a setting in the config file for storing this URI.) What is the best practice for doing this? I'm looking to access it in logging.c, logging_playlist() - where I have a string that represents the mount point. I guess the question is... How should I go about selecting the value for this field on the specific mountpoint?</div>
<div><br></div><div>Ideas, suggestions, tips, general advice, or tricks welcome.</div><div><br></div><div>Nicholas</div><div><br></div>Nicholas Young | <a href="mailto:nicholas@nicholaswyoung.com">nicholas@nicholaswyoung.com</a><br>
</div>