Replace Monitor API by HumanReadableText one (see commit f2de406f29 "docs/devel: document expectations for QAPI data modelling for QMP" for rationale). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20240610063518.50680-2-philmd@linaro.org>
		
			
				
	
	
		
			29 lines
		
	
	
		
			897 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			897 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef INTC_H
 | 
						|
#define INTC_H
 | 
						|
 | 
						|
#include "qom/object.h"
 | 
						|
 | 
						|
#define TYPE_INTERRUPT_STATS_PROVIDER "intctrl"
 | 
						|
 | 
						|
typedef struct InterruptStatsProviderClass InterruptStatsProviderClass;
 | 
						|
DECLARE_CLASS_CHECKERS(InterruptStatsProviderClass, INTERRUPT_STATS_PROVIDER,
 | 
						|
                       TYPE_INTERRUPT_STATS_PROVIDER)
 | 
						|
#define INTERRUPT_STATS_PROVIDER(obj) \
 | 
						|
    INTERFACE_CHECK(InterruptStatsProvider, (obj), \
 | 
						|
                    TYPE_INTERRUPT_STATS_PROVIDER)
 | 
						|
 | 
						|
typedef struct InterruptStatsProvider InterruptStatsProvider;
 | 
						|
 | 
						|
struct InterruptStatsProviderClass {
 | 
						|
    InterfaceClass parent;
 | 
						|
 | 
						|
    /* The returned pointer and statistics must remain valid until
 | 
						|
     * the BQL is next dropped.
 | 
						|
     */
 | 
						|
    bool (*get_statistics)(InterruptStatsProvider *obj, uint64_t **irq_counts,
 | 
						|
                           unsigned int *nb_irqs);
 | 
						|
    void (*print_info)(InterruptStatsProvider *obj, GString *buf);
 | 
						|
};
 | 
						|
 | 
						|
#endif
 |