mockspotify 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mockspotify.rb CHANGED
@@ -28,7 +28,7 @@ module Spotify
28
28
  $VERBOSE = true
29
29
  attach_function :mock_user, :mocksp_user_create, [:string, :string, :string, :string, :relation_type, :bool], :user
30
30
  attach_function :mock_track, :mocksp_track_create, [:string, :int, :array, :pointer, :int, :int, :int, :int, :error, :bool], :track
31
- attach_function :mock_image, :mocksp_image_create, [:image_id, :imageformat, :size_t, :pointer, :error], :image
31
+ attach_function :mock_image, :mocksp_image_create, [:image_id, :imageformat, :size_t, :buffer_in, :error], :image
32
32
  attach_function :mock_artist, :mocksp_artist_create, [:string, :bool], :artist
33
33
  attach_function :mock_album, :mocksp_album_create, [:string, :artist, :int, :pointer, :image_id, :albumtype, :bool, :bool], :album
34
34
 
@@ -1,5 +1,5 @@
1
1
  module Spotify
2
2
  module Mock
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
data/src/image.c CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /*** MockSpotify API ***/
4
4
  sp_image*
5
- mocksp_image_create(const byte image_id[20], sp_imageformat format, size_t data_size, byte *data, sp_error error)
5
+ mocksp_image_create(const byte image_id[20], sp_imageformat format, size_t data_size, const byte *data, sp_error error)
6
6
  {
7
7
  sp_image *image = ALLOC(sp_image);
8
8
  memcpy(image->image_id, image_id, 20);
@@ -21,7 +21,7 @@ sp_image_create_from_link(sp_session *session, sp_link *l)
21
21
  {
22
22
  byte *real_id = l->data + strlen("spotify:image:");
23
23
  byte *image_id = ALLOC_N(byte, 20);
24
- memcpy(image_id, real_id, 20);
24
+ memcpy(image_id, real_id, 20); // TODO: convert "deadbeef" to array of: [0xDE, 0xAD, 0xBE, 0xEF]
25
25
  return mocksp_image_create(image_id, SP_IMAGE_FORMAT_JPEG, 0, NULL, SP_ERROR_OK);
26
26
  }
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mockspotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-20 00:00:00.000000000Z
12
+ date: 2011-07-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spotify
16
- requirement: &2153096540 !ruby/object:Gem::Requirement
16
+ requirement: &2152836420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153096540
24
+ version_requirements: *2152836420
25
25
  description:
26
26
  email: kim@burgestrand.se
27
27
  executables: []