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 "qom/object.h"
22
23#define TYPE_FW_PATH_PROVIDER "fw-path-provider"
24
25typedef struct FWPathProviderClass FWPathProviderClass;
26DECLARE_CLASS_CHECKERS(FWPathProviderClass, FW_PATH_PROVIDER,
27 TYPE_FW_PATH_PROVIDER)
28#define FW_PATH_PROVIDER(obj) \
29 INTERFACE_CHECK(FWPathProvider, (obj), TYPE_FW_PATH_PROVIDER)
30
31typedef struct FWPathProvider FWPathProvider;
32
33struct FWPathProviderClass {
34 InterfaceClass parent_class;
35
36 char *(*get_dev_path)(FWPathProvider *p, BusState *bus, DeviceState *dev);
37};
38
39char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
40 DeviceState *dev);
41char *fw_path_provider_try_get_dev_path(Object *o, BusState *bus,
42 DeviceState *dev);
43
44#endif
45