mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-05 15:46:00 +01:00
- work on dbus interface
This commit is contained in:
@@ -104,14 +104,12 @@ namespace DBus
|
||||
|
||||
periodic();
|
||||
|
||||
for (vector<struct pollfd>::const_iterator it2 = pollfds.begin(); it2 != pollfds.end(); ++it2)
|
||||
{
|
||||
for (vector<struct pollfd>::const_iterator it2 = pollfds.begin(); it2 != pollfds.end(); ++it2)
|
||||
if (it2->fd == wakeup_pipe[0] && (it2->revents & POLLIN))
|
||||
{
|
||||
if (it2->fd == wakeup_pipe[0] && (it2->revents & POLLIN))
|
||||
{
|
||||
char arbitrary;
|
||||
read(wakeup_pipe[0], &arbitrary, 1);
|
||||
}
|
||||
char arbitrary;
|
||||
read(wakeup_pipe[0], &arbitrary, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace DBus
|
||||
virtual int periodic_timeout() = 0;
|
||||
virtual void periodic() = 0;
|
||||
|
||||
protected:
|
||||
private:
|
||||
|
||||
struct Watch
|
||||
{
|
||||
|
||||
@@ -193,10 +193,6 @@ main(int argc, char** argv)
|
||||
setLogQuery(&log_query);
|
||||
#endif
|
||||
|
||||
y2mil("Loading snapper configs");
|
||||
|
||||
meta_snappers.init();
|
||||
|
||||
dbus_threads_init_default();
|
||||
|
||||
MyMainLoop mainloop(DBUS_BUS_SYSTEM);
|
||||
@@ -207,6 +203,10 @@ main(int argc, char** argv)
|
||||
|
||||
mainloop.request_name(SERVICE, DBUS_NAME_FLAG_REPLACE_EXISTING);
|
||||
|
||||
y2mil("Loading snapper configs");
|
||||
|
||||
meta_snappers.init();
|
||||
|
||||
y2mil("Listening for method calls and signals");
|
||||
|
||||
mainloop.run();
|
||||
|
||||
Reference in New Issue
Block a user