Skip to content

Commit 1c5c42d

Browse files
committed
style: recreate & unify style for all header guards
Use a single style convention for all header guards.
1 parent fdb554c commit 1c5c42d

37 files changed

+272
-115
lines changed

src/compositor_ng.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Copyright (c) 2022, Hannes Winkler <[email protected]>
88
*/
99

10-
#ifndef _FLUTTERPI_INCLUDE_COMPOSITOR_NG_H
11-
#define _FLUTTERPI_INCLUDE_COMPOSITOR_NG_H
10+
#ifndef _FLUTTERPI_SRC_COMPOSITOR_NG_H
11+
#define _FLUTTERPI_SRC_COMPOSITOR_NG_H
1212

1313
#include <flutter_embedder.h>
1414

@@ -203,4 +203,4 @@ DECLARE_REF_OPS(fl_layer_composition)
203203
size_t fl_layer_composition_get_n_layers(struct fl_layer_composition *composition);
204204
struct fl_layer *fl_layer_composition_peek_layer(struct fl_layer_composition *composition, int layer);
205205

206-
#endif // _FLUTTERPI_INCLUDE_COMPOSITOR_NG_H
206+
#endif // _FLUTTERPI_SRC_COMPOSITOR_NG_H

src/cursor.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
#ifndef _CURSOR_H
2-
#define _CURSOR_H
1+
// SPDX-License-Identifier: MIT
2+
/*
3+
* Cursor Images
4+
*
5+
* Contains all the mouse cursor images in compressed form,
6+
* and some utilities for using them.
7+
*
8+
* Copyright (c) 2023, Hannes Winkler <[email protected]>
9+
*/
10+
11+
#ifndef _FLUTTERPI_SRC_CURSOR_H
12+
#define _FLUTTERPI_SRC_CURSOR_H
313

414
#include <stdint.h>
515

@@ -58,4 +68,4 @@ struct vec2i pointer_icon_get_hotspot(const struct pointer_icon *icon);
5868

5969
void *pointer_icon_dup_pixels(const struct pointer_icon *icon);
6070

61-
#endif
71+
#endif // _FLUTTERPI_SRC_CURSOR_H

src/dmabuf_surface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Copyright (c) 2022, Hannes Winkler <[email protected]>
88
*/
99

10-
#ifndef _FLUTTERPI_INCLUDE_DMABUF_SURFACE_H
11-
#define _FLUTTERPI_INCLUDE_DMABUF_SURFACE_H
10+
#ifndef _FLUTTERPI_SRC_DMABUF_SURFACE_H
11+
#define _FLUTTERPI_SRC_DMABUF_SURFACE_H
1212

1313
#include "pixel_format.h"
1414

