-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvlcjs.h
72 lines (49 loc) · 990 Bytes
/
vlcjs.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef VLCJS_H
#define VLCJS_H
#include <QtGui>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include<time.h>
#include <v8.h>
using namespace v8;
#include <./vlc/vlc.h>
#include <./vlc/libvlc.h>
#ifdef _WIN32
//#include <windows.h>
#include <stdio.h>
#include <conio.h>
typedef void *HANDLE;
#else
//#include <QtGui>
#include <sys/ipc.h>
#include <sys/shm.h>
#define HANDLE int
#define LPTSTR char *
#endif
typedef struct {
HANDLE hMapFile;
char * pBuf;
int sz;
}HH_SHMEM;
class hBuf
{
public:
char *p;
unsigned long sz;
unsigned long beg;
unsigned long end;
int isSlice;
HH_SHMEM sh;
hBuf(){p = 0;sz=beg=end=isSlice=0;sh.hMapFile=0; sh.pBuf =0; sh.sz=0;};
};
#ifdef _WIN32
#define MY_EXPORT __declspec(dllexport)
#else
#define MY_EXPORT
#endif
extern "C" {
MY_EXPORT v8::Handle<v8::Value> init(v8::Persistent<v8::Context> ctx);
// MY_EXPORT int init_hh(int ctx){ return(0);}
}
#endif // VLCJS_H