musicbeeipc 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +5 -0
- data/LICENSE_MusicBeeIPCSDK.txt +23 -0
- data/README.md +16 -0
- data/README.txt +16 -0
- data/enums.html +318 -0
- data/lib/constants.rb +12 -0
- data/lib/enums.rb +316 -0
- data/lib/musicbeeipc.rb +1477 -0
- data/lib/pack.rb +282 -0
- data/lib/structs.rb +40 -0
- data/lib/unpack.rb +204 -0
- data/lib/winapi.rb +39 -0
- data/musicbeeipc.gemspec +14 -0
- metadata +71 -0
data/lib/winapi.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
#----------------------------------------------------------#
|
2
|
+
#- MusicBeeIPCSDK Rb v2.0.0 -#
|
3
|
+
#- Copyright © Kerli Low 2014 -#
|
4
|
+
#- This file is licensed under the -#
|
5
|
+
#- BSD 2-Clause License -#
|
6
|
+
#- See LICENSE_MusicBeeIPCSDK for more information. -#
|
7
|
+
#----------------------------------------------------------#
|
8
|
+
|
9
|
+
require "ffi"
|
10
|
+
|
11
|
+
class MusicBeeIPC
|
12
|
+
private
|
13
|
+
|
14
|
+
extend FFI::Library
|
15
|
+
|
16
|
+
ffi_lib "user32", "kernel32"
|
17
|
+
ffi_convention :stdcall
|
18
|
+
|
19
|
+
attach_function :send_message, :SendMessageW,
|
20
|
+
[:pointer, :uint, :ulong, :long], :long
|
21
|
+
|
22
|
+
attach_function :send_message_ptr, :SendMessageW,
|
23
|
+
[:pointer, :uint, :ulong, :long], :pointer
|
24
|
+
|
25
|
+
attach_function :find_window, :FindWindowW,
|
26
|
+
[:buffer_in, :buffer_in], :pointer
|
27
|
+
|
28
|
+
attach_function :open_file_mapping, :OpenFileMappingW,
|
29
|
+
[:int, :int, :buffer_in], :pointer
|
30
|
+
|
31
|
+
attach_function :close_handle, :CloseHandle,
|
32
|
+
[:pointer], :int
|
33
|
+
|
34
|
+
attach_function :map_view_of_file, :MapViewOfFile,
|
35
|
+
[:pointer, :int, :int, :int, :size_t], :pointer
|
36
|
+
|
37
|
+
attach_function :unmap_view_of_file, :UnmapViewOfFile,
|
38
|
+
[:pointer], :int
|
39
|
+
end
|
data/musicbeeipc.gemspec
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "musicbeeipc"
|
3
|
+
s.version = "2.0.0.1"
|
4
|
+
s.license = "BSD 2-Clause License"
|
5
|
+
s.summary = "MusicBeeIPC SDK for Ruby"
|
6
|
+
s.description = "Control MusicBee with Ruby using the MusicBeeIPC plugin."
|
7
|
+
s.author = "Kerli Low"
|
8
|
+
s.email = "kerlilow@gmail.com"
|
9
|
+
s.homepage = "http://www.zorexxlkl.com/musicbeeipc"
|
10
|
+
s.files = Dir["lib/*.rb"]
|
11
|
+
s.files += [".yardopts", "enums.html", "LICENSE_MusicBeeIPCSDK.txt",
|
12
|
+
"README.md", "README.txt", "musicbeeipc.gemspec"]
|
13
|
+
s.add_runtime_dependency("ffi")
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: musicbeeipc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kerli Low
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ffi
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Control MusicBee with Ruby using the MusicBeeIPC plugin.
|
28
|
+
email: kerlilow@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/constants.rb
|
34
|
+
- lib/enums.rb
|
35
|
+
- lib/musicbeeipc.rb
|
36
|
+
- lib/pack.rb
|
37
|
+
- lib/structs.rb
|
38
|
+
- lib/unpack.rb
|
39
|
+
- lib/winapi.rb
|
40
|
+
- .yardopts
|
41
|
+
- enums.html
|
42
|
+
- LICENSE_MusicBeeIPCSDK.txt
|
43
|
+
- README.md
|
44
|
+
- README.txt
|
45
|
+
- musicbeeipc.gemspec
|
46
|
+
homepage: http://www.zorexxlkl.com/musicbeeipc
|
47
|
+
licenses:
|
48
|
+
- BSD 2-Clause License
|
49
|
+
metadata: {}
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 2.0.14
|
67
|
+
signing_key:
|
68
|
+
specification_version: 4
|
69
|
+
summary: MusicBeeIPC SDK for Ruby
|
70
|
+
test_files: []
|
71
|
+
has_rdoc:
|