1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-13 16:15:19 +00:00

src/admin: 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-07 15:20:14 -05:00 committed by Ján Tomko
parent bed1143ff5
commit 99527e9e0c
2 changed files with 7 additions and 13 deletions

@ -18,11 +18,10 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_ADMIN_SERVER_H #pragma once
# define LIBVIRT_ADMIN_SERVER_H
# include "rpc/virnetdaemon.h" #include "rpc/virnetdaemon.h"
# include "rpc/virnetserver.h" #include "rpc/virnetserver.h"
int adminConnectListServers(virNetDaemonPtr dmn, int adminConnectListServers(virNetDaemonPtr dmn,
virNetServerPtr **servers, virNetServerPtr **servers,
@ -68,5 +67,3 @@ int adminServerSetClientLimits(virNetServerPtr srv,
virTypedParameterPtr params, virTypedParameterPtr params,
int nparams, int nparams,
unsigned int flags); unsigned int flags);
#endif /* LIBVIRT_ADMIN_SERVER_H */

@ -18,12 +18,11 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_ADMIN_SERVER_DISPATCH_H #pragma once
# define LIBVIRT_ADMIN_SERVER_DISPATCH_H
# include "rpc/virnetserverprogram.h" #include "rpc/virnetserverprogram.h"
# include "rpc/virnetserverclient.h" #include "rpc/virnetserverclient.h"
# include "admin/admin_protocol.h" #include "admin/admin_protocol.h"
extern virNetServerProgramProc adminProcs[]; extern virNetServerProgramProc adminProcs[];
@ -36,5 +35,3 @@ void *remoteAdmClientNewPostExecRestart(virNetServerClientPtr client,
void *opaque); void *opaque);
virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client, virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client,
void *data); void *data);
#endif /* LIBVIRT_ADMIN_SERVER_DISPATCH_H */