Skip to content

Commit cdac8d5

Browse files
committed
update file headers
1 parent 37ebf6d commit cdac8d5

File tree

12 files changed

+64
-39
lines changed

12 files changed

+64
-39
lines changed

auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
#define _POSIX_C_SOURCE 200809L
77

8+
#include <stdio.h>
89
#include <unistd.h>
910
#include <pwd.h>
11+
#include <fcntl.h>
1012
#include <sys/wait.h>
11-
#include <glib-unix.h>
12-
#include <glib/gstdio.h>
1313
#include <security/pam_appl.h>
1414

1515
#include "auth.h"

gtklock.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#define _POSIX_C_SOURCE 200809L
1+
// gtklock
2+
// Copyright (c) 2022 Kenny Levinsen, Jovan Lanik
3+
4+
// gtklock application
25

36
#include <gtk/gtk.h>
47

include/auth.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
// PAM Authentication
55

6+
#pragma once
7+
68
#include <glib.h>
79

810
enum pwcheck {

include/gtklock.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
#ifndef _GTKGREET_H
2-
#define _GTKGREET_H
1+
// gtklock
2+
// Copyright (c) 2022 Kenny Levinsen, Jovan Lanik
3+
4+
// gtklock application
5+
6+
#pragma once
37

48
#include <gtk/gtk.h>
59

6-
// Defined in window.h
710
struct Window;
811

912
struct GtkLock {
@@ -31,4 +34,3 @@ struct GtkLock *create_gtklock(void);
3134
void gtklock_activate(struct GtkLock *gtklock);
3235
void gtklock_destroy(struct GtkLock *gtklock);
3336

34-
#endif

include/input-inhibitor.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// gtklock
22
// Copyright (c) 2022 Jovan Lanik
33

4+
// wlr-input-inhibitor
5+
6+
#pragma once
7+
48
void input_inhibitor_get(void);
59
void input_inhibitor_destroy(void);
610

include/module.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
// Module support
55

6+
#pragma once
7+
68
#include <gmodule.h>
79

810
#include "gtklock.h"

include/window.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
#ifndef _WINDOW_H
2-
#define _WINDOW_H
1+
// gtklock
2+
// Copyright (c) 2022 Kenny Levinsen, Jovan Lanik
3+
4+
// Window functions
5+
6+
#pragma once
37

48
#include <gtk/gtk.h>
59

@@ -27,4 +31,3 @@ void window_configure(struct Window *win);
2731
void window_update_clock(struct Window *ctx);
2832
void window_swap_focus(struct Window *win, struct Window *old);
2933

30-
#endif

include/xdg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// gtklock
2-
// Copyright (c) 2022 Jovan Lanik
2+
// Copyright (c) 2022 Louis DeLosSantos, Jovan Lanik
33

44
// XDG functions
55

input-inhibitor.c

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
1-
/*
2-
3-
MIT License
1+
// gtklock
2+
// Copyright (c) 2022 William Wold, Jovan Lanik
43

5-
Copyright (c) 2020 William Wold
6-
7-
Permission is hereby granted, free of charge, to any person obtaining a copy
8-
of this software and associated documentation files (the "Software"), to deal
9-
in the Software without restriction, including without limitation the rights
10-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11-
copies of the Software, and to permit persons to whom the Software is
12-
furnished to do so, subject to the following conditions:
13-
14-
The above copyright notice and this permission notice shall be included in all
15-
copies or substantial portions of the Software.
16-
17-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23-
SOFTWARE.
24-
25-
*/
4+
// wlr-input-inhibitor
265

276
#include <gdk/gdkwayland.h>
287

@@ -78,3 +57,29 @@ void input_inhibitor_destroy(void) {
7857
zwlr_input_inhibit_manager_v1_destroy(input_inhibit_manager_global);
7958
}
8059

60+
/*
61+
62+
MIT License
63+
64+
Copyright (c) 2020 William Wold
65+
66+
Permission is hereby granted, free of charge, to any person obtaining a copy
67+
of this software and associated documentation files (the "Software"), to deal
68+
in the Software without restriction, including without limitation the rights
69+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
70+
copies of the Software, and to permit persons to whom the Software is
71+
furnished to do so, subject to the following conditions:
72+
73+
The above copyright notice and this permission notice shall be included in all
74+
copies or substantial portions of the Software.
75+
76+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
78+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
80+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
81+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
82+
SOFTWARE.
83+
84+
*/
85+

source.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#define _POSIX_C_SOURCE 200809L
1+
// gtklock
2+
// Copyright (c) 2022 Kenny Levinsen, Jovan Lanik
23

34
#include <assert.h>
45
#include <sys/wait.h>
56
#include <gtk/gtk.h>
6-
#include <stdio.h>
77

88
#include "auth.h"
99
#include "window.h"
@@ -176,3 +176,4 @@ int main(int argc, char **argv) {
176176
gtklock_destroy(gtklock);
177177
return status;
178178
}
179+

0 commit comments

Comments
 (0)