@@ -44,4 +44,4 @@ int dmabuf_surface_push_dmabuf(struct dmabuf_surface *s, const struct dmabuf *bu
4444

4545
ATTR_PURE int64_t dmabuf_surface_get_texture_id(struct dmabuf_surface *s);
4646

47-
#endif // _FLUTTERPI_INCLUDE_DMABUF_SURFACE_H
47+
#endif // _FLUTTERPI_SRC_DMABUF_SURFACE_H

src/dummy_render_surface.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// SPDX-License-Identifier: MIT
22
/*
3-
* Vulkan GBM render surface
3+
* Dummy render surface
44
*
5-
* - used as a render target for flutter vulkan rendering
6-
* - can be scanned out using KMS
5+
* Just a render surface that does nothing when presenting.
76
*
8-
* Copyright (c) 2022, Hannes Winkler <[email protected]>
7+
* Copyright (c) 2023, Hannes Winkler <[email protected]>
98
*/
109

11-
#ifndef _FLUTTERPI_INCLUDE_DUMMY_RENDER_SURFACE_H
12-
#define _FLUTTERPI_INCLUDE_DUMMY_RENDER_SURFACE_H
10+
#ifndef _FLUTTERPI_SRC_DUMMY_RENDER_SURFACE_H
11+
#define _FLUTTERPI_SRC_DUMMY_RENDER_SURFACE_H
1312

1413
#include "util/geometry.h"
1514

@@ -26,4 +25,4 @@ ATTR_PURE struct dummy_render_surface *__checked_cast_dummy_render_surface(void
2625

2726
struct dummy_render_surface *dummy_render_surface_new(struct tracer *tracer, struct vec2i size);
2827

29-
#endif // _FLUTTERPI_INCLUDE_DUMMY_RENDER_SURFACE_H
28+
#endif // _FLUTTERPI_SRC_DUMMY_RENDER_SURFACE_H

src/egl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Copyright (c) 2022, Hannes Winkler <[email protected]>
66
*/
77

8-
#ifndef _FLUTTERPI_INCLUDE_EGL_H
9-
#define _FLUTTERPI_INCLUDE_EGL_H
8+
#ifndef _FLUTTERPI_SRC_EGL_H
9+
#define _FLUTTERPI_SRC_EGL_H
1010

1111
#include <stdbool.h>
1212
#include <string.h>
@@ -478,4 +478,4 @@ static inline const char *egl_strerror(EGLenum result) {
478478
#define LOG_EGL_ERROR(result, fmt, ...) LOG_ERROR(fmt ": %s\n", __VA_ARGS__ egl_strerror(result))
479479
#endif
480480

481-
#endif // _FLUTTERPI_INCLUDE_EGL_H
481+
#endif // _FLUTTERPI_SRC_EGL_H

src/egl_gbm_render_surface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Copyright (c) 2022, Hannes Winkler <[email protected]>
88
*/
99

10-
#ifndef _FLUTTERPI_INCLUDE_EGL_GBM_RENDER_SURFACE_H
11-
#define _FLUTTERPI_INCLUDE_EGL_GBM_RENDER_SURFACE_H
10+
#ifndef _FLUTTERPI_SRC_EGL_GBM_RENDER_SURFACE_H
11+
#define _FLUTTERPI_SRC_EGL_GBM_RENDER_SURFACE_H
1212

1313
#include "compositor_ng.h"
1414
#include "pixel_format.h"
@@ -49,4 +49,4 @@ ATTR_PURE EGLSurface egl_gbm_render_surface_get_egl_surface(struct egl_gbm_rende
4949

5050
ATTR_PURE EGLConfig egl_gbm_render_surface_get_egl_config(struct egl_gbm_render_surface *s);
5151

52-
#endif // _FLUTTERPI_INCLUDE_EGL_GBM_RENDER_SURFACE_H
52+
#endif // _FLUTTERPI_SRC_EGL_GBM_RENDER_SURFACE_H

src/event_loop.h

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
#ifndef _EVENT_LOOP_H
2-
#define _EVENT_LOOP_H
1+
// SPDX-License-Identifier: MIT
2+
/*
3+
* Event Loop
4+
*
5+
* - multithreaded event loop
6+
*
7+
* Copyright (c) 2023, Hannes Winkler <[email protected]>
8+
*/
9+
10+
#ifndef _FLUTTERPI_SRC_EVENT_LOOP_H
11+
#define _FLUTTERPI_SRC_EVENT_LOOP_H
312

413
#include "util/refcounting.h"
514

@@ -49,4 +58,4 @@ struct evloop *evthread_get_evloop(struct evthread *thread);
4958

5059
void evthread_join(struct evthread *thread);
5160

52-
#endif // _EVENT_LOOP_H
61+
#endif // _FLUTTERPI_SRC_EVENT_LOOP_H

src/filesystem_layout.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Copyright (c) 2022, Hannes Winkler <[email protected]>
88
*/
99

10-
#ifndef _FLUTTERPI_INCLUDE_FILESYSTEM_LAYOUT_H
11-
#define _FLUTTERPI_INCLUDE_FILESYSTEM_LAYOUT_H
10+
#ifndef _FLUTTERPI_SRC_FILESYSTEM_LAYOUT_H
11+
#define _FLUTTERPI_SRC_FILESYSTEM_LAYOUT_H
1212

1313
#include "flutter-pi.h"
1414

@@ -30,4 +30,4 @@ void flutter_paths_free(struct flutter_paths *paths);
3030
struct flutter_paths *fs_layout_flutterpi_resolve(const char *app_bundle_path, enum flutter_runtime_mode runtime_mode);
3131
struct flutter_paths *fs_layout_metaflutter_resolve(const char *app_bundle_path, enum flutter_runtime_mode runtime_mode);
3232

33-
#endif // _FLUTTERPI_INCLUDE_FILESYSTEM_LAYOUT_H
33+
#endif // _FLUTTERPI_SRC_FILESYSTEM_LAYOUT_H

src/flutter-pi.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
#ifndef _FLUTTERPI_H
2-
#define _FLUTTERPI_H
1+
// SPDX-License-Identifier: MIT
2+
/*
3+
* Flutter-Pi main header
4+
*
5+
* Copyright (c) 2023, Hannes Winkler <[email protected]>
6+
*/
7+
8+
#ifndef _FLUTTERPI_SRC_FLUTTERPI_H
9+
#define _FLUTTERPI_SRC_FLUTTERPI_H
310

411
#define LOG_FLUTTERPI_ERROR(...) fprintf(stderr, "[flutter-pi] " __VA_ARGS__)
512

@@ -157,4 +164,4 @@ void flutterpi_trace_event_begin(struct flutterpi *flutterpi, const char *name);
157164

158165
void flutterpi_trace_event_end(struct flutterpi *flutterpi, const char *name);
159166

160-
#endif
167+
#endif // _FLUTTERPI_SRC_FLUTTERPI_H

src/frame_scheduler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Copyright (c) 2022, Hannes Winkler <[email protected]>
88
*/
99

10-
#ifndef _FLUTTERPI_INCLUDE_FRAME_SCHEDULER_H
11-
#define _FLUTTERPI_INCLUDE_FRAME_SCHEDULER_H
10+
#ifndef _FLUTTERPI_SRC_FRAME_SCHEDULER_H
11+
#define _FLUTTERPI_SRC_FRAME_SCHEDULER_H
1212

1313
#include "util/collection.h"
1414
#include "util/refcounting.h"
@@ -80,4 +80,4 @@ void frame_scheduler_on_fb_released(struct frame_scheduler *scheduler, bool has_
8080
*/
8181
void frame_scheduler_present_frame(struct frame_scheduler *scheduler, void_callback_t present_cb, void *userdata, void_callback_t cancel_cb);
8282

83-
#endif // _FLUTTERPI_INCLUDE_FRAME_SCHEDULER_H
83+
#endif // _FLUTTERPI_SRC_FRAME_SCHEDULER_H

0 commit comments

Comments
 (0)