diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-05-30 14:17:35 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-05-30 14:47:16 +0300 |
commit | 64061d8dd687efa1c78e5284ab01f2f16e5817c3 (patch) | |
tree | c6295a45a6aaad065b94ecb9a2326c51e939ac91 /include | |
parent | loplugin:passstuffbyref (diff) | |
download | core-64061d8dd687efa1c78e5284ab01f2f16e5817c3.tar.gz core-64061d8dd687efa1c78e5284ab01f2f16e5817c3.zip |
Move exithelper.h to include
We will want to use EXITHELPER_CRASH_WITH_RESTART in vcl, too.
Change-Id: If34244a361b157e0e9c7cca55fc34f0574f39984
Diffstat (limited to 'include')
-rw-r--r-- | include/desktop/exithelper.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/desktop/exithelper.h b/include/desktop/exithelper.h new file mode 100644 index 000000000000..d6e337ce0f2a --- /dev/null +++ b/include/desktop/exithelper.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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_DESKTOP_EXITHELPER_H +#define INCLUDED_DESKTOP_EXITHELPER_H + +enum EExitCodes { + /* e.g. used to force showing of the command line help */ + EXITHELPER_NO_ERROR = 0, + /* pipe was detected - second office must terminate itself */ + EXITHELPER_SECOND_OFFICE = 1, + /* an uno exception was catched during startup */ + EXITHELPER_FATAL_ERROR = 77, + /* user force automatic restart after crash */ + EXITHELPER_CRASH_WITH_RESTART = 79, + /* the office restarts itself */ + EXITHELPER_NORMAL_RESTART = 81 +}; + +#endif // INCLUDED_DESKTOP_EXITHELPER_H + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |