From 8ab6ff7829b2497041cf68fcc0689492b3636a7a Mon Sep 17 00:00:00 2001 From: moozzyk Date: Mon, 29 Sep 2014 14:55:17 -0700 Subject: [PATCH] CopyRighteous - adding copyright headers, minor cleanup --- include/signalrclient/_exports.h | 9 +++------ include/signalrclient/connection.h | 5 +++++ include/signalrclient/trace_level.h | 4 ++++ include/signalrclient/transport_type.h | 4 ++++ src/signalrclient/connection.cpp | 3 +++ src/signalrclient/constants.h | 3 +++ src/signalrclient/dllmain.cpp | 18 ------------------ src/signalrclient/stdafx.cpp | 3 +++ src/signalrclient/stdafx.h | 3 +++ src/signalrclient/targetver.h | 3 +++ src/signalrclient/url_builder.h | 5 +++++ src/signalrclientdll/dllmain.cpp | 4 +++- src/signalrclientdll/stdafx.h | 14 ++++---------- src/signalrclientdll/targetver.h | 8 +++----- test/signalrclienttests/signalrclienttests.cpp | 3 +++ test/signalrclienttests/stdafx.cpp | 3 +++ test/signalrclienttests/stdafx.h | 3 +++ test/signalrclienttests/targetver.h | 8 +++----- test/signalrclienttests/url_builder_tests.cpp | 3 +++ 19 files changed, 61 insertions(+), 45 deletions(-) delete mode 100644 src/signalrclient/dllmain.cpp diff --git a/include/signalrclient/_exports.h b/include/signalrclient/_exports.h index bbf25a5..b67a8df 100644 --- a/include/signalrclient/_exports.h +++ b/include/signalrclient/_exports.h @@ -1,11 +1,8 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once -// The following ifdef block is the standard way of creating macros which make exporting -// from a DLL simpler. All files within this DLL are compiled with the SIGNALRCLIENT_EXPORTS -// symbol defined on the command line. This symbol should not be defined on any project -// that uses this DLL. This way any other project whose source files include this file see -// SIGNALRCLIENT_API functions as being imported from a DLL, whereas this DLL sees symbols -// defined with this macro as being exported. #ifdef SIGNALRCLIENT_EXPORTS #define SIGNALRCLIENT_API __declspec(dllexport) #else diff --git a/include/signalrclient/connection.h b/include/signalrclient/connection.h index a9636b3..0319337 100644 --- a/include/signalrclient/connection.h +++ b/include/signalrclient/connection.h @@ -1,3 +1,8 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +#pragma once + #include #include "_exports.h" #include "transport_type.h" diff --git a/include/signalrclient/trace_level.h b/include/signalrclient/trace_level.h index 928f0c7..a7465c1 100644 --- a/include/signalrclient/trace_level.h +++ b/include/signalrclient/trace_level.h @@ -1,3 +1,7 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +#pragma once namespace signalr { diff --git a/include/signalrclient/transport_type.h b/include/signalrclient/transport_type.h index e5cf789..33ae3de 100644 --- a/include/signalrclient/transport_type.h +++ b/include/signalrclient/transport_type.h @@ -1,3 +1,7 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +#pragma once namespace signalr { diff --git a/src/signalrclient/connection.cpp b/src/signalrclient/connection.cpp index 31f6173..4a43098 100644 --- a/src/signalrclient/connection.cpp +++ b/src/signalrclient/connection.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" #include "signalrclient\connection.h" diff --git a/src/signalrclient/constants.h b/src/signalrclient/constants.h index 3c5c98c..d8195ad 100644 --- a/src/signalrclient/constants.h +++ b/src/signalrclient/constants.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once #include "cpprest\basic_types.h" diff --git a/src/signalrclient/dllmain.cpp b/src/signalrclient/dllmain.cpp deleted file mode 100644 index 239df94..0000000 --- a/src/signalrclient/dllmain.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "stdafx.h" - -BOOL APIENTRY DllMain( HMODULE , - DWORD ul_reason_for_call, - LPVOID - ) -{ - switch (ul_reason_for_call) - { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - diff --git a/src/signalrclient/stdafx.cpp b/src/signalrclient/stdafx.cpp index 1577c4e..ac08291 100644 --- a/src/signalrclient/stdafx.cpp +++ b/src/signalrclient/stdafx.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" \ No newline at end of file diff --git a/src/signalrclient/stdafx.h b/src/signalrclient/stdafx.h index 89d44b3..636da3a 100644 --- a/src/signalrclient/stdafx.h +++ b/src/signalrclient/stdafx.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once #include "targetver.h" diff --git a/src/signalrclient/targetver.h b/src/signalrclient/targetver.h index 2b26ce2..0bf163f 100644 --- a/src/signalrclient/targetver.h +++ b/src/signalrclient/targetver.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once #include diff --git a/src/signalrclient/url_builder.h b/src/signalrclient/url_builder.h index fb9983d..b21493d 100644 --- a/src/signalrclient/url_builder.h +++ b/src/signalrclient/url_builder.h @@ -1,3 +1,8 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +#pragma once + #include #include "constants.h" diff --git a/src/signalrclientdll/dllmain.cpp b/src/signalrclientdll/dllmain.cpp index 878965e..138e9b3 100644 --- a/src/signalrclientdll/dllmain.cpp +++ b/src/signalrclientdll/dllmain.cpp @@ -1,4 +1,6 @@ -// dllmain.cpp : Defines the entry point for the DLL application. +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, diff --git a/src/signalrclientdll/stdafx.h b/src/signalrclientdll/stdafx.h index 677e68a..636da3a 100644 --- a/src/signalrclientdll/stdafx.h +++ b/src/signalrclientdll/stdafx.h @@ -1,16 +1,10 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #pragma once #include "targetver.h" -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: +#define WIN32_LEAN_AND_MEAN + #include - - - -// TODO: reference additional headers your program requires here diff --git a/src/signalrclientdll/targetver.h b/src/signalrclientdll/targetver.h index 90e767b..0bf163f 100644 --- a/src/signalrclientdll/targetver.h +++ b/src/signalrclientdll/targetver.h @@ -1,8 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. - #include diff --git a/test/signalrclienttests/signalrclienttests.cpp b/test/signalrclienttests/signalrclienttests.cpp index c7e42f1..becef41 100644 --- a/test/signalrclienttests/signalrclienttests.cpp +++ b/test/signalrclienttests/signalrclienttests.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) diff --git a/test/signalrclienttests/stdafx.cpp b/test/signalrclienttests/stdafx.cpp index a27b824..9611b52 100644 --- a/test/signalrclienttests/stdafx.cpp +++ b/test/signalrclienttests/stdafx.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" diff --git a/test/signalrclienttests/stdafx.h b/test/signalrclienttests/stdafx.h index 7355d43..374bdb5 100644 --- a/test/signalrclienttests/stdafx.h +++ b/test/signalrclienttests/stdafx.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once #include "targetver.h" diff --git a/test/signalrclienttests/targetver.h b/test/signalrclienttests/targetver.h index 90e767b..0bf163f 100644 --- a/test/signalrclienttests/targetver.h +++ b/test/signalrclienttests/targetver.h @@ -1,8 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #pragma once -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. - #include diff --git a/test/signalrclienttests/url_builder_tests.cpp b/test/signalrclienttests/url_builder_tests.cpp index 42175cc..cb61d7b 100644 --- a/test/signalrclienttests/url_builder_tests.cpp +++ b/test/signalrclienttests/url_builder_tests.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + #include "stdafx.h" #include "url_builder.h"