if HAVE_XSM
libdesktopEvents_la_LIBADD += @XSM_LIBS@
libdesktopEvents_la_SOURCES += sessionMgr.c
+libdesktopEvents_la_SOURCES += sessionMgrSignals.c
+
+BUILT_SOURCES =
+BUILT_SOURCES += sessionMgrSignals.c
+BUILT_SOURCES += sessionMgrSignals.h
+
+CLEANFILES =
+CLEANFILES += sessionMgrSignals.c
+CLEANFILES += sessionMgrSignals.h
+
+EXTRA_DIST =
+EXTRA_DIST += sessionMgrSignals.gm
+
+sessionMgrSignals.c: $(top_srcdir)/services/plugins/desktopEvents/sessionMgrSignals.gm
+ glib-genmarshal --body $(top_srcdir)/services/plugins/desktopEvents/sessionMgrSignals.gm > \
+ $@ || (rm -f $@ && exit 1)
+
+sessionMgrSignals.h: $(top_srcdir)/services/plugins/desktopEvents/sessionMgrSignals.gm
+ glib-genmarshal --header $(top_srcdir)/services/plugins/desktopEvents/sessionMgrSignals.gm > \
+ $@ || (rm -f $@ && exit 1)
endif
--- /dev/null
+##########################################################
+# Copyright (C) 2011 VMware, Inc. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation version 2.1 and no later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
+# License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+##########################################################
+
+##
+# @file sessionMgrSignals.gm
+#
+# Defines the custom GClosure marshal functions for the desktopEvents::sessionMgr
+# signals.
+#
+# @see desktopEvents.h
+#
+
+# XSM SaveYourself signal.
+VOID:POINTER,INT,BOOLEAN,INT,BOOLEAN