1 /*
2   Native File Dialog
3 
4   Internal, common across platforms
5 
6   http://www.frogtoss.com/labs
7  */
8 
9 
10 #ifndef _NFD_COMMON_H
11 #define _NFD_COMMON_H
12 
13 #include "nfd.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #define NFD_MAX_STRLEN 256
20 #define _NFD_UNUSED(x) ((void)x)
21 
22 #define NFD_UTF8_BOM "\xEF\xBB\xBF"
23 
24 
25 void  *NFDi_Malloc( size_t bytes );
26 void   NFDi_Free( void *ptr );
27 void   NFDi_SetError( const char *msg );
28 int    NFDi_SafeStrncpy( char *dst, const char *src, size_t maxCopy );
29 size_t NFDi_UTF8_Strlen( const nfdchar_t *str );
30 int    NFDi_IsFilterSegmentChar( char ch );
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 
37 #endif
38