OpenCPN Partial API docs
macutils.h
1 /***************************************************************************
2  * Copyright (C) 2007..2010 by David S. Register, Richard M Smith *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18  ***************************************************************************
19  *
20  */
21 
22 #ifndef MACUTILS_H_INCLUDED_H__
23 #define MACUTILS_H_INCLUDED_H__
24 
25 #include "config.h"
26 
27 #ifdef __WXOSX__
28 
29 #define MAX_SERIAL_PORTS 10
30 
31 extern "C" int FindSerialPortNames(char** pNames, int iMaxNames);
32 extern "C" bool ValidateSerialPortName(const char* pPortName,
33  int iMaxNamesToSearch);
34 extern "C" int GetMacMonitorSize();
35 
36 extern "C" int ProcessIsTranslated();
37 extern "C" int IsAppleSilicon();
38 
39 #endif // __WXOSX__
40 
41 #endif // MACUTILS_H_INCLUDED_H__