summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-21 19:27:54 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-21 19:27:54 +0200
commitaa09d40fdcaf9abfe750929c5fe3b19ac1cef0cb (patch)
tree9b3fb66246e6993ada10922ef249cc0ee43d215e /src/Daemon/CrashWatcher.h
parent60a0355316954c96febd7bcd46862a4145a800cd (diff)
downloadabrt-aa09d40fdcaf9abfe750929c5fe3b19ac1cef0cb.tar.gz
abrt-aa09d40fdcaf9abfe750929c5fe3b19ac1cef0cb.tar.xz
abrt-aa09d40fdcaf9abfe750929c5fe3b19ac1cef0cb.zip
move most of CCrashWatcher's init/deinit into daemon's main()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/CrashWatcher.h')
-rw-r--r--src/Daemon/CrashWatcher.h35
1 files changed, 8 insertions, 27 deletions
diff --git a/src/Daemon/CrashWatcher.h b/src/Daemon/CrashWatcher.h
index 8fe7fb34..4494dfbe 100644
--- a/src/Daemon/CrashWatcher.h
+++ b/src/Daemon/CrashWatcher.h
@@ -55,8 +55,7 @@ class CCrashWatcher
{
public:
- //CCrashWatcher(const std::string& pPath,DBus::Connection &connection);
- CCrashWatcher(const std::string& pPath);
+ CCrashWatcher();
virtual ~CCrashWatcher();
public:
@@ -84,37 +83,19 @@ class CCrashWatcher
};
+/* used only for ->Debug(), ->Warning() etc calls */
extern CCrashWatcher *g_cw;
-extern int m_nFd;
-extern GIOChannel* m_pGio;
-extern GMainLoop *m_pMainloop;
-extern std::string m_sTarget;
-extern CMiddleWare *m_pMW;
+/* conduit for these messages */
extern CCommLayerServer *m_pCommLayer;
-extern CSettings *m_pSettings;
-/**
+
+extern CMiddleWare *m_pMW;
+
+/*
* Map to cache the results from CreateReport_t
* <UID, <UUID, result>>
*/
extern std::map<const std::string, std::map <int, map_crash_report_t > > m_pending_jobs;
-/**
-* mutex to protect m_pending_jobs from being accesed by multiple threads at the same time
-*/
+/* mutex to protect m_pending_jobs */
extern pthread_mutex_t m_pJobsMutex;
-
-//extern gboolean handle_event_cb(GIOChannel *gio, GIOCondition condition, gpointer data);
-//extern void *create_report(void *arg);
-//extern gboolean cron_activation_periodic_cb(gpointer data);
-//extern gboolean cron_activation_one_cb(gpointer data);
-//extern gboolean cron_activation_reshedule_cb(gpointer data);
-//extern void cron_delete_callback_data_cb(gpointer data);
-//extern void CreatePidFile();
-//extern void Lock();
-extern void SetUpMW();
-extern void SetUpCron();
-/* finds dumps created when daemon wasn't running */
-// FIXME: how to catch abrt itself without this?
-extern void FindNewDumps(const std::string& pPath);
-
#endif /*CRASHWATCHER_H_*/