int
main (int argc, char **argv)
{
  g_type_init ();
  g_set_prgname ("telepathy-salut");

  tp_debug_divert_messages (g_getenv ("SALUT_LOGFILE"));
  debug_set_flags_from_env ();

  if (g_getenv ("SALUT_PERSIST"))
    tp_debug_set_persistent (TRUE);

  return tp_run_connection_manager ("telepathy-salut", VERSION,
                                    salut_create_connection_manager,
                                    argc, argv);
}
Пример #2
0
int
main (int argc,
      char **argv)
{
#ifdef ENABLE_DEBUG
  tp_debug_divert_messages (g_getenv ("DURKA_CM_LOGFILE"));
  tp_debug_set_flags (g_getenv ("DURKA_DEBUG"));

  if (g_getenv ("DURKA_TIMING") != NULL)
    g_log_set_default_handler (tp_debug_timestamped_log_handler, NULL);

  if (g_getenv ("DURKA_PERSIST") != NULL)
    tp_debug_set_persistent (TRUE);
#endif

  return tp_run_connection_manager ("telepathy-durka", VERSION, construct_cm, argc, argv);
}