00001
#ifndef MN_SH_RETURN_CODES_H
00002
#define MN_SH_RETURN_CODES_H
00003
00004
#include "mnstream.h"
00005
00006
namespace SH
00007 {
00008
00013 enum ReturnCode
00014 {
00015 SH_OK = 0,
00016
00017 SH_FATAL_ERROR_INVALID,
00018 SH_CANT_OPEN_FILE,
00019 SH_ALREADY_INITIALIZED,
00020 SH_NOT_INITIALIZED,
00021 SH_NOT_CONNECTED,
00022 SH_ALREADY_CONNECTED,
00023 SH_MISSING,
00024 SH_INVALID_CONTENT_TYPE,
00025 SH_UNSUPPORTED_CONTENT_TYPE,
00026 SH_NO_DATA,
00027 SH_NO_TIMER,
00028 SH_ACTIVE,
00029 SH_SYSCALL_ERROR,
00030 SH_UNSUPPORTED_SOURCE_UNIT,
00031 SH_OUT_OF_MEMORY,
00032 SH_EOF,
00033 SH_STOP_POS,
00034 SH_FORK_FAILED,
00035
00036
00037
00038 SH_ENCODE_EV_EOF,
00039 SH_ENCODE_EV_ERROR,
00040 SH_ENCODE_EV_TIME,
00041 SH_ENCODE_EV_NOT_LENGTH,
00042 SH_ENCODE_EV_RT,
00043
00044 SH_LOW_WATERMARK,
00045 SH_HIGH_WATERMARK,
00046
00047 SH_RTP_LC_INCOMPLETE = 995,
00048 SH_RTP_LC_NO = 996,
00049 SH_RTP_LC_YES = 997,
00050 SH_RTP_LIVE_SESSION_OVER = 998,
00051 SH_RTP_LC_COMPLETE = 999
00052 };
00053
00054 typedef ReturnCode SH_RC;
00055
00056 ostream&
operator<<( ostream& ostr, ReturnCode rc );
00057
00059
00060 };
00061
00062
#endif
00063