1 /*
2  * Copyright (C) 2018      Aporeto
3  * Author Stefano Stabellini <stefano@aporeto.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published
7  * by the Free Software Foundation; version 2.1 only. with the special
8  * exception on linking described in file LICENSE.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  */
15 
16 #include "libxl_osdeps.h"
17 
18 #include "libxl_internal.h"
19 
libxl__device_pvcallsif_setdefault(libxl__gc * gc,uint32_t domid,libxl_device_pvcallsif * pvcallsif,bool hotplug)20 static int libxl__device_pvcallsif_setdefault(libxl__gc *gc, uint32_t domid,
21                                               libxl_device_pvcallsif *pvcallsif,
22                                               bool hotplug)
23 {
24     return libxl__resolve_domid(gc, pvcallsif->backend_domname,
25                                 &pvcallsif->backend_domid);
26 }
27 
28 static LIBXL_DEFINE_UPDATE_DEVID(pvcallsif)
29 static LIBXL_DEFINE_DEVICE_FROM_TYPE(pvcallsif)
30 
31 #define libxl__add_pvcallsifs NULL
32 #define libxl_device_pvcallsif_list NULL
33 #define libxl_device_pvcallsif_compare NULL
34 
35 LIBXL_DEFINE_DEVICE_REMOVE(pvcallsif)
36 
37 DEFINE_DEVICE_TYPE_STRUCT(pvcallsif, PVCALLS);
38