From 29a25b9933b32800f58dd73d5d1fc21993071c92 Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Thu, 20 Jul 2006 16:02:40 +0000 Subject: 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 --- src/inputStream.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/inputStream.h') 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 -- cgit v1.2.3