Commit 078e4b02 authored by cRTrn13's avatar cRTrn13
Browse files

API comments and added bd_get_title_size()

parent e23d4f5b
......@@ -21,10 +21,13 @@ struct bluray {
fptr_int libaacs_decrypt_unit;
};
BLURAY *bd_open(const char* device_path, const char* keyfile_path);
void bd_close(BLURAY *bd);
off_t bd_seek(BLURAY *bd, uint64_t pos);
int bd_read(BLURAY *bd, unsigned char *buf, int len);
int bd_select_title(BLURAY *bd, uint64_t title);
BLURAY *bd_open(const char* device_path, const char* keyfile_path); // Init libbluray objs
void bd_close(BLURAY *bd); // Free libbluray objs
off_t bd_seek(BLURAY *bd, uint64_t pos); // Seek to pos in currently selected title file
int bd_read(BLURAY *bd, unsigned char *buf, int len); // Read from currently selected title file, decrypt if possible
int bd_select_title(BLURAY *bd, uint64_t title); // Select an m2ts file (title is the file number, e.g. title = 123 will select 00123.m2ts)
uint64_t bd_get_title_size(BLURAY *bd); // Returns file size in bytes of currently selected title, 0 in no title selected
#endif /* BLURAY_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment