annotate src/sid/xs_support.h @ 3052:95b34f46a231

Comment out MPEG2/MPEG4 determination using the variable id. It is not used anywhere. Code analysis run, unique ID 6nYoHM.
author Tony Vroon <chainsaw@gentoo.org>
date Sat, 18 Apr 2009 19:06:20 +0100
parents 3134a0987162
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
1 #ifndef XS_SUPPORT_H
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
2 #define XS_SUPPORT_H
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
3
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
4 #ifdef __cplusplus
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
5 extern "C" {
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
6 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
7
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
8 #ifdef HAVE_CONFIG_H
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
9 #include <config.h>
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
10 #endif
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
11
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
12 #include <glib.h>
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
13 #include <stdio.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
14
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
15 #ifdef AUDACIOUS_PLUGIN
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2576
diff changeset
16 #include <audlegacy/plugin.h>
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2576
diff changeset
17 #include <audlegacy/output.h>
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
18 #else
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
19 #include <xmms/plugin.h>
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
20 #include <xmms/util.h>
1476
c6947f95fd2a converted sid plugin to new tuple system
Giacomo Lozito <james@develia.org>
parents: 735
diff changeset
21 #include <xmms/titlestring.h>
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
22 #endif
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
23
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
24 #ifdef HAVE_ASSERT_H
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
25 #include <assert.h>
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
26 #else
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
27 #define assert(x) /* stub */
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
28 #endif
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
29
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
30 #ifdef HAVE_STRING_H
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
31 #include <string.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
32 #else
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
33 #ifdef HAVE_STRINGS_H
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
34 #include <strings.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
35 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
36 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
37
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
38 #ifdef HAVE_MEMORY_H
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
39 #include <memory.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
40 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
41
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
42
1563
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
43 /* Standard gettext macros
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
44 */
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
45 #ifdef ENABLE_NLS
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
46 # include <libintl.h>
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
47 # undef _
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
48 # define _(String) dgettext (PACKAGE, String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
49 # ifdef gettext_noop
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
50 # define N_(String) gettext_noop (String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
51 # else
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
52 # define N_(String) (String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
53 # endif
1476
c6947f95fd2a converted sid plugin to new tuple system
Giacomo Lozito <james@develia.org>
parents: 735
diff changeset
54 #else
1563
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
55 # define _LIBINTL_H
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
56 # define textdomain(String) (String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
57 # define gettext(String) (String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
58 # define dgettext(Domain,Message) (Message)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
59 # define dcgettext(Domain,Message,Type) (Message)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
60 # define bindtextdomain(Domain,Directory) (Domain)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
61 # define _(String) (String)
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
62 # define N_(String) (String)
1476
c6947f95fd2a converted sid plugin to new tuple system
Giacomo Lozito <james@develia.org>
parents: 735
diff changeset
63 #endif
c6947f95fd2a converted sid plugin to new tuple system
Giacomo Lozito <james@develia.org>
parents: 735
diff changeset
64
1563
828f45d8e8f8 Move NLS support macros to xs_support.h
Matti Hamalainen <ccr@tnsp.org>
parents: 1549
diff changeset
65
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
66 /* VFS replacement functions
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
67 */
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
68 #ifdef __AUDACIOUS_NEWVFS__
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 2496
diff changeset
69 #define xs_file_t VFSFile
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
70 #define xs_fopen(a,b) aud_vfs_fopen(a,b)
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
71 #define xs_fclose(a) aud_vfs_fclose(a)
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
72 #define xs_fgetc(a) aud_vfs_getc(a)
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
73 #define xs_fread(a,b,c,d) aud_vfs_fread(a,b,c,d)
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
74 #define xs_feof(a) aud_vfs_feof(a)
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
75 #define xs_ferror(a) (0)
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
76 #define xs_ftell(a) aud_vfs_ftell(a)
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1874
diff changeset
77 #define xs_fseek(a,b,c) aud_vfs_fseek(a,b,c)
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
78 #else
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 2496
diff changeset
79 #define xs_file_t FILE
2496
42a5c9d5830b Include cleanups, part #1.
Matti Hamalainen <ccr@tnsp.org>
parents: 2490
diff changeset
80 #define xs_fopen(a,b) fopen(a,b)
2474
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
81 #define xs_fclose(a) fclose(a)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
82 #define xs_fgetc(a) fgetc(a)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
83 #define xs_fread(a,b,c,d) fread(a,b,c,d)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
84 #define xs_feof(a) feof(a)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
85 #define xs_ferror(a) ferror(a)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
86 #define xs_ftell(a) ftell(a)
f2b3cdb6e7dc Remove some useless wrapping of functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 2466
diff changeset
87 #define xs_fseek(a,b,c) fseek(a,b,c)
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
88 #endif
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 2496
diff changeset
89 guint16 xs_fread_be16(xs_file_t *);
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 2496
diff changeset
90 guint32 xs_fread_be32(xs_file_t *);
2509
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
91 gint xs_fload_buffer(const gchar *, guint8 **, size_t *);
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
92
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
93
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
94 /* Misc functions
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
95 */
2509
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
96 gchar *xs_strncpy(gchar *, const gchar *, size_t);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
97 gint xs_pstrcpy(gchar **, const gchar *);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
98 gint xs_pstrcat(gchar **, const gchar *);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
99 void xs_pnstrcat(gchar *, size_t, const gchar *);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
100 gchar *xs_strrchr(gchar *, const gchar);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
101 void xs_findnext(const gchar *, size_t *);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
102 void xs_findeol(const gchar *, size_t *);
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
103 void xs_findnum(const gchar *, size_t *);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
104
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
105 #ifdef __cplusplus
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
106 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
107 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
108 #endif /* XS_SUPPORT_H */