Przeglądaj źródła

Merge pull request #177 from OpenHMD/tidy-headers

Tidy headers
TheOnlyJoey 6 lat temu
rodzic
commit
63be42916f

+ 5 - 4
src/drv_android/android.c

@@ -1,13 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2015, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Copyright (C) 2015 Joey Ferwerda
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Android Driver */
 
+
 #include "android.h"
 
 #ifdef __ANDROID__

+ 4 - 4
src/drv_android/android.h

@@ -1,9 +1,9 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2015, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Copyright (C) 2015 Joey Ferwerda
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Android Driver */

+ 4 - 3
src/drv_deepoon/deepoon.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Deepoon Driver - HID/USB Driver Implementation */
 
+
 #include <stdlib.h>
 #include <hidapi.h>
 #include <string.h>

+ 4 - 3
src/drv_deepoon/deepoon.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Deepoon Driver Internal Interface */
 
+
 #ifndef DEEPOON_H
 #define DEEPOON_H
 

+ 4 - 3
src/drv_deepoon/packet.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Deepoon Driver - Packet Decoding and Utilities */
 
+
 #include <stdio.h>
 #include "deepoon.h"
 

+ 5 - 3
src/drv_dummy/dummy.c

@@ -1,12 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2015, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Dummy Driver */
 
+
 #include <string.h>
 #include "../openhmdi.h"
 

+ 5 - 4
src/drv_external/external.c

@@ -1,13 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2015, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Copyright (C) 2015 Joey Ferwerda
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* External Driver */
 
+
 #include "../openhmdi.h"
 #include "string.h"
 

+ 11 - 0
src/drv_htc_vive/magic.h

@@ -1,3 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2013, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* HTC Vive Driver */
+
+
 static const unsigned char vive_magic_power_on[64] = {
 	0x04, 0x78, 0x29, 0x38, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01,
 	0xa8, 0x0d, 0x76, 0x00, 0x40, 0xfc, 0x01, 0x05, 0xfa, 0xec, 0xd1, 0x6d, 0x00,

+ 11 - 0
src/drv_htc_vive/packet.c

@@ -1,3 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2013, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* HTC Vive Driver */
+
+
 #include "vive.h"
 
 #include "../ext_deps/miniz.h"

+ 5 - 3
src/drv_htc_vive/vive.c

@@ -1,12 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2013, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* HTC Vive Driver */
 
+
 #define FEATURE_BUFFER_SIZE 256
 
 #define HTC_ID                   0x0bb4

+ 11 - 0
src/drv_htc_vive/vive.h

@@ -1,3 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2013, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* HTC Vive Driver */
+
+
 #ifndef VIVE_H
 #define VIVE_H
 

+ 5 - 5
src/drv_nolo/nolo.c

@@ -1,15 +1,15 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2013, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Copyright (C) 2017 Joey Ferwerda.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
- *
  * Original implementation by: Yann Vernier.
  */
 
 /* NOLO VR- HID/USB Driver Implementation */
 
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>

+ 4 - 2
src/drv_nolo/nolo.h

@@ -1,11 +1,13 @@
+// Copyright 2017, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2017 Joey Ferwerda.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
+ * Original implementation by: Yann Vernier.
  */
 
 /* NOLO VR - Internal Interface */
 
+
 #ifndef NOLODRIVER_H
 #define NOLODRIVER_H
 

+ 4 - 2
src/drv_nolo/packet.c

@@ -1,11 +1,13 @@
+// Copyright 2017, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2017 Joey Ferwerda.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
+ * Original implementation by: Yann Vernier.
  */
 
 /* NOLO VR - Packet Decoding and Utilities */
 
+
 #include <stdio.h>
 #include "nolo.h"
 

+ 4 - 3
src/drv_oculus_rift/packet.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Oculus Rift Driver - Packet Decoding and Utilities */
 
+
 #include <stdio.h>
 #include "rift.h"
 

+ 4 - 3
src/drv_oculus_rift/rift.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Oculus Rift Driver - HID/USB Driver Implementation */
 
+
 #include <stdlib.h>
 #include <hidapi.h>
 #include <string.h>

+ 4 - 3
src/drv_oculus_rift/rift.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Oculus Rift Driver Internal Interface */
 
+
 #ifndef RIFT_H
 #define RIFT_H
 

+ 9 - 0
src/drv_psvr/packet.c

@@ -1,3 +1,12 @@
+// Copyright 2016, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Sony PSVR Driver - Packet reading code. */
+
+
 #include "psvr.h"
 
 #ifdef _MSC_VER

+ 5 - 3
src/drv_psvr/psvr.c

@@ -1,12 +1,14 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// Copyright 2016, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Sony PSVR Driver */
 
+
 #define FEATURE_BUFFER_SIZE 256
 
 #define TICK_LEN (1.0f / 1000000.0f) // 1 MHz ticks

+ 9 - 0
src/drv_psvr/psvr.h

@@ -1,3 +1,12 @@
+// Copyright 2016, Joey Ferwerda.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Sony PSVR Driver */
+
+
 #ifndef PSVR_H
 #define PSVR_H
 

+ 9 - 0
src/drv_wmr/packet.c

@@ -1,3 +1,12 @@
+// Copyright 2018, Philipp Zabel.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Windows Mixed Reality Driver */
+
+
 #include "wmr.h"
 
 #ifdef _MSC_VER

+ 3 - 2
src/drv_wmr/wmr.c

@@ -1,11 +1,12 @@
+// Copyright 2018, Philipp Zabel.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2018 Philipp Zabel.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Windows Mixed Reality Driver */
 
+
 #define FEATURE_BUFFER_SIZE 497
 
 #define TICK_LEN (1.0f / 10000000.0f) // 1000 Hz ticks

+ 9 - 0
src/drv_wmr/wmr.h

@@ -1,3 +1,12 @@
+// Copyright 2018, Philipp Zabel.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Windows Mixed Reality Driver */
+
+
 #ifndef WMR_H
 #define WMR_H
 

+ 4 - 3
src/fusion.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Sensor Fusion Implementation */
 
+
 #include <string.h>
 #include "openhmdi.h"
 

+ 4 - 3
src/fusion.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Sensor Fusion */
 
+
 #ifndef FUSION_H
 #define FUSION_H
 

+ 9 - 1
src/hid.h

@@ -1,3 +1,12 @@
+// Copyright 2018, Philipp Zabel.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Hid helper. */
+
+
 static inline char* _hid_to_unix_path(char* path)
 {
 	char bus [5];
@@ -12,4 +21,3 @@ static inline char* _hid_to_unix_path(char* path)
 		(int)strtol(dev, NULL, 16));
 	return result;
 }
