Go to the documentation of this file.
29 #ifndef DVDCSS_DVDCSS_H
30 #ifndef _DOXYGEN_SKIP_ME
31 #define DVDCSS_DVDCSS_H 1
43 #define DVDCSS_BLOCK_SIZE 2048
46 #define DVDCSS_NOFLAGS 0
49 #define DVDCSS_READ_DECRYPT (1 << 0)
52 #define DVDCSS_SEEK_MPEG (1 << 0)
55 #define DVDCSS_SEEK_KEY (1 << 1)
58 #if defined(LIBDVDCSS_EXPORTS)
59 #define LIBDVDCSS_EXPORT __declspec(dllexport) extern
60 #elif defined(LIBDVDCSS_IMPORTS)
61 #define LIBDVDCSS_EXPORT __declspec(dllimport) extern
62 #elif defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
63 #define LIBDVDCSS_EXPORT __attribute__((visibility("default"))) extern
65 #define LIBDVDCSS_EXPORT extern
LIBDVDCSS_EXPORT int dvdcss_read(dvdcss_t, void *p_buffer, int i_blocks, int i_flags)
Read from the disc and decrypt data if requested.
Definition: libdvdcss.c:610
LIBDVDCSS_EXPORT int dvdcss_close(dvdcss_t)
Close the DVD and clean up the library.
Definition: libdvdcss.c:741
struct dvdcss_s * dvdcss_t
Definition: dvdcss.h:39
LIBDVDCSS_EXPORT char * dvdcss_error(dvdcss_t)
Return a string containing the latest error that occurred in the given libdvdcss instance.
Definition: libdvdcss.c:542
LIBDVDCSS_EXPORT int dvdcss_seek(dvdcss_t, int i_blocks, int i_flags)
Seek in the disc and change the current key if requested.
Definition: libdvdcss.c:570
LIBDVDCSS_EXPORT dvdcss_t dvdcss_open(char *psz_target)
Open a DVD device or directory and return a dvdcss instance.
Definition: libdvdcss.c:153
LIBDVDCSS_EXPORT int dvdcss_is_scrambled(dvdcss_t)
Return 1 if the DVD is scrambled, 0 otherwise.
Definition: libdvdcss.c:776
LIBDVDCSS_EXPORT int dvdcss_readv(dvdcss_t, void *p_iovec, int i_blocks, int i_flags)
Read from the disc into multiple buffers and decrypt data if requested.
Definition: libdvdcss.c:683