mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 17:11:57 -06:00
libqos: Give get_machine_allocator() internal linkage
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200424071142.3525-4-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
a56f3cdbdf
commit
f6528054f2
2 changed files with 1 additions and 3 deletions
|
@ -66,7 +66,7 @@ void types_apply_to_node(ObjectTypeInfoList *type_info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QGuestAllocator *get_machine_allocator(QOSGraphObject *obj)
|
static QGuestAllocator *get_machine_allocator(QOSGraphObject *obj)
|
||||||
{
|
{
|
||||||
return obj->get_driver(obj, "memory");
|
return obj->get_driver(obj, "memory");
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
#ifndef QOS_EXTERNAL_H
|
#ifndef QOS_EXTERNAL_H
|
||||||
#define QOS_EXTERNAL_H
|
#define QOS_EXTERNAL_H
|
||||||
#include "libqos/qgraph.h"
|
|
||||||
|
|
||||||
#include "libqos/malloc.h"
|
#include "libqos/malloc.h"
|
||||||
#include "qapi/qapi-types-machine.h"
|
#include "qapi/qapi-types-machine.h"
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
|
|
||||||
void machines_apply_to_node(MachineInfoList *mach_info);
|
void machines_apply_to_node(MachineInfoList *mach_info);
|
||||||
void types_apply_to_node(ObjectTypeInfoList *type_info);
|
void types_apply_to_node(ObjectTypeInfoList *type_info);
|
||||||
QGuestAllocator *get_machine_allocator(QOSGraphObject *obj);
|
|
||||||
void *allocate_objects(QTestState *qts, char **path, QGuestAllocator **p_alloc);
|
void *allocate_objects(QTestState *qts, char **path, QGuestAllocator **p_alloc);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue