1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef FW_PATH_PROVIDER_H
19#define FW_PATH_PROVIDER_H
20
21#include "qemu-common.h"
22#include "qom/object.h"
23
24#define TYPE_FW_PATH_PROVIDER "fw-path-provider"
25
26#define FW_PATH_PROVIDER_CLASS(klass) \
27 OBJECT_CLASS_CHECK(FWPathProviderClass, (klass), TYPE_FW_PATH_PROVIDER)
28#define FW_PATH_PROVIDER_GET_CLASS(obj) \
29 OBJECT_GET_CLASS(FWPathProviderClass, (obj), TYPE_FW_PATH_PROVIDER)
30#define FW_PATH_PROVIDER(obj) \
31 INTERFACE_CHECK(FWPathProvider, (obj), TYPE_FW_PATH_PROVIDER)
32
33typedef struct FWPathProvider {
34 Object parent_obj;
35} FWPathProvider;
36
37typedef struct FWPathProviderClass {
38 InterfaceClass parent_class;
39
40 char *(*get_dev_path)(FWPathProvider *p, BusState *bus, DeviceState *dev);
41} FWPathProviderClass;
42
43char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
44 DeviceState *dev);
45char *fw_path_provider_try_get_dev_path(Object *o, BusState *bus,
46 DeviceState *dev);
47
48#endif
49