Skip to content

Commit dfeae9b

Browse files
committed
Initial commit, of sorts
1 parent 432a645 commit dfeae9b

20 files changed

+98
-60
lines changed

foo_listenbrainz/foo_listenbrainz.h

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.28307.757
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "foo_listenbrainz", "foo_listenbrainz\foo_listenbrainz.vcxproj", "{95C8AB42-DB6C-4B30-81EB-35BC2E5CDCD6}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "foo_maloja", "foo_maloja\foo_maloja.vcxproj", "{95C8AB42-DB6C-4B30-81EB-35BC2E5CDCD6}"
77
EndProject
88
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jansson", "vendor\jansson.vcxproj", "{0FA012FD-5F73-4355-AA30-C85E3AE90A97}"
99
EndProject

foo_maloja/afxres.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#include "stdafx.h"
2+
#ifndef _AFXRES_H
3+
#define _AFXRES_H
4+
#if __GNUC__ >= 3
5+
#pragma GCC system_header
6+
#endif
7+
8+
#ifdef __cplusplus
9+
extern "C" {
10+
#endif
11+
12+
#ifndef _WINDOWS_H
13+
#include <windows.h>
14+
#endif
15+
16+
/* IDC_STATIC is documented in winuser.h, but not defined. */
17+
#ifndef IDC_STATIC
18+
#define IDC_STATIC (-1)
19+
#endif
20+
21+
#ifdef __cplusplus
22+
}
23+
#endif
24+
#endif
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "stdafx.h"
2-
#include "foo_listenbrainz.h"
2+
#include "foo_maloja.h"
33

44
DECLARE_COMPONENT_VERSION(COMPONENT_TITLE, COMPONENT_VERSION, COMPONENT_INFO);
55

foo_maloja/foo_maloja.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#pragma once
2+
3+
#define COMPONENT_TITLE "Maloja Scrobbler"
4+
#define COMPONENT_NAME "foo_maloja"
5+
#define COMPONENT_VERSION "0.0.1"
6+
#define COMPONENT_INFO "https://github.com/ICTman1076/foo_maloja\n" "(C) 2017-2019 Volodymyr Medvid, (C) 2020 ICTman1076"
7+
#define COMPONENT_DLL COMPONENT_NAME ".dll"
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
<PropertyGroup Label="UserMacros" />
4747
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4848
<LinkIncremental>true</LinkIncremental>
49-
<IncludePath>$(SolutionDir)vendor;$(SolutionDir)vendor\jansson\src;$(SolutionDir)vendor\foobar2000_sdk;$(SolutionDir)vendor\foobar2000_sdk\pfc;$(SolutionDir)vendor\foobar2000_sdk\wtl\Include;$(SolutionDir)vendor\foobar2000_sdk\foobar2000;$(VC_IncludePath);$(WindowsSdk_71A_IncludePath)</IncludePath>
49+
<IncludePath>$(SolutionDir)vendor\wtl\Include;$(SolutionDir)vendor;$(SolutionDir)vendor\jansson\src;$(SolutionDir)vendor\foobar2000_sdk;$(SolutionDir)vendor\foobar2000_sdk\pfc;$(SolutionDir)vendor\foobar2000_sdk\wtl\Include;$(SolutionDir)vendor\foobar2000_sdk\foobar2000;$(VC_IncludePath);$(WindowsSdk_71A_IncludePath)</IncludePath>
5050
</PropertyGroup>
5151
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
5252
<LinkIncremental>false</LinkIncremental>
53-
<IncludePath>$(SolutionDir)vendor;$(SolutionDir)vendor\jansson\src;$(SolutionDir)vendor\foobar2000_sdk;$(SolutionDir)vendor\foobar2000_sdk\pfc;$(SolutionDir)vendor\foobar2000_sdk\wtl\Include;$(SolutionDir)vendor\foobar2000_sdk\foobar2000;$(VC_IncludePath);$(WindowsSdk_71A_IncludePath)</IncludePath>
53+
<IncludePath>$(SolutionDir)vendor\wtl\Include;$(SolutionDir)vendor;$(SolutionDir)vendor\jansson\src;$(SolutionDir)vendor\foobar2000_sdk;$(SolutionDir)vendor\foobar2000_sdk\pfc;$(SolutionDir)vendor\foobar2000_sdk\wtl\Include;$(SolutionDir)vendor\foobar2000_sdk\foobar2000;$(VC_IncludePath);$(WindowsSdk_71A_IncludePath)</IncludePath>
5454
</PropertyGroup>
5555
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
5656
<ClCompile>
@@ -67,7 +67,7 @@
6767
</Link>
6868
<PostBuildEvent>
6969
<Command>if not exist "$(UserComponentsDir)\$(ProjectName)" mkdir "$(UserComponentsDir)\$(ProjectName)"
70-
copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\$(TargetFileName)"</Command>
70+
copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\foo_maloja.dll"</Command>
7171
</PostBuildEvent>
7272
</ItemDefinitionGroup>
7373
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -89,11 +89,11 @@ copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\$(TargetFileName)"
8989
</Link>
9090
<PostBuildEvent>
9191
<Command>if not exist "$(UserComponentsDir)\$(ProjectName)" mkdir "$(UserComponentsDir)\$(ProjectName)"
92-
copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\$(TargetFileName)"</Command>
92+
copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\foo_maloja.dll"</Command>
9393
</PostBuildEvent>
9494
</ItemDefinitionGroup>
9595
<ItemGroup>
96-
<ClInclude Include="foo_listenbrainz.h" />
96+
<ClInclude Include="foo_maloja.h" />
9797
<ClInclude Include="lbz_http_client.h" />
9898
<ClInclude Include="lbz_listen.h" />
9999
<ClInclude Include="lbz_preferences.h" />
@@ -102,12 +102,13 @@ copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\$(TargetFileName)"
102102
<ClInclude Include="stdafx.h" />
103103
</ItemGroup>
104104
<ItemGroup>
105-
<ClCompile Include="foo_listenbrainz.cpp" />
105+
<ClCompile Include="foo_maloja.cpp" />
106106
<ClCompile Include="lbz_http_client.cpp" />
107107
<ClCompile Include="lbz_listen.cpp" />
108108
<ClCompile Include="lbz_play_callback.cpp" />
109109
<ClCompile Include="lbz_preferences.cpp" />
110110
<ClCompile Include="lbz_timer.cpp" />
111+
<ClCompile Include="afxres.h" />
111112
<ClCompile Include="stdafx.cpp">
112113
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
113114
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
@@ -134,7 +135,7 @@ copy /y "$(TargetPath)" "$(UserComponentsDir)\$(ProjectName)\$(TargetFileName)"
134135
</ProjectReference>
135136
</ItemGroup>
136137
<ItemGroup>
137-
<ResourceCompile Include="foo_listenbrainz.rc" />
138+
<ResourceCompile Include="foo_maloja.rc" />
138139
</ItemGroup>
139140
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
140141
<ImportGroup Label="ExtensionTargets">

