Search
lxdream.org :: lxdream/src/drivers/video_null.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_null.c
changeset 700:4650d0c7f6f9
prev669:ab344e42bca9
next736:a02d1475ccfd
author nkeynes
date Sun Jun 22 06:49:00 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Big cleanup of the command-line options
Add an actual manpage (*gasp*)
view annotate diff log raw
     4 /**
     5  * $Id$
     6  *
     7  * Null video output driver (ie no video output whatsoever)
     8  *
     9  * Copyright (c) 2005 Nathan Keynes.
    10  *
    11  * This program is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * This program is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  */
    22 #include "display.h"
    24 static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
    25 {
    26     return NULL;
    27 }
    29 static void video_null_destroy_render_buffer( render_buffer_t buffer )
    30 {
    31 }
    33 static gboolean video_null_set_render_target( render_buffer_t buffer )
    34 {
    35     return TRUE;
    36 }
    38 static void video_null_display_render_buffer( render_buffer_t buffer )
    39 {
    40 }
    42 static gboolean video_null_read_render_buffer( unsigned char *target, 
    43 					       render_buffer_t buffer, 
    44 					       int rowstride, int format )
    45 {
    46     return TRUE;
    47 }
    49 static void video_null_load_frame_buffer( frame_buffer_t frame, 
    50 					  render_buffer_t buffer )
    51 {
    52 }
    54 static void video_null_display_blank( uint32_t colour )
    55 {
    56 }
    59 struct display_driver display_null_driver = { 
    60         "null",
    61         N_("Null (no video) driver"),
    62         NULL,
    63         NULL,
    64         NULL,
    65         NULL, 
    66         NULL,
    67         video_null_create_render_buffer,
    68         video_null_destroy_render_buffer,
    69         video_null_set_render_target,
    70         video_null_load_frame_buffer,
    71         video_null_display_render_buffer,
    72         video_null_display_blank,
    73         video_null_read_render_buffer };
.