changeset 4970:f21d15f0cba6

control+preinit moved to mga_common.c
author arpi
date Thu, 07 Mar 2002 01:51:28 +0000
parents db86fcf25ede
children fa002f25631e
files libvo/mga_common.c libvo/vo_mga.c libvo/vo_xmga.c
diffstat 3 files changed, 16 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Thu Mar 07 01:39:07 2002 +0000
+++ b/libvo/mga_common.c	Thu Mar 07 01:51:28 2002 +0000
@@ -200,6 +200,16 @@
     return 0;
 }
 
+static uint32_t control(uint32_t request, void *data, ...)
+{
+  switch (request) {
+  case VOCTRL_QUERY_FORMAT:
+    return query_format(*((uint32_t*)data));
+  }
+  return VO_NOTIMPL;
+}
+
+
 static int mga_init(){
 	char *frame_mem;
 
@@ -232,3 +242,9 @@
 	munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames);
 	close(f);
 }
+
+static uint32_t preinit(const char *arg)
+{
+  return 0;
+}
+
--- a/libvo/vo_mga.c	Thu Mar 07 01:39:07 2002 +0000
+++ b/libvo/vo_mga.c	Thu Mar 07 01:51:28 2002 +0000
@@ -169,16 +169,3 @@
 {
 }
 
-static uint32_t preinit(const char *arg)
-{
-  return 0;
-}
-
-static uint32_t control(uint32_t request, void *data, ...)
-{
-  switch (request) {
-  case VOCTRL_QUERY_FORMAT:
-    return query_format(*((uint32_t*)data));
-  }
-  return VO_NOTIMPL;
-}
--- a/libvo/vo_xmga.c	Thu Mar 07 01:39:07 2002 +0000
+++ b/libvo/vo_xmga.c	Thu Mar 07 01:51:28 2002 +0000
@@ -373,16 +373,3 @@
  printf("vo: uninit!\n");
 }
 
-static uint32_t preinit(const char *arg)
-{
-  return 0;
-}
-
-static uint32_t control(uint32_t request, void *data, ...)
-{
-  switch (request) {
-  case VOCTRL_QUERY_FORMAT:
-    return query_format(*((uint32_t*)data));
-  }
-  return VO_NOTIMPL;
-}