X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=os_win32%2Fwmiquery.h;h=47b6f37f08104e469130d8bde1e81c908f6a3e1b;hb=ff28b140e6e5ff7daf5f3386dc11367d30dda4dd;hp=3000a37545ff62f795117b45bf43dc427d938a7a;hpb=a818ba584ce838c945b648669166d476da4417a9;p=mirror_smartmontools-debian.git
diff --git a/os_win32/wmiquery.h b/os_win32/wmiquery.h
index 3000a37..47b6f37 100644
--- a/os_win32/wmiquery.h
+++ b/os_win32/wmiquery.h
@@ -3,28 +3,17 @@
*
* Home page of code is: http://www.smartmontools.org
*
- * Copyright (C) 2011-15 Christian Franke
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * You should have received a copy of the GNU General Public License
- * (for example COPYING); If not, see .
+ * Copyright (C) 2011-18 Christian Franke
*
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef WMIQUERY_H
#define WMIQUERY_H
-#define WMIQUERY_H_CVSID "$Id: wmiquery.h 4152 2015-10-17 16:08:21Z chrfranke $"
+#define WMIQUERY_H_CVSID "$Id: wmiquery.h 4760 2018-08-19 18:45:53Z chrfranke $"
-#ifdef HAVE_WBEMCLI_H
#include
-#else
-#include "wbemcli_small.h"
-#endif
#include
@@ -168,11 +157,13 @@ public:
/// Execute query, get result list.
/// Return false on error.
- bool vquery(wbem_enumerator & result, const char * qstr, va_list args) /*const*/;
+ bool vquery(wbem_enumerator & result, const char * qstr, va_list args) /*const*/
+ __attribute_format_printf(3, 0);
/// Execute query, get single result object.
/// Return false on error or result size != 1.
- bool vquery1(wbem_object & obj, const char * qstr, va_list args) /*const*/;
+ bool vquery1(wbem_object & obj, const char * qstr, va_list args) /*const*/
+ __attribute_format_printf(3, 0);
/// Version of vquery() with printf() formatting.
bool query(wbem_enumerator & result, const char * qstr, ...) /*const*/