Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps/gsio.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-12-22 10:53:40 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2004-12-22 10:53:40 (GMT)
commitfb1055dd92e9aa1173de92add6f4a6f5e4a62d2d (patch)
treebb484c5f9536e27f6898984ad0d6a50a29d481d4 /ps/gsio.h
parent8ace3afedf4c808e2202fd104f3a5e895901a673 (diff)
Import ggv backend. Not hooked up yet.
2004-12-22 Marco Pesenti Gritti <marco@gnome.org> * 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.
Diffstat (limited to 'ps/gsio.h')
-rw-r--r--ps/gsio.h45
1 files changed, 45 insertions, 0 deletions
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 <jaka@gnu.org>
+ *
+ * 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 <gtkgs.h>
+
+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__ */