summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-08 13:35:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-08 13:35:45 +0200
commitf3f69b01bc53c21c8ce83dfbd97e05eb7beafc8e (patch)
tree0e12a5203e17126a191c66cd2b491209bc1bdfe9 /src/Daemon
parenta4257108013f15653724b5ed3b3c208e071567c5 (diff)
downloadabrt-f3f69b01bc53c21c8ce83dfbd97e05eb7beafc8e.tar.gz
abrt-f3f69b01bc53c21c8ce83dfbd97e05eb7beafc8e.tar.xz
abrt-f3f69b01bc53c21c8ce83dfbd97e05eb7beafc8e.zip
Daemon.cpp: improve dbus API doc in comments. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/Daemon.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index f680471f..a7c97372 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -51,8 +51,11 @@
* - GetCrashInfos(): returns a vector_crash_infos_t (vector_map_vector_string_t)
* of crashes for given uid
* v[N]["executable"/"uid"/"kernel"/"backtrace"][N] = "contents"
- * - CreateReport(UUID): starts creating a report for /var/cache/abrt/DIR with this UUID
- * Returns job id (uint64)
+ * - CreateReport(UUID): starts creating a report for /var/cache/abrt/DIR with this UUID.
+ * Returns job id (uint64).
+ * Emits JobStarted(client_dbus_ID,job_id) dbus signal.
+ * After it returns, when report creation thread has finished,
+ * JobDone(client_dbus_ID,UUID) dbus signal is emitted.
* - GetJobResult(UUID): returns map_crash_report_t (map_vector_string_t)
* - Report(map_crash_report_t (map_vector_string_t)):
* "Please report this crash": calls Report() of all registered reporter plugins
@@ -67,7 +70,20 @@
* - SetSettings(map_abrt_settings_t): returns void
*
* DBus signals we emit:
- * - ...
+ * - Crash(progname,uid) - a new crash occurred (new /var/cache/abrt/DIR is found)
+ * - JobStarted(client_dbus_ID,job_id) - see CreateReport above.
+ * Sent as unicast to the client which did CreateReport.
+ * - JobDone(client_dbus_ID,UUID) - see CreateReport above.
+ * Sent as unicast to the client which did CreateReport.
+ * - Error(msg)
+ * - Warning(msg[,job_id])
+ * - Update(msg,job_id)
+ *
+ * TODO:
+ * - Error/Warning/Update dbus signals must be unicast too
+ * - API does not really need JobStarted dbus signal at all, and JobDone signal
+ * does not need to pass any parameters - out clients never sent multiple
+ * CreateReport's.
*/