![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <pthread.h>
#include "decoder.h"
#include "dvdnav.h"
#include "vm.h"
#include "vmcmd.h"
Classes | |
struct | ATTRIBUTE_PACKED |
struct | dvdnav_vobu_s |
struct | dvdnav_s |
Macros | |
#define | MSG_OUT stderr |
#define | MAX_ERR_LEN 255 |
#define | MAX_PATH_LEN PATH_MAX |
#define | printerrf(...) do { if (this) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__); } while (0) |
#define | printerr(str) do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0) |
Typedefs | |
typedef struct read_cache_s | read_cache_t |
typedef struct dvdnav_vobu_s | dvdnav_vobu_t |
Enumerations | |
enum | DSI_ILVU { DSI_ILVU_PRE = 1 << 15 , DSI_ILVU_BLOCK = 1 << 14 , DSI_ILVU_FIRST = 1 << 13 , DSI_ILVU_LAST = 1 << 12 , DSI_ILVU_MASK = 0xf000 } |
Functions | |
int64_t | dvdnav_convert_time (dvd_time_t *time) |
dvdnav_status_t | dvdnav_get_state (dvdnav_t *self, dvd_state_t *save_state) |
dvdnav_status_t | dvdnav_set_state (dvdnav_t *self, dvd_state_t *save_state) |
#define MAX_ERR_LEN 255 |
#define MAX_PATH_LEN PATH_MAX |
#define MSG_OUT stderr |
#define printerr | ( | str | ) | do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0) |
#define printerrf | ( | ... | ) | do { if (this) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__); } while (0) |
USEFUL MACROS
typedef struct dvdnav_vobu_s dvdnav_vobu_t |
typedef struct read_cache_s read_cache_t |
enum DSI_ILVU |
int64_t dvdnav_convert_time | ( | dvd_time_t * | time | ) |
HELPER FUNCTIONS
dvdnav_status_t dvdnav_get_state | ( | dvdnav_t * | self, |
dvd_state_t * | save_state | ||
) |
dvdnav_status_t dvdnav_set_state | ( | dvdnav_t * | self, |
dvd_state_t * | save_state | ||
) |