tools: use #pragma once in headers

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>
This commit is contained in:
Jonathon Jongsma
2019-06-19 17:12:34 +02:00
committed by Ján Tomko
parent c35d8a7d5e
commit a325763ff1
25 changed files with 146 additions and 219 deletions
+3 -6
View File
@@ -18,17 +18,16 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSH_POOL_H
# define LIBVIRT_VIRSH_POOL_H
#pragma once
# include "virsh.h"
#include "virsh.h"
virStoragePoolPtr
virshCommandOptPoolBy(vshControl *ctl, const vshCmd *cmd, const char *optname,
const char **name, unsigned int flags);
/* default is lookup by Name and UUID */
# define virshCommandOptPool(_ctl, _cmd, _optname, _name) \
#define virshCommandOptPool(_ctl, _cmd, _optname, _name) \
virshCommandOptPoolBy(_ctl, _cmd, _optname, _name, \
VIRSH_BYUUID | VIRSH_BYNAME)
@@ -41,5 +40,3 @@ typedef struct virshPoolEventCallback virshPoolEventCallback;
extern virshPoolEventCallback virshPoolEventCallbacks[];
extern const vshCmdDef storagePoolCmds[];
#endif /* LIBVIRT_VIRSH_POOL_H */