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*)
file annotate diff log raw
nkeynes@614
     1
nkeynes@614
     2
nkeynes@614
     3
nkeynes@106
     4
/**
nkeynes@561
     5
 * $Id$
nkeynes@106
     6
 *
nkeynes@106
     7
 * Null video output driver (ie no video output whatsoever)
nkeynes@106
     8
 *
nkeynes@106
     9
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@106
    10
 *
nkeynes@106
    11
 * This program is free software; you can redistribute it and/or modify
nkeynes@106
    12
 * it under the terms of the GNU General Public License as published by
nkeynes@106
    13
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@106
    14
 * (at your option) any later version.
nkeynes@106
    15
 *
nkeynes@106
    16
 * This program is distributed in the hope that it will be useful,
nkeynes@106
    17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@106
    18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@106
    19
 * GNU General Public License for more details.
nkeynes@106
    20
 */
nkeynes@106
    21
nkeynes@144
    22
#include "display.h"
nkeynes@106
    23
nkeynes@669
    24
static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
nkeynes@352
    25
{
nkeynes@352
    26
    return NULL;
nkeynes@352
    27
}
nkeynes@352
    28
nkeynes@669
    29
static void video_null_destroy_render_buffer( render_buffer_t buffer )
nkeynes@106
    30
{
nkeynes@106
    31
}
nkeynes@106
    32
nkeynes@669
    33
static gboolean video_null_set_render_target( render_buffer_t buffer )
nkeynes@106
    34
{
nkeynes@106
    35
    return TRUE;
nkeynes@106
    36
}
nkeynes@106
    37
nkeynes@669
    38
static void video_null_display_render_buffer( render_buffer_t buffer )
nkeynes@669
    39
{
nkeynes@669
    40
}
nkeynes@669
    41
nkeynes@669
    42
static gboolean video_null_read_render_buffer( unsigned char *target, 
nkeynes@669
    43
					       render_buffer_t buffer, 
nkeynes@669
    44
					       int rowstride, int format )
nkeynes@106
    45
{
nkeynes@106
    46
    return TRUE;
nkeynes@106
    47
}
nkeynes@106
    48
nkeynes@669
    49
static void video_null_load_frame_buffer( frame_buffer_t frame, 
nkeynes@669
    50
					  render_buffer_t buffer )
nkeynes@352
    51
{
nkeynes@352
    52
}
nkeynes@352
    53
nkeynes@669
    54
static void video_null_display_blank( uint32_t colour )
nkeynes@106
    55
{
nkeynes@106
    56
}
nkeynes@106
    57
nkeynes@106
    58
nkeynes@700
    59
struct display_driver display_null_driver = { 
nkeynes@700
    60
        "null",
nkeynes@700
    61
        N_("Null (no video) driver"),
nkeynes@700
    62
        NULL,
nkeynes@700
    63
        NULL,
nkeynes@700
    64
        NULL,
nkeynes@700
    65
        NULL, 
nkeynes@700
    66
        NULL,
nkeynes@700
    67
        video_null_create_render_buffer,
nkeynes@700
    68
        video_null_destroy_render_buffer,
nkeynes@700
    69
        video_null_set_render_target,
nkeynes@700
    70
        video_null_load_frame_buffer,
nkeynes@700
    71
        video_null_display_render_buffer,
nkeynes@700
    72
        video_null_display_blank,
nkeynes@700
    73
        video_null_read_render_buffer };
.