1
0
Fork 0

libbluray api start

This commit is contained in:
cRTrn13 2009-10-15 15:34:45 +00:00
parent 1914e3a3d9
commit 1ed5b372ba
2 changed files with 28 additions and 0 deletions

4
src/bluray.c Normal file
View File

@ -0,0 +1,4 @@
#include "bluray.h"
#include "libaacs/aacs.h"

24
src/bluray.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef BLURAY_H_
#define BLURAY_H_
#include <stdint.h>
#include <unistd.h>
#include "file/file.h"
typedef struct bluray BLURAY;
struct bluray {
char device_path[100];
uint64_t title;
FILE_H *fp;
off_t s_size, s_pos;
};
BLURAY *bd_open(BLURAY *bd);
void bd_select_title(BLURAY *bd, uint64_t title);
void bd_close(BLURAY *bd);
off_t bd_seek(BLURAY *bd, off_t pos);
int bd_read(BLURAY *bd, unsigned char *buf, int len);
#endif /* BLURAY_H_ */