Mercurial > hg > xmms-sid
annotate src/xs_support.h @ 226:858c09f59011
Moved some functions from xs_length.c here.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 19 Dec 2004 15:25:03 +0000 |
parents | 57231fe14369 |
children | 7833df935239 |
rev | line source |
---|---|
4 | 1 #ifndef XS_SUPPORT_H |
2 #define XS_SUPPORT_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
49
3518ca5c8b0f
Support for compile-time big/little-endian optimizations in audio output
Matti Hamalainen <ccr@tnsp.org>
parents:
38
diff
changeset
|
8 #include "xmms-sid.h" |
226
858c09f59011
Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents:
218
diff
changeset
|
9 #include <stdio.h> |
4 | 10 |
218 | 11 #ifdef HAVE_STRING_H |
12 #include <string.h> | |
13 #else | |
14 #ifdef HAVE_STRINGS_H | |
15 #include <strings.h> | |
16 #endif | |
17 #endif | |
18 | |
19 #ifdef HAVE_MEMORY_H | |
20 #include <memory.h> | |
21 #endif | |
22 | |
23 #ifndef HAVE_SIZE_T | |
24 typedef unsigned long int size_t; | |
25 #endif | |
26 | |
27 | |
4 | 28 /* |
29 * Functions | |
30 */ | |
226
858c09f59011
Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents:
218
diff
changeset
|
31 guint16 xs_rd_be16(FILE *); |
858c09f59011
Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents:
218
diff
changeset
|
32 guint32 xs_rd_be32(FILE *); |
858c09f59011
Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents:
218
diff
changeset
|
33 size_t xs_rd_str(FILE *, gchar *, size_t); |
218 | 34 gchar *xs_strncpy(gchar *, gchar *, size_t); |
206
8b896d461fdb
Trivial fixes and added strncpy replacement.
Matti Hamalainen <ccr@tnsp.org>
parents:
109
diff
changeset
|
35 gint xs_pstrcpy(gchar **, const gchar *); |
8b896d461fdb
Trivial fixes and added strncpy replacement.
Matti Hamalainen <ccr@tnsp.org>
parents:
109
diff
changeset
|
36 gint xs_pstrcat(gchar **, const gchar *); |
56
6a3ce7260ae1
Changed some standard functions to glib ones
Matti Hamalainen <ccr@tnsp.org>
parents:
49
diff
changeset
|
37 gchar *xs_strrchr(gchar *, gchar); |
109
578b71b62eeb
Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
38 inline void xs_findnext(gchar *, guint *); |
578b71b62eeb
Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
39 inline void xs_findeol(gchar *, guint *); |
578b71b62eeb
Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
40 inline void xs_findnum(gchar *, guint *); |
4 | 41 |
214 | 42 #ifdef HAVE_MEMSET |
43 #define xs_memset memset | |
44 #else | |
45 void *xs_memset(void *, int, size_t); | |
46 #endif | |
47 | |
4 | 48 #ifdef __cplusplus |
49 } | |
50 #endif | |
51 #endif /* XS_SUPPORT_H */ |