annotate dvdnav_internal.h.in @ 51:bcc3af5643b9 src

Slight changes to comply with http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_5.html#SEC83
author jcdutton
date Wed, 03 Jul 2002 00:24:47 +0000
parents fbf85034a242
children 0e2abe7083de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
1 /*
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
2 * Copyright (C) 2001 Rich Wareham <richwareham@users.sourceforge.net>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
3 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
4 * This file is part of libdvdnav, a DVD navigation library.
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
5 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
6 * libdvdnav is free software; you can redistribute it and/or modify
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
9 * (at your option) any later version.
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
10 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
11 * libdvdnav is distributed in the hope that it will be useful,
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
14 * GNU General Public License for more details.
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
15 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
19 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
20 * $Id$
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
21 *
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
22 */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
23
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
24 #ifndef DVDNAV_INTERNAL_H_INCLUDED
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
25 #define DVDNAV_INTERNAL_H_INCLUDED
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
26
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
27 #ifdef HAVE_CONFIG_H
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
28 #include "config.h"
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
29 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
30
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
31 #include "dvdnav.h"
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
32 #include "vm.h"
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
33
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
34 #include <stdlib.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
35 #include <stdio.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
36 #include <unistd.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
37 #include <limits.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
38 #include <string.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
39 #include <pthread.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
40
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
41 @BIGENDIAN@
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
42
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
43 #include <dvdread/dvd_reader.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
44 #include <dvdread/ifo_read.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
45 #include <dvdread/ifo_types.h>
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
46
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
47
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
48 /* Maximum length of an error string */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
49 #define MAX_ERR_LEN 255
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
50
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
51 /* Use the POSIX PATH_MAX if available */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
52 #ifdef PATH_MAX
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
53 #define MAX_PATH_LEN PATH_MAX
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
54 #else
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
55 #define MAX_PATH_LEN 255 /* Arbitary */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
56 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
57
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
58 #ifndef DVD_VIDEO_LB_LEN
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
59 #define DVD_VIDEO_LB_LEN 2048
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
60 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
61
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
62 typedef struct read_cache_s read_cache_t;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
63
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
64 /*
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
65 * These are defined here because they are
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
66 * not in ifo_types.h, they maybe one day
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
67 */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
68
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
69 #ifndef audio_status_t
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
70 typedef struct {
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
71 #ifdef WORDS_BIGENDIAN
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
72 unsigned int available : 1;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
73 unsigned int zero1 : 4;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
74 unsigned int stream_number : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
75 uint8_t zero2;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
76 #else
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
77 uint8_t zero2;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
78 unsigned int stream_number : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
79 unsigned int zero1 : 4;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
80 unsigned int available : 1;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
81 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
82 } ATTRIBUTE_PACKED audio_status_t;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
83 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
84
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
85 #ifndef spu_status_t
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
86 typedef struct {
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
87 #ifdef WORDS_BIGENDIAN
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
88 unsigned int available : 1;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
89 unsigned int zero1 : 2;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
90 unsigned int stream_number_4_3 : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
91 unsigned int zero2 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
92 unsigned int stream_number_wide : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
93 unsigned int zero3 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
94 unsigned int stream_number_letterbox : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
95 unsigned int zero4 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
96 unsigned int stream_number_pan_scan : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
97 #else
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
98 unsigned int stream_number_pan_scan : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
99 unsigned int zero4 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
100 unsigned int stream_number_letterbox : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
101 unsigned int zero3 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
102 unsigned int stream_number_wide : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
103 unsigned int zero2 : 3;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
104 unsigned int stream_number_4_3 : 5;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
105 unsigned int zero1 : 2;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
106 unsigned int available : 1;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
107 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
108 } ATTRIBUTE_PACKED spu_status_t;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
109 #endif
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
110
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
111 typedef struct dvdnav_vobu_s {
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
112 int32_t vobu_start; /* Logical Absolute. MAX needed is 0x300000 */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
113 int32_t vobu_length; /* Relative offset */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
114 int32_t blockN; /* Relative offset */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
115 int32_t vobu_next; /* Relative offset */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
116 } dvdnav_vobu_t;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
117
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
118 /* The main DVDNAV type */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
119
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
120 struct dvdnav_s {
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
121 /* General data */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
122 char path[MAX_PATH_LEN]; /* Path to DVD device/dir */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
123 dvd_file_t *file; /* Currently opened file */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
124 int open_vtsN; /* The domain and number of the... */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
125 int open_domain; /* ..currently opened VOB */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
126
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
127 /* Position data */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
128 vm_position_t position_next;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
129 vm_position_t position_current;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
130 dvdnav_vobu_t vobu;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
131
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
132 /* NAV data */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
133 pci_t pci;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
134 dsi_t dsi;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
135
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
136 /* Flags */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
137 int skip_still; /* Set when skipping a still */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
138 int stop; /* Are we stopped? (note not paused, actually stopped) */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
139 int spu_clut_changed; /* The SPU CLUT changed */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
140 int started; /* vm_start has been called? */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
141 int use_read_ahead; /* 1 - use read-ahead cache, 0 - don't */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
142 /* VM */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
143 vm_t* vm;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
144 pthread_mutex_t vm_lock;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
145
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
146 /* Highlight */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
147 int hli_state; /* State of highlight: 0 - disabled,
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
148 1 - selected,
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
149 2 - activated */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
150
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
151 /* Read-ahead cache */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
152 read_cache_t *cache;
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
153
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
154 /* Errors */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
155 char err_str[MAX_ERR_LEN];
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
156 };
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
157
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
158 /** USEFUL MACROS **/
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
159
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
160 #define printerrf(format, args...) snprintf(this->err_str, MAX_ERR_LEN, format, ## args);
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
161 #define printerr(str) strncpy(this->err_str, str, MAX_ERR_LEN);
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
162 /* Save my typing */
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
163
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
164 #define S_ERR DVDNAV_STATUS_ERR
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
165 #define S_OK DVDNAV_STATUS_OK
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
166
fbf85034a242 Avoid config.h needs for WORDS_BIGENDIANS define.
f1rmb
parents:
diff changeset
167 #endif /* DVDNAV_INTERNAL_H_INCLUDED */