summaryrefslogtreecommitdiff
path: root/src/xine-engine/scratch.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-03 00:38:22 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-03 00:38:22 +0200
commit0ed2cd4f34189ec303dfac5a30de0abae0decba8 (patch)
tree7a8d08d25ca7c81daa9d6cd65fd4f633fd676b41 /src/xine-engine/scratch.h
parent6081bc9a06ee97333769f77a9e5c18a15afb29da (diff)
parent3dd7d925c2feb7868a49e7a1a0b953a5aab233f0 (diff)
downloadxine-lib-0ed2cd4f34189ec303dfac5a30de0abae0decba8.tar.gz
xine-lib-0ed2cd4f34189ec303dfac5a30de0abae0decba8.tar.bz2
Merge changes happened in 1.1 development.
Diffstat (limited to 'src/xine-engine/scratch.h')
-rw-r--r--src/xine-engine/scratch.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xine-engine/scratch.h b/src/xine-engine/scratch.h
index d23d68503..bcfe815c3 100644
--- a/src/xine-engine/scratch.h
+++ b/src/xine-engine/scratch.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: scratch.h,v 1.11 2006/09/26 05:19:49 dgp85 Exp $
+ * $Id: scratch.h,v 1.13 2007/01/19 00:12:22 dgp85 Exp $
*
* scratch buffer for log output
*
@@ -27,6 +27,7 @@
#define HAVE_SCRATCH_H
#include <stdarg.h>
+#include <pthread.h>
typedef struct scratch_buffer_s scratch_buffer_t;
@@ -40,16 +41,17 @@ struct scratch_buffer_s {
#endif
(*scratch_printf) (scratch_buffer_t *this, const char *format, va_list ap);
- const char **(*get_content) (scratch_buffer_t *this);
+ char **(*get_content) (scratch_buffer_t *this);
void (*dispose) (scratch_buffer_t *this);
char **lines;
- const char **ordered;
+ char **ordered;
int num_lines;
int cur;
+ pthread_mutex_t lock;
};
scratch_buffer_t *_x_new_scratch_buffer (int num_lines) XINE_PROTECTED;