spice/server/red-record-qxl.h
Frediano Ziglio e0b395fb68 Declare exported functions as C
Allows to be used by both C and C++ code.
So to leave part of the code in C and part move to C++.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:08 +01:00

53 lines
1.6 KiB
C

/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2009,2010 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef RED_RECORD_QXL_H_
#define RED_RECORD_QXL_H_
#include <spice/qxl_dev.h>
#include "red-common.h"
#include "memslot.h"
#include "utils.h"
SPICE_BEGIN_DECLS
typedef struct RedRecord RedRecord;
/**
* Create a new structure to handle recording.
* This function never returns NULL.
*/
RedRecord* red_record_new(const char *filename);
RedRecord *red_record_ref(RedRecord *record);
void red_record_unref(RedRecord *record);
void red_record_primary_surface_create(RedRecord *record,
QXLDevSurfaceCreate *surface,
uint8_t *line_0);
void red_record_event(RedRecord *record, int what, uint32_t type);
void red_record_qxl_command(RedRecord *record, RedMemSlotInfo *slots,
QXLCommandExt ext_cmd);
SPICE_END_DECLS
#endif /* RED_RECORD_QXL_H_ */