#define _GNU_SOURCE
-#define _(String) gettext(String)
-
#include <config.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/wait.h>
#include <glib/gstdio.h>
+#include <glib/gi18n.h>
#ifdef WITH_GST
#include <gst/gst.h>
#endif
* Save state and destroy all non-UI elements created by this program in
* preparation for exiting.
*/
-void mapper_destroy(void)
+static void
+mapper_destroy(void)
{
printf("%s()\n", __PRETTY_FUNCTION__);
_conn_state = RCVR_OFF;
}
-gint mapper_osso_init(void)
+static gint
+mapper_osso_init(void)
{
#ifdef WITH_OSSO
/* Initialize _osso. */
return 0;
}
-gint mapper_osso_cb_init(void)
+static gint
+mapper_osso_cb_init(void)
{
#ifdef WITH_OSSO
if (OSSO_OK != osso_rpc_set_default_cb_f(_osso, dbus_cb_default, NULL)) {
return 0;
}
-void timezone_init(void)
+static void
+timezone_init(void)
{
time_t time1;
struct tm time2;
_gmtoffset = time2.tm_gmtoff;
}
-gint main(gint argc, gchar * argv[])
+gint
+main(gint argc, gchar * argv[])
{
printf("%s()\n", __PRETTY_FUNCTION__);
g_thread_init(NULL);
g_type_init();
-#ifdef WITH_OSSO
if (mapper_osso_init()!=0)
return 1;
-#endif
set_var_defaults();
#ifdef WITH_GST
gst_init(&argc, &argv);
timezone_init();
gpx_init();
mapper_init(argc, argv);
-#ifdef WITH_OSSO
if (mapper_osso_cb_init()!=0)
return 1;
-#endif
gtk_main();
mapper_destroy();
#ifdef WITH_GST