Added new error types;
This commit is contained in:
		
							parent
							
								
									44610d093a
								
							
						
					
					
						commit
						4c659daa57
					
				@ -50,6 +50,8 @@
 | 
			
		||||
#define SXE_MMESSAGES            219
 | 
			
		||||
#define SXE_LINKBROKEN           220
 | 
			
		||||
#define SXE_INVALINDEX           221
 | 
			
		||||
#define SXE_NOSUCHSTREAMTYPE     222
 | 
			
		||||
#define SXE_EOS                  223
 | 
			
		||||
 | 
			
		||||
const char *sxmpl_errno2cstr(int);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -351,9 +351,11 @@ static struct __scerrcode __lerr[] = {
 | 
			
		||||
  {SXE_MMESSAGES, "Active messages limit exceed"},
 | 
			
		||||
  {SXE_LINKBROKEN, "Connection link was broken"},
 | 
			
		||||
  {SXE_INVALINDEX, "Invalid index given"},
 | 
			
		||||
  {SXE_NOSUCHSTREAMTYPE, "No such stream type exist"},
 | 
			
		||||
  {SXE_EOS, "End of stream reached"},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const char *sntll_errno2cstr(int ec)
 | 
			
		||||
const char *sxmpl_errno2cstr(int ec)
 | 
			
		||||
{
 | 
			
		||||
  return __lerr[ec - __SXMP_EPREFIX].desc;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user