[svn-commits] dlee: branch dlee/allow-multiple r395413 - in /team/dlee/allow-multiple: res/...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 25 11:04:22 CDT 2013


Author: dlee
Date: Thu Jul 25 11:04:21 2013
New Revision: 395413

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395413
Log:
Better comment

Modified:
    team/dlee/allow-multiple/res/res_stasis_http_asterisk.c
    team/dlee/allow-multiple/res/res_stasis_http_bridges.c
    team/dlee/allow-multiple/res/res_stasis_http_channels.c
    team/dlee/allow-multiple/res/res_stasis_http_endpoints.c
    team/dlee/allow-multiple/res/res_stasis_http_events.c
    team/dlee/allow-multiple/res/res_stasis_http_playback.c
    team/dlee/allow-multiple/res/res_stasis_http_recordings.c
    team/dlee/allow-multiple/res/res_stasis_http_sounds.c
    team/dlee/allow-multiple/rest-api-templates/param_parsing.mustache

Modified: team/dlee/allow-multiple/res/res_stasis_http_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_asterisk.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_asterisk.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_asterisk.c Thu Jul 25 11:04:21 2013
@@ -104,7 +104,7 @@
 			for (j = 0; j < args.only_count; ++j) {
 				args.only[j] = (vals[j]);
 			}
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_asterisk_info(headers, &args, response);
@@ -161,7 +161,7 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "variable") == 0) {
 			args.variable = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_global_var(headers, &args, response);
@@ -216,10 +216,10 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "variable") == 0) {
 			args.variable = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "value") == 0) {
 			args.value = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_set_global_var(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_bridges.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_bridges.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_bridges.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_bridges.c Thu Jul 25 11:04:21 2013
@@ -120,7 +120,7 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "type") == 0) {
 			args.type = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_new_bridge(headers, &args, response);
@@ -175,7 +175,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_bridge(headers, &args, response);
@@ -231,7 +231,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_delete_bridge(headers, &args, response);
@@ -318,13 +318,13 @@
 			for (j = 0; j < args.channel_count; ++j) {
 				args.channel[j] = (vals[j]);
 			}
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_add_channel_to_bridge(headers, &args, response);
@@ -415,13 +415,13 @@
 			for (j = 0; j < args.channel_count; ++j) {
 				args.channel[j] = (vals[j]);
 			}
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_remove_channel_from_bridge(headers, &args, response);
@@ -478,22 +478,22 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "media") == 0) {
 			args.media = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "lang") == 0) {
 			args.lang = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "offsetms") == 0) {
 			args.offsetms = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "skipms") == 0) {
 			args.skipms = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_play_on_bridge(headers, &args, response);
@@ -550,31 +550,31 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "name") == 0) {
 			args.name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "format") == 0) {
 			args.format = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "maxDurationSeconds") == 0) {
 			args.max_duration_seconds = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "maxSilenceSeconds") == 0) {
 			args.max_silence_seconds = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "ifExists") == 0) {
 			args.if_exists = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "beep") == 0) {
 			args.beep = ast_true(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "terminateOn") == 0) {
 			args.terminate_on = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "bridgeId") == 0) {
 			args.bridge_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_record_bridge(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_channels.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_channels.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_channels.c Thu Jul 25 11:04:21 2013
@@ -120,28 +120,28 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "endpoint") == 0) {
 			args.endpoint = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "extension") == 0) {
 			args.extension = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "context") == 0) {
 			args.context = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "priority") == 0) {
 			args.priority = atol(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "app") == 0) {
 			args.app = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "appArgs") == 0) {
 			args.app_args = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "callerId") == 0) {
 			args.caller_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "timeout") == 0) {
 			args.timeout = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_originate(headers, &args, response);
@@ -197,7 +197,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_channel(headers, &args, response);
@@ -253,7 +253,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_delete_channel(headers, &args, response);
@@ -309,22 +309,22 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "endpoint") == 0) {
 			args.endpoint = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "extension") == 0) {
 			args.extension = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "context") == 0) {
 			args.context = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "timeout") == 0) {
 			args.timeout = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_dial(headers, &args, response);
@@ -381,19 +381,19 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "context") == 0) {
 			args.context = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "extension") == 0) {
 			args.extension = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "priority") == 0) {
 			args.priority = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_continue_in_dialplan(headers, &args, response);
@@ -450,7 +450,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_answer_channel(headers, &args, response);
@@ -507,13 +507,13 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "direction") == 0) {
 			args.direction = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_mute_channel(headers, &args, response);
@@ -570,13 +570,13 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "direction") == 0) {
 			args.direction = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_unmute_channel(headers, &args, response);
@@ -633,7 +633,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_hold_channel(headers, &args, response);
@@ -690,7 +690,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_unhold_channel(headers, &args, response);
@@ -747,13 +747,13 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "mohClass") == 0) {
 			args.moh_class = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_moh_start_channel(headers, &args, response);
@@ -810,7 +810,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "channelId") == 0) {
 			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_moh_stop_channel(headers, &args, response);
@@ -867,22 +867,22 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "media") == 0) {
 			args.media = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "lang") == 0) {
 			args.lang = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "offsetms") == 0) {
 			args.offsetms = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "skipms") == 0) {
 			args.skipms = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_play_on_channel(headers, &args, response);
@@ -939,31 +939,31 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "name") == 0) {
 			args.name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "format") == 0) {
 			args.format = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "maxDurationSeconds") == 0) {
 			args.max_duration_seconds = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "maxSilenceSeconds") == 0) {
 			args.max_silence_seconds = atoi(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "ifExists") == 0) {
 			args.if_exists = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "beep") == 0) {
 			args.beep = ast_true(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "terminateOn") == 0) {
 			args.terminate_on = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_record_channel(headers, &args, response);
@@ -1021,13 +1021,13 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "variable") == 0) {
 			args.variable = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_channel_var(headers, &args, response);
@@ -1084,16 +1084,16 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "variable") == 0) {
 			args.variable = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "value") == 0) {
 			args.value = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
-		{}
-	}
-	for (i = path_vars; i; i = i->next) {
-		if (strcmp(i->name, "channelId") == 0) {
-			args.channel_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
+		{}
+	}
+	for (i = path_vars; i; i = i->next) {
+		if (strcmp(i->name, "channelId") == 0) {
+			args.channel_id = (i->value);
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_set_channel_var(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_endpoints.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_endpoints.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_endpoints.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_endpoints.c Thu Jul 25 11:04:21 2013
@@ -120,7 +120,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "tech") == 0) {
 			args.tech = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_endpoints_by_tech(headers, &args, response);
@@ -175,10 +175,10 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "tech") == 0) {
 			args.tech = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "resource") == 0) {
 			args.resource = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_endpoint(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_events.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_events.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_events.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_events.c Thu Jul 25 11:04:21 2013
@@ -93,7 +93,7 @@
 			for (j = 0; j < args.app_count; ++j) {
 				args.app[j] = (vals[j]);
 			}
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 #if defined(AST_DEVMODE)

Modified: team/dlee/allow-multiple/res/res_stasis_http_playback.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_playback.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_playback.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_playback.c Thu Jul 25 11:04:21 2013
@@ -73,7 +73,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "playbackId") == 0) {
 			args.playback_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_playback(headers, &args, response);
@@ -128,7 +128,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "playbackId") == 0) {
 			args.playback_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_stop_playback(headers, &args, response);
@@ -183,13 +183,13 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "operation") == 0) {
 			args.operation = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "playbackId") == 0) {
 			args.playback_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_control_playback(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_recordings.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_recordings.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_recordings.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_recordings.c Thu Jul 25 11:04:21 2013
@@ -120,7 +120,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_stored_recording(headers, &args, response);
@@ -175,7 +175,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_delete_stored_recording(headers, &args, response);
@@ -277,7 +277,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_live_recording(headers, &args, response);
@@ -332,7 +332,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_cancel_recording(headers, &args, response);
@@ -387,7 +387,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_stop_recording(headers, &args, response);
@@ -442,7 +442,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_pause_recording(headers, &args, response);
@@ -497,7 +497,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_unpause_recording(headers, &args, response);
@@ -552,7 +552,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_mute_recording(headers, &args, response);
@@ -607,7 +607,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "recordingName") == 0) {
 			args.recording_name = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_unmute_recording(headers, &args, response);

Modified: team/dlee/allow-multiple/res/res_stasis_http_sounds.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/res/res_stasis_http_sounds.c?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/res/res_stasis_http_sounds.c (original)
+++ team/dlee/allow-multiple/res/res_stasis_http_sounds.c Thu Jul 25 11:04:21 2013
@@ -73,10 +73,10 @@
 	for (i = get_params; i; i = i->next) {
 		if (strcmp(i->name, "lang") == 0) {
 			args.lang = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		if (strcmp(i->name, "format") == 0) {
 			args.format = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_sounds(headers, &args, response);
@@ -131,7 +131,7 @@
 	for (i = path_vars; i; i = i->next) {
 		if (strcmp(i->name, "soundId") == 0) {
 			args.sound_id = (i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 		{}
 	}
 	stasis_http_get_stored_sound(headers, &args, response);

Modified: team/dlee/allow-multiple/rest-api-templates/param_parsing.mustache
URL: http://svnview.digium.com/svn/asterisk/team/dlee/allow-multiple/rest-api-templates/param_parsing.mustache?view=diff&rev=395413&r1=395412&r2=395413
==============================================================================
--- team/dlee/allow-multiple/rest-api-templates/param_parsing.mustache (original)
+++ team/dlee/allow-multiple/rest-api-templates/param_parsing.mustache Thu Jul 25 11:04:21 2013
@@ -63,7 +63,7 @@
 				args.{{c_name}}[j] = {{c_convert}}(vals[j]);
 			}
 {{/allow_multiple}}
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 {{/query_parameters}}
 		{}
 	}
@@ -73,7 +73,7 @@
 {{#path_parameters}}
 		if (strcmp(i->name, "{{name}}") == 0) {
 			args.{{c_name}} = {{c_convert}}(i->value);
-		} else /* Intentionally weird newline to make the codegen nicer */
+		} else /* Looks weird, but makes the codegen much simpler */
 {{/path_parameters}}
 		{}
 	}




More information about the svn-commits mailing list