QError: new class for device encrypted errors
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
		
							parent
							
								
									ad382a1257
								
							
						
					
					
						commit
						0df37c411c
					
				
							
								
								
									
										4
									
								
								qerror.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								qerror.c
									
									
									
									
									
								
							@ -44,6 +44,10 @@ static const QErrorStringTable qerror_table[] = {
 | 
			
		||||
        .error_fmt   = QERR_COMMAND_NOT_FOUND,
 | 
			
		||||
        .desc        = "The command %(name) has not been found",
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        .error_fmt = QERR_DEVICE_ENCRYPTED,
 | 
			
		||||
        .desc      = "The %(device) is encrypted",
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        .error_fmt = QERR_DEVICE_NOT_FOUND,
 | 
			
		||||
        .desc      = "The %(device) device has not been found",
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								qerror.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								qerror.h
									
									
									
									
									
								
							@ -41,6 +41,9 @@ QError *qobject_to_qerror(const QObject *obj);
 | 
			
		||||
#define QERR_COMMAND_NOT_FOUND \
 | 
			
		||||
        "{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"
 | 
			
		||||
 | 
			
		||||
#define QERR_DEVICE_ENCRYPTED \
 | 
			
		||||
        "{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
 | 
			
		||||
 | 
			
		||||
#define QERR_DEVICE_NOT_FOUND \
 | 
			
		||||
        "{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user