Gammu internals  1.38.0
dummy.h
Go to the documentation of this file.
1 /* Copyright (c) 2009 by Michal Čihař */
2 
15 #ifndef __phone_dummy_h__
16 #define __phone_dummy_h__
17 
18 #include <stdio.h>
19 #include <limits.h>
20 #ifdef WIN32
21 #include "../../../helper/win32-dirent.h"
22 #else
23 #include <dirent.h>
24 #endif
25 
26 /* Win32 compatibility */
27 #ifndef PATH_MAX
28 #ifdef MAX_PATH
29 #define PATH_MAX (MAX_PATH)
30 #else
31 #define PATH_MAX (4069)
32 #endif
33 #endif
34 
35 #define DUMMY_MAX_LOCATION (10000)
36 #define DUMMY_MAX_SMS (10000)
37 #define DUMMY_MAX_MEM (10000)
38 #define DUMMY_MAX_TODO (10000)
39 #define DUMMY_MAX_FS_DEPTH (20)
40 
41 typedef struct {
42  FILE *log_file;
46  DIR *dir[DUMMY_MAX_FS_DEPTH + 1];
47  char dirnames[DUMMY_MAX_FS_DEPTH + 1][PATH_MAX];
48  int fs_depth;
49  size_t devlen;
51 
52 #endif
53 
55 
56 /* How should editor hadle tabs in this file? Add editor commands here.
57  * vim: noexpandtab sw=8 ts=8 sts=8:
58  */
#define PATH_MAX
Definition: dummy.h:31
GSM_SMSC SMSC
Definition: dummy.h:43
FILE * log_file
Definition: dummy.h:42
size_t devlen
Definition: dummy.h:49
#define DUMMY_MAX_FS_DEPTH
Definition: dummy.h:39
GSM_MultiCallDivert diverts
Definition: dummy.h:45
GSM_Locale locale
Definition: dummy.h:44