mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Provide a thin wrapper around exec()ing the python conversion utility, and a stub implementation for cases where conversion is not wanted (i.e. not x86). One complication is that the caller of this interface needs to assume ownership of the output fd, to prevent it being closed while still in use in a datacopier. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> --- v4: Formatting tweaks, description of the width field. v3: Trimmed down massively from v2, provide libxl_no_convert_callout.c
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2015 Citrix Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published
|
|
* by the Free Software Foundation; version 2.1 only. with the special
|
|
* exception on linking described in file LICENSE.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*/
|
|
|
|
#include "libxl_osdeps.h"
|
|
|
|
#include "libxl_internal.h"
|
|
|
|
void libxl__conversion_helper_init(libxl__conversion_helper_state *chs)
|
|
{
|
|
libxl__ev_child_init(&chs->child);
|
|
}
|
|
|
|
int libxl__convert_legacy_stream(libxl__egc *egc,
|
|
libxl__conversion_helper_state *chs)
|
|
{
|
|
return ERROR_FAIL;
|
|
}
|
|
|
|
void libxl__conversion_helper_abort(libxl__egc *egc,
|
|
libxl__conversion_helper_state *chs,
|
|
int rc)
|
|
{
|
|
/* no op */
|
|
}
|