Skip to content

Commit dd71153

Browse files
committed
Initial commit
0 parents  commit dd71153

File tree

112 files changed

+19310
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+19310
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
Cargo.lock

Cargo.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "aimp"
3+
version = "0.1.0"
4+
authors = ["Arsenii Lyashenko <[email protected]>"]
5+
edition = "2018"
6+
7+
[workspace]
8+
members = [
9+
"aimp-sys",
10+
"aimp-sys/tests/check_dll_export"
11+
]
12+
13+
[dependencies]
14+
sys = { path = "aimp-sys", package = "aimp-sys" }

aimp-sys/.clang-format

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
BasedOnStyle: LLVM
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveAssignments: false
5+
AlignOperands: true
6+
AllowAllArgumentsOnNextLine: false
7+
AllowAllConstructorInitializersOnNextLine: false
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AllowShortBlocksOnASingleLine: Always
10+
AllowShortCaseLabelsOnASingleLine: false
11+
AllowShortFunctionsOnASingleLine: All
12+
AllowShortIfStatementsOnASingleLine: Always
13+
AllowShortLambdasOnASingleLine: All
14+
AllowShortLoopsOnASingleLine: true
15+
AlwaysBreakAfterReturnType: None
16+
AlwaysBreakTemplateDeclarations: Yes
17+
BreakBeforeBraces: Custom
18+
BraceWrapping:
19+
AfterCaseLabel: false
20+
AfterClass: false
21+
AfterControlStatement: false
22+
AfterEnum: false
23+
AfterFunction: false
24+
AfterNamespace: false
25+
AfterUnion: false
26+
BeforeCatch: false
27+
BeforeElse: false
28+
IndentBraces: false
29+
SplitEmptyFunction: false
30+
SplitEmptyRecord: true
31+
BreakBeforeBinaryOperators: None
32+
BreakBeforeTernaryOperators: true
33+
BreakConstructorInitializers: BeforeColon
34+
BreakInheritanceList: BeforeColon
35+
ColumnLimit: 0
36+
CompactNamespaces: false
37+
ContinuationIndentWidth: 8
38+
IndentCaseLabels: true
39+
IndentPPDirectives: None
40+
IndentWidth: 4
41+
KeepEmptyLinesAtTheStartOfBlocks: true
42+
MaxEmptyLinesToKeep: 2
43+
NamespaceIndentation: All
44+
ObjCSpaceAfterProperty: false
45+
ObjCSpaceBeforeProtocolList: true
46+
PointerAlignment: Right
47+
ReflowComments: false
48+
SpaceAfterCStyleCast: true
49+
SpaceAfterLogicalNot: false
50+
SpaceAfterTemplateKeyword: false
51+
SpaceBeforeAssignmentOperators: true
52+
SpaceBeforeCpp11BracedList: false
53+
SpaceBeforeCtorInitializerColon: true
54+
SpaceBeforeInheritanceColon: true
55+
SpaceBeforeParens: ControlStatements
56+
SpaceBeforeRangeBasedForLoopColon: true
57+
SpaceInEmptyParentheses: false
58+
SpacesBeforeTrailingComments: 0
59+
SpacesInAngles: false
60+
SpacesInCStyleCastParentheses: false
61+
SpacesInContainerLiterals: false
62+
SpacesInParentheses: false
63+
SpacesInSquareBrackets: false
64+
TabWidth: 4
65+
UseTab: Never
66+
SortIncludes: false

aimp-sys/Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "aimp-sys"
3+
version = "0.1.0"
4+
authors = ["Arsenii Lyashenko <[email protected]>"]
5+
edition = "2018"
6+
7+
[build-dependencies]
8+
bindgen = "0.53"
9+
cc = "1.0.54"
10+
clang = { version = "0.23.0", features = ["runtime"] }

aimp-sys/aimp_sdk.hpp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#define _UNICODE
2+
#include <tchar.h>
3+
4+
#include <apiActions.h>
5+
#include <apiAlbumArt.h>
6+
#include <apiCore.h>
7+
#include <apiDecoders.h>
8+
#include <apiFileManager.h>
9+
#include <apiGUI.h>
10+
#include <apiInternet.h>
11+
#include <apiLyrics.h>
12+
#include <apiMUI.h>
13+
#include <apiMenu.h>
14+
#include <apiMessages.h>
15+
#include <apiMusicLibrary.h>
16+
#include <apiObjects.h>
17+
#include <apiOptions.h>
18+
#include <apiPlayer.h>
19+
#include <apiPlaylists.h>
20+
#include <apiPlugin.h>
21+
#include <apiRemote.h>
22+
#include <apiScheduler.h>
23+
#include <apiSkins.h>
24+
#include <apiTagEditor.h>
25+
#include <apiThreading.h>
26+
#include <apiVisuals.h>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
library TestPreimageAPI;
2+
3+
uses
4+
apiPlugin,
5+
TestPreimageAPIUnit in 'TestPreimageAPIUnit.pas' {frmTestPreimage};
6+
7+
{$R *.res}
8+
9+
function AIMPPluginGetHeader(out Header: IAIMPPlugin): HRESULT; stdcall;
10+
begin
11+
try
12+
Header := TTestPreimageAPIPlugin.Create;
13+
Result := S_OK;
14+
except
15+
Result := E_UNEXPECTED;
16+
end;
17+
end;
18+
19+
exports
20+
AIMPPluginGetHeader;
21+
begin
22+
end.

0 commit comments

Comments
 (0)