From 409e9bf5055717c010e0f45cd085dbb78f1f4c35 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Mon, 14 Jan 2019 12:08:52 +1100 Subject: [PATCH 3/6] include: Convert header vswriter to an idl. Signed-off-by: Alistair Leslie-Hughes --- include/Makefile.in | 2 +- include/vswriter.h | 62 ---------------------------------------------------- include/vswriter.idl | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 63 deletions(-) delete mode 100644 include/vswriter.h create mode 100644 include/vswriter.idl diff --git a/include/Makefile.in b/include/Makefile.in index fd47078..a4642ce 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -649,7 +649,7 @@ SOURCES = \ vss.idl \ vsstyle.h \ vssym32.h \ - vswriter.h \ + vswriter.idl \ wbemcli.idl \ wbemdisp.idl \ wbemprov.idl \ diff --git a/include/vswriter.h b/include/vswriter.h deleted file mode 100644 index ac23861..0000000 --- a/include/vswriter.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2014 Hans Leidekker for CodeWeavers - * - * 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, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef __WINE_VSWRITER_H -#define __WINE_VSWRITER_H - -typedef enum -{ - VSS_UT_UNDEFINED, - VSS_UT_BOOTABLESYSTEMSTATE, - VSS_UT_SYSTEMSERVICE, - VSS_UT_USERDATA, - VSS_UT_OTHER -} VSS_USAGE_TYPE; - -typedef enum -{ - VSS_ST_UNDEFINED, - VSS_ST_TRANSACTEDDB, - VSS_ST_NONTRANSACTEDDB, - VSS_ST_OTHER -} VSS_SOURCE_TYPE; - -typedef enum -{ - VSS_AWS_UNDEFINED, - VSS_AWS_NO_ALTERNATE_WRITER, - VSS_AWS_ALTERNATE_WRITER_EXISTS, - VSS_AWS_THIS_IS_ALTERNATE_WRITER -} VSS_ALTERNATE_WRITER_STATE; - -typedef enum VSS_COMPONENT_TYPE -{ - VSS_CT_UNDEFINED = 0, - VSS_CT_DATABASE, - VSS_CT_FILEGROUP -} VSS_COMPONENT_TYPE; - -typedef enum VSS_FILE_RESTORE_STATUS -{ - VSS_RS_UNDEFINED = 0, - VSS_RS_NONE, - VSS_RS_ALL, - VSS_RS_FAILED -} VSS_FILE_RESTORE_STATUS; - -#endif /* ___WINE_VSWRITER_H */ diff --git a/include/vswriter.idl b/include/vswriter.idl new file mode 100644 index 0000000..6bc6890 --- /dev/null +++ b/include/vswriter.idl @@ -0,0 +1,58 @@ +/* + * Copyright 2014 Hans Leidekker for CodeWeavers + * + * 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, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +import "oaidl.idl"; + +typedef enum +{ + VSS_UT_UNDEFINED, + VSS_UT_BOOTABLESYSTEMSTATE, + VSS_UT_SYSTEMSERVICE, + VSS_UT_USERDATA, + VSS_UT_OTHER +} VSS_USAGE_TYPE; + +typedef enum +{ + VSS_ST_UNDEFINED, + VSS_ST_TRANSACTEDDB, + VSS_ST_NONTRANSACTEDDB, + VSS_ST_OTHER +} VSS_SOURCE_TYPE; + +typedef enum +{ + VSS_AWS_UNDEFINED, + VSS_AWS_NO_ALTERNATE_WRITER, + VSS_AWS_ALTERNATE_WRITER_EXISTS, + VSS_AWS_THIS_IS_ALTERNATE_WRITER +} VSS_ALTERNATE_WRITER_STATE; + +typedef enum VSS_COMPONENT_TYPE +{ + VSS_CT_UNDEFINED = 0, + VSS_CT_DATABASE, + VSS_CT_FILEGROUP +} VSS_COMPONENT_TYPE; + +typedef enum VSS_FILE_RESTORE_STATUS +{ + VSS_RS_UNDEFINED = 0, + VSS_RS_NONE, + VSS_RS_ALL, + VSS_RS_FAILED +} VSS_FILE_RESTORE_STATUS; -- 1.9.1