libbluray api start
This commit is contained in:
parent
1914e3a3d9
commit
1ed5b372ba
|
@ -0,0 +1,4 @@
|
|||
|
||||
#include "bluray.h"
|
||||
#include "libaacs/aacs.h"
|
||||
|
|
@ -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_ */
|
Loading…
Reference in New Issue