summaryrefslogblamecommitdiffstats
path: root/stubs/monitor.c
blob: c3e9a2e4dc713472bb9d9f80cb12b395678cf0db (plain) (tree)
1
2
3
4
5
6
7
                       
                       
                                  
                            
 
                          
 




                                                              




                                                                   
 




                                                      

 



                                                   
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi/qapi-emit-events.h"
#include "monitor/monitor.h"

__thread Monitor *cur_mon;

int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
{
    abort();
}

int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
{
    error_setg(errp, "only QEMU supports file descriptor passing");
    return -1;
}

void monitor_init_qmp(Chardev *chr, bool pretty)
{
}

void monitor_init_hmp(Chardev *chr, bool use_readline)
{
}

void qapi_event_emit(QAPIEvent event, QDict *qdict)
{
}