Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Common.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2010 - 2018, 2024 - 2025 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 - 2007 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#if defined(_WIN32)
11#define SYSAPI_WIN32 1
12#define WINAPI_MSWINDOWS 1
13#elif HAVE_CONFIG_H
14#include "Config.h"
15#else
16#error "config.h missing"
17#endif
18
19// define nullptr
20#include <stddef.h>
21
22// make assert available since we use it a lot
23#include <assert.h>
24#include <stdint.h>
25#include <stdlib.h> // IWYU pragma: keep
26#include <string.h> // IWYU pragma: keep
27
28// defined in Carbon
29#if !defined(__MACTYPES__)
30#if defined(__APPLE__)
31#include <CoreServices/CoreServices.h>
32#else
33#endif
34#endif
35
36static const int s_exitSuccess = 0;
37static const int s_exitFailed = 1;
38static const int s_exitTerminated = 2;
39static const int s_exitArgs = 3;
40static const int s_exitConfig = 4;
static const int s_exitConfig
App was unable to read the configuration.
Definition Common.h:40
static const int s_exitSuccess
App successfully completed.
Definition Common.h:36
static const int s_exitTerminated
App was kill by a signal.
Definition Common.h:38
static const int s_exitFailed
App had a general failure.
Definition Common.h:37
static const int s_exitArgs
App was unable to run due to bad arguments being passed.
Definition Common.h:39