1 /*
2  * Copyright (C) 2014
3  * Author Shriram Rajagopalan <rshriram@cs.ubc.ca>
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" /* must come before any other headers */
17 
18 #include "libxl_internal.h"
19 
libxl__netbuffer_enabled(libxl__gc * gc)20 int libxl__netbuffer_enabled(libxl__gc *gc)
21 {
22     return 0;
23 }
24 
init_subkind_nic(libxl__checkpoint_devices_state * cds)25 int init_subkind_nic(libxl__checkpoint_devices_state *cds)
26 {
27     return 0;
28 }
29 
cleanup_subkind_nic(libxl__checkpoint_devices_state * cds)30 void cleanup_subkind_nic(libxl__checkpoint_devices_state *cds)
31 {
32     return;
33 }
34 
nic_setup(libxl__egc * egc,libxl__checkpoint_device * dev)35 static void nic_setup(libxl__egc *egc, libxl__checkpoint_device *dev)
36 {
37     STATE_AO_GC(dev->cds->ao);
38 
39     dev->aodev.rc = ERROR_FAIL;
40     dev->aodev.callback(egc, &dev->aodev);
41 }
42 
43 const libxl__checkpoint_device_instance_ops remus_device_nic = {
44     .kind = LIBXL__DEVICE_KIND_VIF,
45     .setup = nic_setup,
46 };
47 
48 /*
49  * Local variables:
50  * mode: C
51  * c-basic-offset: 4
52  * indent-tabs-mode: nil
53  * End:
54  */
55