Commit 71bc6387 authored by Snir Sheriber's avatar Snir Sheriber

use #pragma once instead of include guards

Signed-off-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
Acked-by: Kevin Pouget's avatarKevin Pouget <kpouget@redhat.com>
parent 3a760f3d
Pipeline #109803 passed with stage
in 4 minutes and 45 seconds
......@@ -2,8 +2,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_DISPLAY_INFO_HPP
#define SPICE_STREAMING_AGENT_DISPLAY_INFO_HPP
#pragma once
#include <vector>
#include <string>
......@@ -48,5 +47,3 @@ uint32_t read_hex_number_from_file(const std::string &path);
std::string get_device_address(const std::string &card_path);
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_DISPLAY_INFO_HPP
......@@ -4,8 +4,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_ERROR_HPP
#define SPICE_STREAMING_AGENT_ERROR_HPP
#pragma once
#include <stdexcept>
#include <string>
......@@ -21,5 +20,3 @@ public:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_ERROR_HPP
......@@ -4,8 +4,8 @@
* \copyright
* Copyright 2016-2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_FRAME_CAPTURE_HPP
#define SPICE_STREAMING_AGENT_FRAME_CAPTURE_HPP
#pragma once
#include <cstdint>
#include <cstdio>
......@@ -72,5 +72,3 @@ protected:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_FRAME_CAPTURE_HPP
......@@ -4,8 +4,8 @@
* \copyright
* Copyright 2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_PLUGIN_HPP
#define SPICE_STREAMING_AGENT_PLUGIN_HPP
#pragma once
#include <spice/enums.h>
#include <memory>
......@@ -157,5 +157,3 @@ extern "C" spice::streaming_agent::PluginInitFunc spice_streaming_agent_plugin_i
bool spice_streaming_agent_plugin_init(spice::streaming_agent::Agent* agent)
#endif
#endif // SPICE_STREAMING_AGENT_PLUGIN_HPP
......@@ -2,8 +2,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_X_DISPLAY_INFO_HPP
#define SPICE_STREAMING_AGENT_X_DISPLAY_INFO_HPP
#pragma once
#include <spice-streaming-agent/frame-capture.hpp>
......@@ -53,5 +52,3 @@ std::vector<DeviceDisplayInfo> get_device_display_info_no_drm(Display *display);
std::vector<std::string> get_xrandr_outputs(Display *display, Window window);
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_X_DISPLAY_INFO_HPP
......@@ -3,8 +3,8 @@
* \copyright
* Copyright 2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_CONCRETE_AGENT_HPP
#define SPICE_STREAMING_AGENT_CONCRETE_AGENT_HPP
#pragma once
#include <vector>
#include <set>
......@@ -45,5 +45,3 @@ private:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_CONCRETE_AGENT_HPP
......@@ -5,8 +5,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_CURSOR_UPDATER_HPP
#define SPICE_STREAMING_AGENT_CURSOR_UPDATER_HPP
#pragma once
#include "stream-port.hpp"
......@@ -30,5 +29,3 @@ private:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_CURSOR_UPDATER_HPP
......@@ -4,8 +4,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_FRAME_LOG_HPP
#define SPICE_STREAMING_AGENT_FRAME_LOG_HPP
#pragma once
#include <cinttypes>
#include <stddef.h>
......@@ -37,5 +36,3 @@ private:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_FRAME_LOG_HPP
......@@ -3,8 +3,8 @@
* \copyright
* Copyright 2016-2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_HEXDUMP_H
#define SPICE_STREAMING_AGENT_HEXDUMP_H
#pragma once
#ifdef __cplusplus
extern "C" {
......@@ -17,5 +17,3 @@ void hexdump(const void *buffer, size_t size, FILE *f_out);
#ifdef __cplusplus
}
#endif
#endif
......@@ -3,12 +3,10 @@
* \copyright
* Copyright 2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_JPEG_HPP
#define SPICE_STREAMING_AGENT_JPEG_HPP
#pragma once
#include <stdio.h>
#include <vector>
void write_JPEG_file(std::vector<uint8_t>& buffer, int quality, uint8_t *data, unsigned width, unsigned height);
#endif
......@@ -3,8 +3,8 @@
* \copyright
* Copyright 2017 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_MJPEG_FALLBACK_HPP
#define SPICE_STREAMING_AGENT_MJPEG_FALLBACK_HPP
#pragma once
#include <spice-streaming-agent/plugin.hpp>
#include <spice-streaming-agent/frame-capture.hpp>
......@@ -33,5 +33,3 @@ private:
};
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_MJPEG_FALLBACK_HPP
......@@ -4,8 +4,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_STREAM_PORT_HPP
#define SPICE_STREAMING_AGENT_STREAM_PORT_HPP
#pragma once
#include <spice/stream-device.h>
#include <spice/enums.h>
......@@ -125,5 +124,3 @@ void read_all(int fd, void *buf, size_t len);
void write_all(int fd, const void *buf, size_t len);
}} // namespace spice::streaming_agent
#endif // SPICE_STREAMING_AGENT_STREAM_PORT_HPP
......@@ -6,7 +6,7 @@
* Copyright 2019 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_CATCH_HPP
#pragma once
#include <config.h>
#if defined(HAVE_CATCH2_CATCH_HPP)
......@@ -14,5 +14,3 @@
#elif defined(HAVE_CATCH_CATCH_HPP)
#include <catch/catch.hpp>
#endif
#endif // SPICE_CATCH_HPP
......@@ -2,8 +2,7 @@
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#ifndef SPICE_STREAMING_AGENT_UTILS_HPP
#define SPICE_STREAMING_AGENT_UTILS_HPP
#pragma once
#include <vector>
#include <string>
......@@ -24,5 +23,3 @@ const T &syslog(const T &error) noexcept
}
}}} // namespace spice::streaming_agent::utils
#endif // SPICE_STREAMING_AGENT_UTILS_HPP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment