aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream.h
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-20 16:02:40 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-20 16:02:40 +0000
commit29a25b9933b32800f58dd73d5d1fc21993071c92 (patch)
tree4f456a6f8e44d42acc289c35534ea3e59c0aa96f /src/inputStream.h
parent099f0e103f7591eef81183292d704b3a77a99018 (diff)
downloadmpd-29a25b9933b32800f58dd73d5d1fc21993071c92.tar.gz
mpd-29a25b9933b32800f58dd73d5d1fc21993071c92.tar.xz
mpd-29a25b9933b32800f58dd73d5d1fc21993071c92.zip
Add mpd-indent.sh
Indent the entire tree, hopefully we can keep it indented. git-svn-id: https://svn.musicpd.org/mpd/trunk@4410 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputStream.h')
-rw-r--r--src/inputStream.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/inputStream.h b/src/inputStream.h
index f15be6cf9..a5a878b5e 100644
--- a/src/inputStream.h
+++ b/src/inputStream.h
@@ -23,39 +23,39 @@
typedef struct _InputStream InputStream;
-typedef int (* InputStreamSeekFunc) (InputStream * inStream, long offset,
- int whence);
-typedef size_t (* InputStreamReadFunc) (InputStream * inStream, void * ptr, size_t size,
- size_t nmemb);
-typedef int (* InputStreamCloseFunc) (InputStream * inStream);
-typedef int (* InputStreamAtEOFFunc) (InputStream * inStream);
-typedef int (* InputStreamBufferFunc) (InputStream * inStream);
+typedef int (*InputStreamSeekFunc) (InputStream * inStream, long offset,
+ int whence);
+typedef size_t(*InputStreamReadFunc) (InputStream * inStream, void *ptr,
+ size_t size, size_t nmemb);
+typedef int (*InputStreamCloseFunc) (InputStream * inStream);
+typedef int (*InputStreamAtEOFFunc) (InputStream * inStream);
+typedef int (*InputStreamBufferFunc) (InputStream * inStream);
struct _InputStream {
int error;
long offset;
size_t size;
- char * mime;
- int seekable;
+ char *mime;
+ int seekable;
- /* don't touc this stuff */
- InputStreamSeekFunc seekFunc;
- InputStreamReadFunc readFunc;
- InputStreamCloseFunc closeFunc;
- InputStreamAtEOFFunc atEOFFunc;
- InputStreamBufferFunc bufferFunc;
- void * data;
- char * metaName;
- char * metaTitle;
+ /* don't touc this stuff */
+ InputStreamSeekFunc seekFunc;
+ InputStreamReadFunc readFunc;
+ InputStreamCloseFunc closeFunc;
+ InputStreamAtEOFFunc atEOFFunc;
+ InputStreamBufferFunc bufferFunc;
+ void *data;
+ char *metaName;
+ char *metaTitle;
};
void initInputStream();
-int isUrlSaneForInputStream(char * url);
+int isUrlSaneForInputStream(char *url);
/* if an error occurs for these 3 functions, then -1 is returned and errno
for the input stream is set */
-int openInputStream(InputStream * inStream, char * url);
+int openInputStream(InputStream * inStream, char *url);
int seekInputStream(InputStream * inStream, long offset, int whence);
int closeInputStream(InputStream * inStream);
int inputStreamAtEOF(InputStream * inStream);
@@ -64,7 +64,7 @@ int inputStreamAtEOF(InputStream * inStream);
was buffered */
int bufferInputStream(InputStream * inStream);
-size_t readFromInputStream(InputStream * inStream, void * ptr, size_t size,
- size_t nmemb);
+size_t readFromInputStream(InputStream * inStream, void *ptr, size_t size,
+ size_t nmemb);
#endif