[svn-commits] russell: branch russell/jack r98607 - /team/russell/jack/apps/app_jack.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jan 13 12:48:05 CST 2008


Author: russell
Date: Sun Jan 13 12:48:05 2008
New Revision: 98607

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98607
Log:
Put the documentation for common options in a define

Modified:
    team/russell/jack/apps/app_jack.c

Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=98607&r1=98606&r2=98607
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Sun Jan 13 12:48:05 2008
@@ -56,6 +56,14 @@
 #define RESAMPLE_QUALITY 0
 
 #define RINGBUFFER_SIZE 16384
+
+/*! \brief Common options between the Jack() app and JACK_HOOK() function */
+#define COMMON_OPTIONS \
+"    s(<name>) - Connect to the specified jack server name.\n" \
+"    i(<name>) - Connect the output port that gets created to the specified\n" \
+"                jack input port.\n" \
+"    o(<name>) - Connect the input port that gets created to the specified\n" \
+"                jack output port.\n"
 
 static char *jack_app = "Jack";
 static char *jack_synopsis = 
@@ -66,11 +74,7 @@
 "and one output.  Other applications can be hooked up to these ports to access\n"
 "the audio coming from, or being sent to the channel.\n"
 "  Valid options:\n"
-"    s(<name>) - Connect to the specified jack server name.\n"
-"    i(<name>) - Connect the output port that gets created to the specified\n"
-"                jack input port.\n"
-"    o(<name>) - Connect the input port that gets created to the specified\n"
-"                jack output port.\n"
+COMMON_OPTIONS
 "";
 
 struct jack_data {
@@ -918,11 +922,7 @@
 	"                 coming in on the input port as it gets passed on.\n"
 	"\n"
 	"   Valid options are:\n"
-	"    s(<name>) - Connect to the specified jack server name.\n"
-	"    i(<name>) - Connect the output port that gets created to the specified\n"
-	"                jack input port.\n"
-	"    o(<name>) - Connect the input port that gets created to the specified\n"
-	"                jack output port.\n"
+	COMMON_OPTIONS
 	"\n"
 	" Examples:\n"
 	"   To turn on the JACK_HOOK,\n"




More information about the svn-commits mailing list