summaryrefslogtreecommitdiff
path: root/src/macos.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-29 08:26:22 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-29 08:26:22 +0300
commitf90104259c4929c86c1af630c4eff62580c3028b (patch)
tree1388a03592107b2bb59d90cc3caccfe7ea5b8305 /src/macos.h
parent3c63fd4aad97b87ab1f854e5304bbeee5fd76b7d (diff)
Moved macOS sources to parent dir
Diffstat (limited to 'src/macos.h')
-rw-r--r--src/macos.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/macos.h b/src/macos.h
new file mode 100644
index 00000000..07990090
--- /dev/null
+++ b/src/macos.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#pragma once
24
25#include "ui/util.h"
26
27/* Platform-specific functionality for macOS */
28
29void setupApplication_MacOS (void);
30void insertMenuItems_MacOS (const char *menuLabel, int atIndex, const iMenuItem *items, size_t count);
31void handleCommand_MacOS (const char *cmd);