add an plugin API to query generic-gui grid-layout
[ardour.git] / libs / ardour / ardour / msvc_libardour.h
1 /*
2     Copyright (C) 2009 John Emmas
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 Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19 #ifndef __msvc_libardour_h__
20 #define __msvc_libardour_h__
21
22 #include <ardour/libardour_visibility.h>
23 #include <limits.h>
24
25 #ifndef _MAX_PATH
26 #define _MAX_PATH  260
27 #endif
28 #ifndef  PATH_MAX
29 #define  PATH_MAX _MAX_PATH
30 #endif
31
32 #define LIBARDOUR_APICALLTYPE __cdecl
33
34 namespace ARDOUR {
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif  /* __cplusplus */
39
40 // LIBARDOUR_API char*  LIBARDOUR_APICALLTYPE placeholder_for_non_msvc_specific_function(s);
41
42 #ifdef __cplusplus
43 }               /* extern "C" */
44 #endif  /* __cplusplus */
45
46 }  // namespace ARDOUR
47
48 #ifdef COMPILER_MSVC
49 #include <rpc.h>
50 //#include <io.h>
51
52 #ifndef __THROW
53 #define __THROW throw()
54 #endif
55 #include <ardourext/sys/time.h>
56
57 namespace ARDOUR {
58
59 #ifdef __cplusplus
60 extern "C" {
61 #endif  /* __cplusplus */
62
63 LIBARDOUR_API int    LIBARDOUR_APICALLTYPE symlink(const char *dest, const char *shortcut, const char *working_directory = 0);
64 LIBARDOUR_API int    LIBARDOUR_APICALLTYPE readlink(const char *__restrict shortcut, char *__restrict buf, size_t bufsize);
65
66 #ifdef __cplusplus
67 }               /* extern "C" */
68 #endif  /* __cplusplus */
69
70 }  // namespace ARDOUR
71
72 #endif  //      COMPILER_MSVC
73 #endif  // __mavc_libardour_h__