-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbinding.cc
More file actions
44 lines (38 loc) · 1.05 KB
/
binding.cc
File metadata and controls
44 lines (38 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* =====================================================================================
*
* Filename: binding.cc
*
* Description: Node bindings for libspotify
*
* Version: 1.0
* Created: 16/12/2012 15:04:18
* Revision: none
* Compiler: gcc
*
* Author: Florent Jaby (FJ), florent.jaby@gmail.com
* Company: Florent Jaby
*
* =====================================================================================
*/
#include <node.h>
#include <v8.h>
#include "common.h"
extern "C" {
void init (v8::Handle<v8::Object> target)
{
v8::HandleScope scope;
// initializing all modules
nsp::init_album(target);
nsp::init_artist(target);
nsp::init_artistbrowse(target);
nsp::init_link(target);
nsp::init_player(target);
nsp::init_search(target);
nsp::init_session(target);
nsp::init_track(target);
nsp::init_playlistcontainer(target);
nsp::init_playlist(target);
}
}
NODE_MODULE(spotify, init);