summaryrefslogtreecommitdiff
path: root/src/nm-session-monitor.h
AgeCommit message (Collapse)AuthorFilesLines
2015-08-13session-monitor: explicitly use singleton instanceThomas Haller1-3/+10
Some functions from nm-session-monitor.c have an implicit access to nm_session_monitor_get(). This is non-obvious behavior. Instead require the explicit session-monitor instance to be provided -- where needed.
2015-08-05all: make use of new header file "nm-default.h"Thomas Haller1-2/+1
2015-07-24all: rename nm-glib-compat.h to nm-glib.h, use everywhereDan Winship1-1/+1
Rather than randomly including one or more of <glib.h>, <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to nm-glib.h, include <gio/gio.h> from there, and then change all .c files in NM to include "nm-glib.h" rather than including the glib headers directly. (Public headers files still have to include the real glib headers, since nm-glib.h isn't installed...) Also, remove glib includes from header files that are already including a base object header file (which must itself already include the glib headers).
2015-01-05session: merge nm-session-monitor-* modulesPavel Šimerda1-19/+1
Merged all session tracking modules into one source file and simplified it substantially. Now systemd-logind and ConsoleKit support can be built in at the same time and both are detected at runtime. This is useful on source based as well as binary distributions. Original patch written by Fabio Erculiani <lxnay@sabayon.org>, modified by Pavel Šimerda <psimerda@redhat.com> and Thomas Haller <thaller@redhat.com>. https://bugzilla.gnome.org/show_bug.cgi?id=686997 Acked-By: Thomas Haller <thaller@redhat.com>
2015-01-05session: switch code to nm_session_monitor_{,dis}connect()Pavel Šimerda1-1/+5
Acked-By: Thomas Haller <thaller@redhat.com>
2015-01-05session: switch code to nm_session_monitor_session_exists()Pavel Šimerda1-0/+1
Acked-By: Thomas Haller <thaller@redhat.com>
2015-01-05session: merge nm-session-utils into nm-session-managerPavel Šimerda1-0/+3
Acked-By: Thomas Haller <thaller@redhat.com>
2014-08-16all: fix up multiple-include-guard definesDan Winship1-3/+3
Previously, src/nm-ip4-config.h, libnm/nm-ip4-config.h, and libnm-glib/nm-ip4-config.h all used "NM_IP4_CONFIG_H" as an include guard, which meant that nm-test-utils.h could not tell which of them was being included (and so, eg, if you tried to include nm-ip4-config.h in a libnm test, it would fail to compile because nm-test-utils.h was referring to symbols in src/nm-ip4-config.h). Fix this by changing the include guards in the non-API-stable parts of the tree: - libnm-glib/nm-ip4-config.h remains NM_IP4_CONFIG_H - libnm/nm-ip4-config.h now uses __NM_IP4_CONFIG_H__ - src/nm-ip4-config.h now uses __NETWORKMANAGER_IP4_CONFIG_H__ And likewise for all other headers. The two non-"nm"-prefixed headers, libnm/NetworkManager.h and src/NetworkManagerUtils.h are now __NETWORKMANAGER_H__ and __NETWORKMANAGER_UTILS_H__ respectively, which, while not entirely consistent with the general scheme, do still mostly make sense in isolation.
2014-07-23core: fill in nm-types.h, clean out other headersDan Winship1-1/+2
Clean up some of the cross-includes between headers (which made it so that, eg, if you included NetworkManagerUtils.h in a test program, you would need to build the test with -I$(top_srcdir)/src/platform, and if you included nm-device.h you'd need $(POLKIT_CFLAGS)) by moving all GObject struct definitions for src/ and src/settings/ into nm-types.h (which already existed to solve the NMDevice/NMActRequest circular references). Update various .c files to explicitly include the headers they used to get implicitly, and remove some now-unnecessary -I options from Makefiles.
2010-10-26settings: clean up connection visibility and session change handlingDan Williams1-0/+2
2010-10-26core: use new session monitor in system connection classDan Williams1-0/+2
2010-10-25core: move session monitor to coreDan Williams1-0/+60
We'll need it for agent authentication too, so move it out of system settings specific code.