Skip to content

Commit

Permalink
Consistent and non-conflicting header guards
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Oct 23, 2024
1 parent ebac9f3 commit 4e3489b
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/display_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_ATOMIC_DISPLAY_HELPERS_H_
#define MIR_GRAPHICS_ATOMIC_DISPLAY_HELPERS_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_HELPERS_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_HELPERS_H_

#include "mir/udev/wrapper.h"
#include "mir/fd.h"
Expand Down Expand Up @@ -86,4 +86,4 @@ class GBMHelper
}
}
}
#endif /* MIR_GRAPHICS_ATOMIC_DISPLAY_HELPERS_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_HELPERS_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/atomic_kms_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_ATOMIC_OUTPUT_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_ATOMIC_OUTPUT_H_

#include "kms_output.h"
#include "kms-utils/drm_mode_resources.h"
Expand Down Expand Up @@ -100,4 +100,4 @@ class AtomicKMSOutput : public KMSOutput
}
}

#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_ATOMIC_OUTPUT_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/bypass.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_BYPASS_H_
#define MIR_GRAPHICS_GBM_BYPASS_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_BYPASS_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_BYPASS_H_

#include "mir/graphics/renderable.h"

Expand All @@ -41,4 +41,4 @@ class BypassMatch
} // namespace graphics
} // namespace mir

#endif // MIR_GRAPHICS_GBM_BYPASS_H_
#endif // MIR_GRAPHICS_GBM_ATOMIC_KMS_BYPASS_H_
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_DISPLAY_H_
#define MIR_GRAPHICS_GBM_DISPLAY_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_H_

#include "kms-utils/drm_event_handler.h"
#include "mir/graphics/display.h"
Expand Down Expand Up @@ -128,4 +128,4 @@ class GBMDisplayProvider : public graphics::GBMDisplayProvider
}
}

#endif /* MIR_GRAPHICS_GBM_DISPLAY_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/display_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_ATOMIC_DISPLAY_SINK_H_
#define MIR_GRAPHICS_ATOMIC_DISPLAY_SINK_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_SINK_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_SINK_H_

#include "kms-utils/drm_event_handler.h"
#include "mir/graphics/display_sink.h"
Expand Down Expand Up @@ -123,4 +123,4 @@ class DisplaySink : public graphics::DisplaySink,
}
}

#endif /* MIR_GRAPHICS_ATOMIC_DISPLAY_SINK_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_SINK_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/egl_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_EGL_HELPER_H_
#define MIR_GRAPHICS_GBM_EGL_HELPER_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_EGL_HELPER_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_EGL_HELPER_H_

#include "../display_helpers.h"
#include "mir/graphics/egl_extensions.h"
Expand Down Expand Up @@ -84,4 +84,4 @@ class EGLHelper
}
}

#endif /* MIR_GRAPHICS_GBM_EGL_HELPER_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_EGL_HELPER_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_KMS_DISPLAY_CONFIGURATION_H_
#define MIR_GRAPHICS_GBM_KMS_DISPLAY_CONFIGURATION_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_CONFIGURATION_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_CONFIGURATION_H_

#include "mir/graphics/display_configuration.h"
#include <memory>
Expand Down Expand Up @@ -44,4 +44,4 @@ class KMSDisplayConfiguration : public DisplayConfiguration
}
}

#endif /* MIR_GRAPHICS_GBM_KMS_DISPLAY_CONFIGURATION_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_DISPLAY_CONFIGURATION_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/kms_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_KMS_OUTPUT_H_
#define MIR_GRAPHICS_GBM_KMS_OUTPUT_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_

#include "mir/geometry/size.h"
#include "mir/geometry/point.h"
Expand Down Expand Up @@ -106,4 +106,4 @@ class KMSOutput
}
}

#endif /* MIR_GRAPHICS_GBM_KMS_OUTPUT_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/kms_output_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_KMS_OUTPUT_CONTAINER_H_
#define MIR_GRAPHICS_GBM_KMS_OUTPUT_CONTAINER_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_CONTAINER_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_CONTAINER_H_

#include <memory>
#include <functional>
Expand Down Expand Up @@ -50,4 +50,4 @@ class KMSOutputContainer
}
}

#endif /* MIR_GRAPHICS_GBM_KMS_OUTPUT_CONTAINER_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_OUTPUT_CONTAINER_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/kms_page_flipper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_KMS_PAGE_FLIPPER_H_
#define MIR_GRAPHICS_GBM_KMS_PAGE_FLIPPER_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_PAGE_FLIPPER_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_PAGE_FLIPPER_H_

#include "page_flipper.h"

Expand Down Expand Up @@ -73,4 +73,4 @@ class KMSPageFlipper : public PageFlipper
}
}

#endif /* MIR_GRAPHICS_GBM_KMS_PAGE_FLIPPER_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_PAGE_FLIPPER_H_ */
6 changes: 3 additions & 3 deletions src/platforms/atomic-kms/server/kms/quirks.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_KMS_QUIRKS_H_
#define MIR_GRAPHICS_GBM_KMS_QUIRKS_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_QUIRKS_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_QUIRKS_H_

#include <memory>
#include <boost/program_options.hpp>
Expand Down Expand Up @@ -64,4 +64,4 @@ class Quirks
}


#endif //MIR_GRAPHICS_GBM_KMS_QUIRKS_H_
#endif //MIR_GRAPHICS_GBM_ATOMIC_KMS_QUIRKS_H_
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_ATOMIC_REAL_KMS_DISPLAY_CONFIGURATION_H_
#define MIR_GRAPHICS_ATOMIC_REAL_KMS_DISPLAY_CONFIGURATION_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_REALDISPLAY_CONFIGURATION_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_REALDISPLAY_CONFIGURATION_H_

#include "kms_display_configuration.h"

Expand Down Expand Up @@ -62,4 +62,4 @@ bool compatible(RealKMSDisplayConfiguration const& conf1, RealKMSDisplayConfigur
}
}

#endif /* MIR_GRAPHICS_ATOMIC_REAL_KMS_DISPLAY_CONFIGURATION_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_REALDISPLAY_CONFIGURATION_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MIR_GRAPHICS_GBM_REAL_KMS_OUTPUT_CONTAINER_H_
#define MIR_GRAPHICS_GBM_REAL_KMS_OUTPUT_CONTAINER_H_
#ifndef MIR_GRAPHICS_GBM_ATOMIC_KMS_REAL_OUTPUT_CONTAINER_H_
#define MIR_GRAPHICS_GBM_ATOMIC_KMS_REAL_OUTPUT_CONTAINER_H_

#include "kms_output_container.h"
#include "mir/fd.h"
Expand Down Expand Up @@ -51,4 +51,4 @@ class RealKMSOutputContainer : public KMSOutputContainer
}
}

#endif /* MIR_GRAPHICS_GBM_REAL_KMS_OUTPUT_CONTAINER_H_ */
#endif /* MIR_GRAPHICS_GBM_ATOMIC_KMS_REAL_OUTPUT_CONTAINER_H_ */

0 comments on commit 4e3489b

Please sign in to comment.