2 * backend-file.c: Library for Virtualized Super Computer Management
4 * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * FIXME: Replace this list with a data structure that allows faster lookup.
26 struct VscMgmtHostInfo *_host_info_list = NULL;
33 vsc_mgmt_backend_init (struct VscMgmtError *error,
34 const char *config ATTR_UNUSED)
36 VSC_MGMT__ASSERT (error != NULL);
37 VSC_MGMT__ASSERT (! error->occured);
39 VSC_MGMT__ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
43 vsc_mgmt_backend_cleanup (void)
48 vsc_mgmt_backend_backup (struct VscMgmtError *error)
50 VSC_MGMT__ASSERT (error != NULL);
51 VSC_MGMT__ASSERT (! error->occured);
53 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
57 vsc_mgmt_backend_recover (struct VscMgmtError *error)
59 VSC_MGMT__ASSERT (error != NULL);
60 VSC_MGMT__ASSERT (! error->occured);
62 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
66 vsc_mgmt_backend_host_add (struct VscMgmtError *error,
67 const struct VscMgmtHostInfo *host_info ATTR_UNUSED)
69 VSC_MGMT__ASSERT (error != NULL);
70 VSC_MGMT__ASSERT (! error->occured);
72 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
76 vsc_mgmt_backend_host_remove (struct VscMgmtError *error,
77 const struct VscMgmtHostInfo *host_info ATTR_UNUSED)
79 VSC_MGMT__ASSERT (error != NULL);
80 VSC_MGMT__ASSERT (! error->occured);
82 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
86 vsc_mgmt_backend_host_get_info (struct VscMgmtError *error,
87 const struct VscMgmtIpv4 *host_ipv4 ATTR_UNUSED,
88 struct VscMgmtHostInfo *host_info ATTR_UNUSED)
90 VSC_MGMT__ASSERT (error != NULL);
91 VSC_MGMT__ASSERT (! error->occured);
93 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);
96 struct VscMgmtIpv4 * /* host_ipv4_list */
97 vsc_mgmt_backend_get_host_list (struct VscMgmtError *error)
99 VSC_MGMT__ASSERT (error != NULL);
100 VSC_MGMT__ASSERT (! error->occured);
102 VSC_MGMT__APPEND_ERROR0 (error, VSC_MGMT__CODE__NOT_IMPLEMENTED_YET);