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