mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 16:45:26 +00:00
07729eedf3
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
/*
|
|
* openwsman.h: workarounds for bugs in openwsman
|
|
*
|
|
* Copyright (C) 2011 Matthias Bolte <matthias.bolte@googlemail.com>
|
|
*
|
|
* This library 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; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* Workaround openwsman <= 2.2.6 unconditionally defining optarg. Just pretend
|
|
* that u/os.h was already included. Need to explicitly include time.h because
|
|
* wsman-xml-serializer.h needs it and u/os.h would have included it. */
|
|
#include <time.h>
|
|
#define _LIBU_OS_H_
|
|
#include <wsman-api.h>
|
|
|
|
/* wsman-xml-serializer.h in openwsman <= 2.2.6 is missing this defines */
|
|
#ifndef SER_NS_INT8
|
|
# define SER_NS_INT8(ns, n, x) SER_NS_INT8_FLAGS(ns, n, x, 0)
|
|
#endif
|
|
#ifndef SER_NS_INT16
|
|
# define SER_NS_INT16(ns, n, x) SER_NS_INT16_FLAGS(ns, n, x, 0)
|
|
#endif
|
|
#ifndef SER_NS_INT32
|
|
# define SER_NS_INT32(ns, n, x) SER_NS_INT32_FLAGS(ns, n, x, 0)
|
|
#endif
|
|
#ifndef SER_NS_INT64
|
|
# define SER_NS_INT64(ns, n, x) SER_NS_INT64_FLAGS(ns, n, x, 0)
|
|
#endif
|
|
|
|
/* wsman-xml.h */
|
|
WsXmlDocH ws_xml_create_doc(const char *rootNsUri, const char *rootName);
|
|
WsXmlNodeH xml_parser_get_root(WsXmlDocH doc);
|