diff options
Diffstat (limited to 'server/red-record-qxl.h')
-rw-r--r-- | server/red-record-qxl.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/server/red-record-qxl.h b/server/red-record-qxl.h new file mode 100644 index 00000000..6de82b34 --- /dev/null +++ b/server/red-record-qxl.h @@ -0,0 +1,52 @@ +/* -*- 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_ */ |