summaryrefslogtreecommitdiffstats
path: root/desktop/inc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-03-05 13:16:36 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-12 15:35:33 +0000
commit8887de72c184bec6225a952ec90433ae1b7a5b26 (patch)
treef3d90d221b5eba49aa14ff713c7d11216935b233 /desktop/inc
parentjanitorial: readability (diff)
downloadcore-8887de72c184bec6225a952ec90433ae1b7a5b26.tar.gz
core-8887de72c184bec6225a952ec90433ae1b7a5b26.zip
liblibo: create initial liblibreoffice.
bootstrap libreoffice, start a dummy test-harness: can't use CppUnit or link to any URE / LibreOffice libraries. Change-Id: I855b640557f93959749e966a2d8e5e577fd84574
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/liblibreoffice.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/desktop/inc/liblibreoffice.h b/desktop/inc/liblibreoffice.h
new file mode 100644
index 000000000000..dde50cec88e1
--- /dev/null
+++ b/desktop/inc/liblibreoffice.h
@@ -0,0 +1,38 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+/*
+ * A simple C API to setup and use libreoffice
+ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct {
+ int errno;
+ char *message;
+} LOError;
+
+typedef int loboolean;
+typedef struct _LODocument LODocument;
+
+loboolean lo_initialize (const char *install_path);
+
+void lo_error_free (LOError *error);
+LOError *lo_error_new (int errno, const char *message);
+
+LODocument *lo_document_load (const char *url, LOError **opt_error);
+loboolean lo_document_save (const char *url, LOError **opt_error);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+