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 unsigned int uint_sqrt(unsigned int n);
29 int navit_utf8_strcasecmp(const char *s1, const char *s2);
30 GList * g_hash_to_list(GHashTable *h);
31 GList * g_hash_to_list_keys(GHashTable *h);
32 gchar * g_strconcat_printf(gchar *buffer, gchar *fmt, ...);
33 #if defined(_WIN32) || defined(__CEGCC__) || defined (__APPLE__) || defined(HAVE_API_ANDROID)
34 #if defined(_UNICODE)
35 wchar_t* newSysString(const char *toconvert);
36 #else
37 char * newSysString(const char *toconvert);
38 #endif
39 #endif
40 unsigned int iso8601_to_secs(char *iso8601);
41 char * current_to_iso8601(void);
42 
43 #if defined(_MSC_VER) || (!defined(HAVE_GETTIMEOFDAY) && defined(HAVE_API_WIN32_BASE))
44 
45 #include <winsock.h>
46 
47 int gettimeofday(struct timeval *time, void *);
48 
49 #endif
50 
51 struct spawn_process_info;
52 char * shell_escape(char *arg);
53 struct spawn_process_info* spawn_process(char **argv);
55 
57 void spawn_process_init(void);
58 
59 #endif
60 
61 void get_compass_direction(char *buffer, int angle, int mode);
void spawn_process_init(void)
Definition: util.c:684
static double s1
Definition: geod_for.c:27
GList * g_hash_to_list_keys(GHashTable *h)
Definition: util.c:113
char * shell_escape(char *arg)
Definition: util.c:382
char * current_to_iso8601(void)
Outputs local system time in ISO 8601 format.
Definition: util.c:345
gchar * g_strconcat_printf(gchar *buffer, gchar *fmt,...)
Definition: util.c:120
void strtoupper(char *dest, const char *src)
Definition: util.c:41
int navit_utf8_strcasecmp(const char *s1, const char *s2)
Definition: util.c:84
struct spawn_process_info * spawn_process(char **argv)
Definition: util.c:491
int mode
Definition: graphics_win32.c:59
GList * g_hash_to_list(GHashTable *h)
Definition: util.c:101
Definition: mg.h:33
void strtolower(char *dest, const char *src)
Definition: util.c:47
Definition: maptool.h:168
static char * argv[]
Definition: graphics_qt_qpainter.cpp:513
int spawn_process_check_status(struct spawn_process_info *pi, int block)
Definition: util.c:579
Definition: util.c:366
void spawn_process_info_free(struct spawn_process_info *pi)
Definition: util.c:647
unsigned int iso8601_to_secs(char *iso8601)
Converts an ISO 8601-style time string into epoch time.
Definition: util.c:314
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:711
unsigned int uint_sqrt(unsigned int n)
Fast compute of square root for unsigned ints.
Definition: util.c:59