Debian Codegraph @

src/byzanzserialize.h

raw symbols SCIP
1 /* desktop session recorder
2 * Copyright (C) 2009 Benjamin Otte <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <gio/gio.h>
19 #include <gdk/gdk.h>
20 #include <cairo.h>
21
22 #ifndef __HAVE_BYZANZ_SERIALIZE_H__
23 #define __HAVE_BYZANZ_SERIALIZE_H__
24
25
26 gboolean byzanz_serialize_header (GOutputStream * stream,
27 guint width,
28 guint height,
29 GCancellable * cancellable,
30 GError ** error);
31 gboolean byzanz_serialize (GOutputStream * stream,
32 guint64 msecs,
33 cairo_surface_t * surface,
34 const cairo_region_t * region,
35 GCancellable * cancellable,
36 GError ** error);
37
38 gboolean byzanz_deserialize_header (GInputStream * stream,
39 guint * width,
40 guint * height,
41 GCancellable * cancellable,
42 GError ** error);
43 gboolean byzanz_deserialize (GInputStream * stream,
44 guint64 * msecs_out,
45 cairo_surface_t ** surface_out,
46 cairo_region_t ** region_out,
47 GCancellable * cancellable,
48 GError ** error);
49
50
51 #endif /* __HAVE_BYZANZ_SERIALIZE_H__ */