ruby_cddb 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +1 -0
- data/README +33 -0
- data/Rakefile +182 -0
- data/example/example.rb +68 -0
- data/ext/cddb_conn.c +372 -0
- data/ext/cddb_conn.h +15 -0
- data/ext/cddb_disc.c +302 -0
- data/ext/cddb_disc.h +16 -0
- data/ext/cddb_mod.c +78 -0
- data/ext/cddb_mod.h +11 -0
- data/ext/cddb_rb.c +15 -0
- data/ext/cddb_track.c +203 -0
- data/ext/cddb_track.h +18 -0
- data/ext/extconf.rb +6 -0
- data/ext/usage.c +19 -0
- data/ext/usage.h +8 -0
- metadata +61 -0
data/ext/cddb_track.h
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#ifndef TRACK_HEADER
|
2
|
+
#define TRACK_HEADER
|
3
|
+
|
4
|
+
#include<ruby.h>
|
5
|
+
#include<cddb/cddb.h>
|
6
|
+
|
7
|
+
extern VALUE cddb_track_rb;
|
8
|
+
|
9
|
+
cddb_track_t *get_cddb_track_from_Value(VALUE self);
|
10
|
+
|
11
|
+
VALUE makeValueFrom_cddb_track_t(cddb_track_t *track);
|
12
|
+
|
13
|
+
VALUE _makeValueFrom_cddb_track_t(cddb_track_t *track);
|
14
|
+
|
15
|
+
|
16
|
+
void init_cddb_track();
|
17
|
+
|
18
|
+
#endif
|
data/ext/extconf.rb
ADDED
data/ext/usage.c
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#include<cddb/cddb.h>
|
2
|
+
#include "usage.h"
|
3
|
+
|
4
|
+
#include <stdio.h>
|
5
|
+
|
6
|
+
int libUsage=0;
|
7
|
+
|
8
|
+
|
9
|
+
void incLibUsage() {
|
10
|
+
if (libUsage++>=0) {
|
11
|
+
libcddb_init();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
void decLibUsage() {
|
16
|
+
if (--libUsage<=0) {
|
17
|
+
libcddb_shutdown();
|
18
|
+
}
|
19
|
+
}
|
data/ext/usage.h
ADDED
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: ruby_cddb
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.1
|
7
|
+
date: 2007-11-05 22:29:27 +01:00
|
8
|
+
summary: Ruby to libcddb ( http://libcddb.sourceforge.net)
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: juvanham@nerdshack.com
|
12
|
+
homepage: http://rubyforge.org/projects/rbcdio/
|
13
|
+
rubyforge_project: ruby-cddb
|
14
|
+
description: "Libcddb is a C library to access data on a CDDB server (freedb.org). It allows you to: 1. search the database for possible CD matches; 2. retrieve detailed information about a specific CD; 3. submit new CD entries to the database."
|
15
|
+
autorequire: rbcddb
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.8.4
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Jurgen Van Ham
|
31
|
+
files:
|
32
|
+
- Rakefile
|
33
|
+
- AUTHORS
|
34
|
+
- README
|
35
|
+
- example/example.rb
|
36
|
+
- ext/cddb_rb.c
|
37
|
+
- ext/cddb_track.c
|
38
|
+
- ext/cddb_conn.c
|
39
|
+
- ext/cddb_disc.c
|
40
|
+
- ext/cddb_mod.c
|
41
|
+
- ext/usage.c
|
42
|
+
- ext/cddb_track.h
|
43
|
+
- ext/cddb_conn.h
|
44
|
+
- ext/cddb_disc.h
|
45
|
+
- ext/cddb_mod.h
|
46
|
+
- ext/usage.h
|
47
|
+
- ext/extconf.rb
|
48
|
+
test_files: []
|
49
|
+
|
50
|
+
rdoc_options: []
|
51
|
+
|
52
|
+
extra_rdoc_files: []
|
53
|
+
|
54
|
+
executables: []
|
55
|
+
|
56
|
+
extensions:
|
57
|
+
- ext/extconf.rb
|
58
|
+
requirements: []
|
59
|
+
|
60
|
+
dependencies: []
|
61
|
+
|