-

+ 4 - 3
src/log.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Logging and Error Handling */
 
+
 #ifndef LOG_H
 #define LOG_H
 

+ 4 - 3
src/omath.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Math Code Implementation */
 
+
 #include <string.h>
 #include "openhmdi.h"
 

+ 4 - 3
src/omath.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Math */
 
+
 #ifndef OMATH_H
 #define OMATH_H
 

+ 4 - 3
src/openhmd.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Main Lib Implementation */
 
+
 #include "openhmdi.h"
 #include "shaders.h"
 #include <stdlib.h>

+ 4 - 3
src/openhmdi.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Internal interface */
 
+
 #ifndef OPENHMDI_H
 #define OPENHMDI_H
 

+ 4 - 3
src/platform-posix.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Platform Specific Functions, Unix/Posix Implementation */
 
+
 #if defined(__unix__) || defined(__unix) || defined(__APPLE__) || defined(__MACH__)
 
 #ifdef __CYGWIN__

+ 4 - 3
src/platform-win32.c

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Platform Specific Functions, Win32 Implementation */
 
+
 #ifdef _WIN32
 
 #define WIN32_LEAN_AND_MEAN

+ 4 - 3
src/platform.h

@@ -1,12 +1,13 @@
+// Copyright 2013, Fredrik Hultin.
+// Copyright 2013, Jakob Bornecrantz.
+// SPDX-License-Identifier: BSL-1.0
 /*
  * OpenHMD - Free and Open Source API and drivers for immersive technology.
- * Copyright (C) 2013 Fredrik Hultin.
- * Copyright (C) 2013 Jakob Bornecrantz.
- * Distributed under the Boost 1.0 licence, see LICENSE for full text.
  */
 
 /* Internal Interface for Platform Specific Functions */
 
+
 #ifndef PLATFORM_H
 #define PLATFORM_H
 

+ 10 - 0
src/shaders.c

@@ -1,3 +1,13 @@
+// Copyright 2017, James Sarrett.
+// Copyright 2017, Bastiaan Olij.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Shaders */
+
+
 #include "shaders.h"
 
 const char * const distortion_vert =

+ 10 - 0
src/shaders.h

@@ -1,3 +1,13 @@
+// Copyright 2017, James Sarrett.
+// Copyright 2017, Bastiaan Olij.
+// SPDX-License-Identifier: BSL-1.0
+/*
+ * OpenHMD - Free and Open Source API and drivers for immersive technology.
+ */
+
+/* Shaders */
+
+
 #ifndef SHADERS_H
 #define SHADERS_H