Skip to content

Commit

Permalink
Added header with SPDX lines for each source/heade rfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BDeliers committed Sep 1, 2023
1 parent 82f6063 commit aa94eaa
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ My changes:
- Renamed 'udata' variables in code to more meaningful
- Added sample source files
- **basic** Is a basic example, to log to stdout and to a file
- **Callbacks** Is a minimal example using callbacks with different log levels
- **callbacks** Is a minimal example using callbacks with different log levels
- **threading** Shows a threading example


Expand Down
32 changes: 10 additions & 22 deletions src/log.c
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
/*
* Copyright (c) 2020 rxi
* Copyright (c) 2023 BDeliers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/**
* @file log.c
* @brief Log module main source file
*
* SPDX-FileCopyrightText: 2020 rxd
* SPDX-FileCopyrightText: 2023 BDeliers
*
* SPDX-License-Identifier: MIT
*
*/

#include "log.h"

Expand Down
15 changes: 9 additions & 6 deletions src/log.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/**
* Copyright (c) 2020 rxi
* Copyright (c) 2023 BDeliers
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See `log.c` for details.
*/
* @file log.c
* @brief Log module main header file
*
* SPDX-FileCopyrightText: 2020 rxd
* SPDX-FileCopyrightText: 2023 BDeliers
*
* SPDX-License-Identifier: MIT
*
*/

#ifndef LOG_H
#define LOG_H
Expand Down
10 changes: 10 additions & 0 deletions src/log_conf.sample.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* @file log.c
* @brief Log module settings file
*
* SPDX-FileCopyrightText: 2023 BDeliers
*
* SPDX-License-Identifier: MIT
*
*/

#ifndef LOG_CONF_H
#define LOG_CONF_H

Expand Down

0 comments on commit aa94eaa

Please sign in to comment.