From fb1055dd92e9aa1173de92add6f4a6f5e4a62d2d Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 22 Dec 2004 10:53:40 +0000 Subject: Import ggv backend. Not hooked up yet. 2004-12-22 Marco Pesenti Gritti * Makefile.am: * configure.ac: * ps/Makefile.am: * ps/ggvutils.c: * ps/ggvutils.h: * ps/gsdefaults.c: * ps/gsdefaults.h: * ps/gsio.c: * ps/gsio.h: * ps/gtkgs.c: * ps/gtkgs.h: * ps/ps.c: * ps/ps.h: Import ggv backend. Not hooked up yet. --- (limited to 'ps/gsio.h') diff --git a/ps/gsio.h b/ps/gsio.h new file mode 100644 index 0000000..31a7823 --- /dev/null +++ b/ps/gsio.h @@ -0,0 +1,45 @@ +/* + * gsio.h: an IO abstraction + * + * Copyright 2002 - 2005 The Free Software Foundation + * + * Author: jaKa Mocnik + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __GS_IO_H__ +#define __GS_IO_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _GtkGSDocSink GtkGSDocSink; + +gchar *gtk_gs_get_pages(GtkGS * gs, gint * pages); +gchar *gtk_gs_get_document(GtkGS * gs); + +GtkGSDocSink *gtk_gs_doc_sink_new(void); +void gtk_gs_doc_sink_free(GtkGSDocSink * sink); +void gtk_gs_doc_sink_write(GtkGSDocSink * sink, const gchar * buf, int len); +void gtk_gs_doc_sink_printf_v(GtkGSDocSink * sink, const gchar * fmt, + va_list ap); +void gtk_gs_doc_sink_printf(GtkGSDocSink * sink, const gchar * fmt, ...); +gchar *gtk_gs_doc_sink_get_buffer(GtkGSDocSink * sink); + +G_END_DECLS + +#endif /* __GS_IO_H__ */ -- cgit v0.9.1