Forráskód Böngészése

Tidy headers in drivers

Jakob Bornecrantz 6 éve
szülő
commit
179553d301

+ 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