From bc10a61ce00f9567d33d8e58ce06aeeb24333535 Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 14 Nov 2006 09:12:33 +0000 Subject: got rid of all the casting madness, from the threads. (casting happens only during pthread_create now to avoid the warning) git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@164 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/recordmydesktop.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'recordmydesktop/include') diff --git a/recordmydesktop/include/recordmydesktop.h b/recordmydesktop/include/recordmydesktop.h index 68f9fd0..7cc3037 100644 --- a/recordmydesktop/include/recordmydesktop.h +++ b/recordmydesktop/include/recordmydesktop.h @@ -713,10 +713,10 @@ int capture_busy, /**Function prototypes*/ /** TODO document all the functions*/ -void *PollDamage(void *pdata); -void *GetFrame(void *pdata); -void *EncodeImageBuffer(void *pdata); -void *FlushToOgg(void *pdata); +void *PollDamage(ProgData *pdata); +void *GetFrame(ProgData *pdata); +void *EncodeImageBuffer(ProgData *pdata); +void *FlushToOgg(ProgData *pdata); void UpdateYUVBuffer(yuv_buffer *yuv,unsigned char *data,int x,int y,int width,int height); void ClearList(RectArea **root); int RectInsert(RectArea **root,WGeometry *wgeom); @@ -729,16 +729,16 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return); void QueryExtensions(Display *dpy,ProgArgs *args,int *damage_event,int *damage_error); int SetBRWindow(Display *dpy,BRWindow *brwin,DisplaySpecs *specs,ProgArgs *args); unsigned char *MakeDummyPointer(DisplaySpecs *specs,int size,int color,int type,unsigned char *npxl); -void *CaptureSound(void *pdata); -void *EncodeSoundBuffer(void *pdata); +void *CaptureSound(ProgData *pdata); +void *EncodeSoundBuffer(ProgData *pdata); snd_pcm_t *OpenDev(const char *pcm_dev,unsigned int *channels,unsigned int *frequency,snd_pcm_uframes_t *periodsize,unsigned int *periodtime,int *hardpause); void InitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready); void MakeMatrices(); void SizePack2_8_16(int *start,int *size,int limit); -void *CacheImageBuffer(void *pdata); +void *CacheImageBuffer(ProgData *pdata); void InitCacheData(ProgData *pdata,EncData *enc_data_t,CacheData *cache_data_t); -void *CacheSoundBuffer(void *pdata); -void *LoadCache(void *pdata); +void *CacheSoundBuffer(ProgData *pdata); +void *LoadCache(ProgData *pdata); void SyncEncodeImageBuffer(ProgData *pdata); void CancelTimer(void); void SyncEncodeSoundBuffer(ProgData *pdata,signed char *buff); -- cgit v1.2.1