navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
util.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_types_H
21 #define NAVIT_types_H
22 
23 #include <ctype.h>
24 #include "config.h"
25 
26 void strtoupper(char *dest, const char *src);
27 void strtolower(char *dest, const char *src);
28 int navit_utf8_strcasecmp(const char *s1, const char *s2);
29 GList * g_hash_to_list(GHashTable *h);
30 GList * g_hash_to_list_keys(GHashTable *h);
31 gchar * g_strconcat_printf(gchar *buffer, gchar *fmt, ...);
32 #if defined(_WIN32) || defined(__CEGCC__) || defined (__APPLE__) || defined(HAVE_API_ANDROID)
33 #if defined(_UNICODE)
34 wchar_t* newSysString(const char *toconvert);
35 #else
36 char * newSysString(const char *toconvert);
37 #endif
38 #endif
39 unsigned int iso8601_to_secs(char *iso8601);
40 char * current_to_iso8601(void);
41 
42 #if defined(_MSC_VER) || (!defined(HAVE_GETTIMEOFDAY) && defined(HAVE_API_WIN32_BASE))
43 
44 #include <winsock.h>
45 
46 int gettimeofday(struct timeval *time, void *);
47 
48 #endif
49 
50 struct spawn_process_info;
51 char * shell_escape(char *arg);
52 struct spawn_process_info* spawn_process(char **argv);
54 
56 void spawn_process_init(void);
57 
58 #endif
59 
60 void get_compass_direction(char *buffer, int angle, int mode);
void spawn_process_init(void)
Definition: util.c:700
static double s1
Definition: geod_for.c:27
GList * g_hash_to_list_keys(GHashTable *h)
Definition: util.c:95
char * shell_escape(char *arg)
Definition: util.c:392
char * current_to_iso8601(void)
Outputs local system time in ISO 8601 format.
Definition: util.c:353
gchar * g_strconcat_printf(gchar *buffer, gchar *fmt,...)
Definition: util.c:104
void strtoupper(char *dest, const char *src)
Definition: util.c:42
int navit_utf8_strcasecmp(const char *s1, const char *s2)
Definition: util.c:58
struct spawn_process_info * spawn_process(char **argv)
Definition: util.c:504
int mode
Definition: graphics_win32.c:59
GList * g_hash_to_list(GHashTable *h)
Definition: util.c:79
Definition: mg.h:33
void strtolower(char *dest, const char *src)
Definition: util.c:50
Definition: maptool.h:168
static char * argv[]
Definition: graphics_qt_qpainter.cpp:535
int spawn_process_check_status(struct spawn_process_info *pi, int block)
Definition: util.c:593
Definition: util.c:375
void spawn_process_info_free(struct spawn_process_info *pi)
Definition: util.c:661
unsigned int iso8601_to_secs(char *iso8601)
Converts an ISO 8601-style time string into epoch time.
Definition: util.c:320
tuple dest
Definition: startup.py:4
void get_compass_direction(char *buffer, int angle, int mode)
Get printable compass direction from an angle.
Definition: util.c:729