changeset 32204:0a81c931ecb5

Mark functs not used outside of the file as static, remove from header; fixes: libvo/vesa_lvo.c:187: warning: no previous prototype for 'vlvo_draw_slice' libvo/vesa_lvo.c:205: warning: no previous prototype for 'vlvo_draw_frame' libvo/vesa_lvo.c:214: warning: no previous prototype for 'vlvo_flip_page' libvo/vesa_lvo.c:275: warning: no previous prototype for 'vlvo_draw_osd' libvo/vesa_lvo.c:312: warning: no previous prototype for 'vlvo_query_info'
author diego
date Fri, 17 Sep 2010 10:31:24 +0000
parents 42536d4a06a8
children 3c169d0b1966
files libvo/vesa_lvo.c libvo/vesa_lvo.h
diffstat 2 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vesa_lvo.c	Fri Sep 17 10:27:51 2010 +0000
+++ b/libvo/vesa_lvo.c	Fri Sep 17 10:31:24 2010 +0000
@@ -184,7 +184,8 @@
     return 0;
 }
 
-uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
+static uint32_t vlvo_draw_slice(uint8_t *image[], int stride[],
+                                int w, int h, int x, int y)
 {
  if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
    mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: vlvo_draw_slice() was called\n");}
@@ -202,7 +203,7 @@
  return 0;
 }
 
-uint32_t vlvo_draw_frame(uint8_t *image[])
+static uint32_t vlvo_draw_frame(uint8_t *image[])
 {
 /* Note it's very strange but sometime for YUY2 draw_frame is called */
   fast_memcpy(lvo_mem,image[0],mga_vid_config.frame_size);
@@ -211,7 +212,7 @@
   return 0;
 }
 
-void     vlvo_flip_page(void)
+static void vlvo_flip_page(void)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: vlvo_draw_osd() was called\n");}
@@ -272,7 +273,7 @@
 }
 #endif
 
-void     vlvo_draw_osd(void)
+static void vlvo_draw_osd(void)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2,"vesa_lvo: vlvo_draw_osd() was called\n"); }
@@ -309,7 +310,7 @@
   return 0;
 }
 
-uint32_t vlvo_query_info(uint32_t format)
+static uint32_t vlvo_query_info(uint32_t format)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: query_format was called: %x (%s)\n",format,vo_format_name(format)); }
--- a/libvo/vesa_lvo.h	Fri Sep 17 10:27:51 2010 +0000
+++ b/libvo/vesa_lvo.h	Fri Sep 17 10:31:24 2010 +0000
@@ -30,11 +30,5 @@
 		   unsigned x_org,unsigned y_org,unsigned dst_width,
 		   unsigned dst_height,unsigned format,unsigned dest_bpp);
 void     vlvo_term( void );
-uint32_t vlvo_query_info(uint32_t format);
-
-uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y);
-uint32_t vlvo_draw_frame(uint8_t *src[]);
-void     vlvo_flip_page(void);
-void     vlvo_draw_osd(void);
 
 #endif /* MPLAYER_VESA_LVO_H */