[Freeswitch-trunk] [commit] r12822 - freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets
FreeSWITCH SVN
mrene at freeswitch.org
Fri Mar 27 19:30:30 PDT 2009
Author: mrene
Date: Fri Mar 27 21:30:30 2009
New Revision: 12822
Log:
Avoiding sillyness
Added:
freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/stream->write_function.tmSnippet
Modified:
freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/switch_core_session_get_channel.tmSnippet
Added: freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/stream->write_function.tmSnippet
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/stream->write_function.tmSnippet Fri Mar 27 21:30:30 2009
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>${1:stream}->write_function($1, "$2",$3);
+$0</string>
+ <key>name</key>
+ <string>stream->write_function</string>
+ <key>tabTrigger</key>
+ <string>streamw</string>
+ <key>uuid</key>
+ <string>EC0B951A-D6C9-4137-AB5E-0DBA1D666B5A</string>
+</dict>
+</plist>
Modified: freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/switch_core_session_get_channel.tmSnippet
==============================================================================
--- freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/switch_core_session_get_channel.tmSnippet (original)
+++ freeswitch/trunk/scripts/contrib/mrene/textmate/FreeSWITCH.tmbundle/Snippets/switch_core_session_get_channel.tmSnippet Fri Mar 27 21:30:30 2009
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>if ((${1:channel} = switch_core_session_get_channel(${2:session})) {
+ <string>if (session && (${1:channel} = switch_core_session_get_channel(${2:session}))) {
$0
}</string>
<key>name</key>
More information about the Freeswitch-trunk
mailing list