diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-03-05 13:16:36 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-12 15:35:33 +0000 |
commit | 8887de72c184bec6225a952ec90433ae1b7a5b26 (patch) | |
tree | f3d90d221b5eba49aa14ff713c7d11216935b233 /desktop/inc | |
parent | 6ea685090806a2a2f39b8d5ec6a749eaf9b1856e (diff) |
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.h | 38 |
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: */ + |