summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServerDBus.cpp
Commit message (Collapse)AuthorAgeFilesLines
* abrt-applet: remove dbus-c++ glue. -50k of codeDenys Vlasenko2009-09-181-3/+4
| | | | | | | | | | text data bss dec hex filename 70529 2144 1528 74201 121d9 abrt.t0/UNPACKED/usr/bin/abrt-applet 22116 1688 376 24180 5e74 abrt.t1/UNPACKED/usr/bin/abrt-applet Also, we do not use dbus-c++ anymore, which is 200k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factored out dbus init from CommLayerServerDBus.cpp to lib/Utils/abrt_dbus.cppDenys Vlasenko2009-09-171-181/+2
| | | | | | this will allow me to reuse this code for applet Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add dbus signalization when quota exceededNikola Pajkovsky2009-09-171-0/+10
|
* remove C++ dbus glue in src/CLI; fix a bug in --reportDenys Vlasenko2009-09-171-351/+28
| | | | | | | Several kb of code removed. The nly remaining use of C++ glue is desktop applet. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* call the new wrapper functions for register/unregister plugins in DBUS layerdnovotny2009-09-091-2/+4
|
* added polkit security check in SetSettingsdnovotny2009-09-091-1/+2
|
* remove unused Error() methods and dbus signals.Denys Vlasenko2009-09-081-10/+0
| | | | | | I guess it turned out Warning() works just fine. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make Warning, Error and Update send unicast dbus messagesDenys Vlasenko2009-09-081-34/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo correctedDenys Vlasenko2009-09-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: eliminate g_pending_jobs[] map and all corresponding TODOs :)Denys Vlasenko2009-09-081-40/+42
| | | | | | | | | | -6k: text data bss dec hexfilename 194741 2656 2384 199781 30c65abrt.t1/abrt-0.0.8.5/src/Daemon/.libs/abrtd 188316 2648 2320 193284 2f304abrt.t2/abrt-0.0.8.5/src/Daemon/.libs/abrtd Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: remove unused AnalyzeComplete dbus signalDenys Vlasenko2009-09-081-11/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory work for proper (i.e. unicast) server->client dbus communicationDenys Vlasenko2009-09-071-2/+11
| | | | | | | | + /* send unicast dbus signal */ + if (!dbus_message_set_destination(msg, pDest)) + die_out_of_memory(); Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* correct g_pending_jobs' type; eliminate redundant string passingDenys Vlasenko2009-09-071-14/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CommLayerServerDBus: wire up {Get,Set}Settings as dbus methodsDenys Vlasenko2009-09-031-13/+53
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CommLayerServerDBus: make it resilient (again) against malformed dbus callsDenys Vlasenko2009-09-021-124/+231
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix my mixup of int64/uint64 in dbusDenys Vlasenko2009-09-021-8/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix map_string_string_t typedef name to map_string_t; silly optimizationsDenys Vlasenko2009-09-021-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* optimize type signature string generation for dbusDenys Vlasenko2009-09-011-12/+19
| | | | | | | | | | -1.5k: text data bss dec hex filename 194731 2584 2320 199635 30bd3 abrt.z7/abrt-0.0.8/src/Daemon/.libs/abrt 193117 2592 2320 198029 3058d abrt.z8/abrt-0.0.8/src/Daemon/.libs/abrt Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move die_out_of_memory() to abrtlibDenys Vlasenko2009-09-011-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2009-09-011-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CommLayerServerDBus: rewrote to use dbus, not dbus-c++Denys Vlasenko2009-09-011-185/+777
| | | | | | | | | | | | | | | Expect some rough edges. On the plus side: (1) -15 kb in our own code: text data bss dec hex filename 209057 2664 2640 214361 34559 abrt.z5/abrt-0.0.8/src/Daemon/.libs/abrt 194958 2576 2320 199854 30cae abrt.z6/abrt-0.0.8/src/Daemon/.libs/abrt (2) this will allow us to stop using libdbus-c++-1.so.0 in the future (-200kb of code) (3) a lot of logging added (most on -vvv verbosity level) to help with debug Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* DBUS: return proper ErrorMessage if report failsJiri Moskovcak2009-09-011-1/+11
|
* daemon: log DBus calls with -v; log file creation only with -vvvDenys Vlasenko2009-08-281-7/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify error handling. CrashWatcher.cpp lost a few wrapper functionsDenys Vlasenko2009-08-271-10/+9
| | | | | | -4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added signal JobStarted => removed the ugly sleep() hackJiri Moskovcak2009-08-271-0/+9
|
* don't encode the job id into message string, send it as an separate argumentJiri Moskovcak2009-08-271-2/+11
|
* add job ids (== thread ids) to warning/update DBus messagesDenys Vlasenko2009-08-261-3/+3
| | | | | | | | renamed: comm_layer_inner_warning -> warn_client comm_layer_inner_status -> update_client Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* resolved: Bug 518420 - ordinary user's abrt-applet shows up for root owned ↵Nikola Pajkovsky2009-08-261-2/+3
| | | | crashes
* further simplify CObserver, CCommLayerServer, and CCrashWatcher classesDenys Vlasenko2009-08-261-73/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make some CrashWatcher member functions static; simplify CObserver classDenys Vlasenko2009-08-261-10/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate AddOpenGPGPublicKey() and AddBlackListedPackage() stubsDenys Vlasenko2009-08-261-4/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more sensible loggingDenys Vlasenko2009-08-251-2/+2
| | | | | | | | | | | comm_layer_inner_debug was jumping through the hoops in order to simply send a message to stderr. this can be made much simpler. also, set logmode to LOGMODE_SYSLOG in abrt daemon, making its log visible if it is daemonized. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate one-use class CDBusServer_adaptorDenys Vlasenko2009-08-251-20/+157
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove CreateReport() method from server machinery; add comments about DBusDenys Vlasenko2009-08-251-29/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pass map_crash_report_t by const reference, not by valueDenys Vlasenko2009-08-251-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* separate DBus::Glib::BusDispatcher creating from CommLayerServerDBus creationDenys Vlasenko2009-08-241-4/+9
| | | | | | | | it's technically wrong to do it that way. It was not biting us because we were creating just one object, but it was also ugly. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trivial simplification: make LoadSettings() take char*, not string& paramDenys Vlasenko2009-08-241-5/+4
| | | | | | and some cosmetics... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cleanup (m_XXX -> g_XXX renames and the like)Denys Vlasenko2009-08-211-5/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move lib/CommLayer/CommLayerServer*.{h,cpp} to src/Daemon/, the sole userDenys Vlasenko2009-08-191-0/+147
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>