Changeset 3606
- Timestamp:
- Jul 7, 2011 7:34:26 AM (13 years ago)
- Location:
- pjproject/branches/projects/2.0-dev/pjmedia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/build/Makefile
r3493 r3606 66 66 sound_legacy.o sound_port.o stereo_port.o \ 67 67 stream_common.o stream.o tonegen.o transport_adapter_sample.o \ 68 transport_ice.o transport_loop.o \69 t ransport_srtp.o transport_udp.o vid_codec.o vid_codec_util.o \68 transport_ice.o transport_loop.o transport_srtp.o transport_udp.o \ 69 types.o vid_codec.o vid_codec_util.o \ 70 70 videoport.o vid_stream.o \ 71 71 wav_player.o wav_playlist.o wav_writer.o wave.o \ -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/types.h
r3392 r3606 50 50 51 51 /** 52 * Top most media type. 52 * Top most media type. See also #pjmedia_type_name(). 53 53 */ 54 54 typedef enum pjmedia_type … … 193 193 194 194 195 /** 196 * Utility function to return the string name for a pjmedia_type. 197 * 198 * @param t The media type. 199 * 200 * @return String. 201 */ 202 PJ_DECL(const char*) pjmedia_type_name(pjmedia_type t); 195 203 196 204 /** -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/types.c
r3392 r3606 18 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 #include <pjmedia/frame.h>21 #include <pjmedia/port.h>22 20 #include <pjmedia/types.h> 23 #include <pj/ pool.h>21 #include <pj/assert.h> 24 22 23 /** 24 * Utility function to return the string name for a pjmedia_type. 25 * 26 * @param t The media type. 27 * 28 * @return String. 29 */ 30 PJ_DEF(const char*) pjmedia_type_name(pjmedia_type t) 31 { 32 const char *type_names[] = { 33 "none", 34 "audio", 35 "video", 36 "application", 37 "unknown" 38 }; 39 40 pj_assert(t < PJ_ARRAY_SIZE(type_names)); 41 pj_assert(PJMEDIA_TYPE_UNKNOWN == 4); 42 43 if (t < PJ_ARRAY_SIZE(type_names)) 44 return type_names[t]; 45 else 46 return "??"; 47 }
Note: See TracChangeset
for help on using the changeset viewer.