[svn-commits] mjordan: trunk r369939 - /trunk/main/features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 11 12:14:49 CDT 2012


Author: mjordan
Date: Wed Jul 11 12:14:45 2012
New Revision: 369939

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369939
Log:
Don't perform an XInclude to a document node that may not always be present

Because some of the manager events are defined in the top of the source, due
to the macro calls not containing all necessary information to have the
documentation colocated with the call itself, several include statements were
failing when built with 'make'.  While this did not cause any problems in
compilation or validation, it did result in a number of warnings being dumped
to stderr.

This patch changes those references such that they always resolve, regardless
of the documentation build options.

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=369939&r1=369938&r2=369939
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Wed Jul 11 12:14:45 2012
@@ -475,9 +475,13 @@
 		<managerEventInstance class="EVENT_FLAG_CALL">
 			<synopsis>Raised when a parked call times out.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCall']/managerEventInstance/syntax/parameter[@name='Exten'])" />
+				<parameter name="Exten">
+					<para>The parking lot extension.</para>
+				</parameter>
 				<parameter name="Channel"/>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCall']/managerEventInstance/syntax/parameter[@name='Parkinglot'])" />
+				<parameter name="Parkinglot">
+					<para>The name of the parking lot.</para>
+				</parameter>
 				<parameter name="CallerIDNum"/>
 				<parameter name="CallerIDName"/>
 				<parameter name="ConnectedLineNum"/>
@@ -493,9 +497,9 @@
 		<managerEventInstance class="EVENT_FLAG_CALL">
 			<synopsis>Raised when a parked call hangs up while in the parking lot.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCall']/managerEventInstance/syntax/parameter[@name='Exten'])" />
+				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCallTimeOut']/managerEventInstance/syntax/parameter[@name='Exten'])" />
 				<parameter name="Channel"/>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCall']/managerEventInstance/syntax/parameter[@name='Parkinglot'])" />
+				<xi:include xpointer="xpointer(/docs/managerEvent[@name='ParkedCallTimeOut']/managerEventInstance/syntax/parameter[@name='Parkinglot'])" />
 				<parameter name="CallerIDNum"/>
 				<parameter name="CallerIDName"/>
 				<parameter name="ConnectedLineNum"/>




More information about the svn-commits mailing list