foo_listenbrainz/foo_listenbrainz.vcxproj.filters renamed to foo_maloja/foo_maloja.vcxproj.filters

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
<ClInclude Include="stdafx.h">
1919
<Filter>Header Files</Filter>
2020
</ClInclude>
21-
<ClInclude Include="foo_listenbrainz.h">
22-
<Filter>Header Files</Filter>
23-
</ClInclude>
2421
<ClInclude Include="lbz_http_client.h">
2522
<Filter>Header Files</Filter>
2623
</ClInclude>
@@ -36,14 +33,14 @@
3633
<ClInclude Include="resource.h">
3734
<Filter>Header Files</Filter>
3835
</ClInclude>
36+
<ClInclude Include="foo_maloja.h">
37+
<Filter>Header Files</Filter>
38+
</ClInclude>
3939
</ItemGroup>
4040
<ItemGroup>
4141
<ClCompile Include="stdafx.cpp">
4242
<Filter>Source Files</Filter>
4343
</ClCompile>
44-
<ClCompile Include="foo_listenbrainz.cpp">
45-
<Filter>Source Files</Filter>
46-
</ClCompile>
4744
<ClCompile Include="lbz_http_client.cpp">
4845
<Filter>Source Files</Filter>
4946
</ClCompile>
@@ -59,9 +56,15 @@
5956
<ClCompile Include="lbz_timer.cpp">
6057
<Filter>Source Files</Filter>
6158
</ClCompile>
59+
<ClCompile Include="afxres.h">
60+
<Filter>Header Files</Filter>
61+
</ClCompile>
62+
<ClCompile Include="foo_maloja.cpp">
63+
<Filter>Source Files</Filter>
64+
</ClCompile>
6265
</ItemGroup>
6366
<ItemGroup>
64-
<ResourceCompile Include="foo_listenbrainz.rc">
67+
<ResourceCompile Include="foo_maloja.rc">
6568
<Filter>Resource Files</Filter>
6669
</ResourceCompile>
6770
</ItemGroup>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#define HTTP_USER_AGENT COMPONENT_NAME "/" COMPONENT_VERSION
66

7-
using namespace foo_listenbrainz;
7+
using namespace foo_maloja;
88

99
void lbz_http_client::post_url(const char *host, const char *object,
1010
const char *header, const char *data, abort_callback &callback) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "pfc.h"
66
#include "SDK/foobar2000.h"
77

8-
namespace foo_listenbrainz {
8+
namespace foo_maloja {
99
class lbz_http_client
1010
{
1111
public:

0 commit comments

Comments
 (0)