~darkxst/ubuntu/trusty/gdm/nokill

« back to all changes in this revision

Viewing changes to common/gdm-signal-handler.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha, Tim Lunn, Jeremy Bicha, Robert Ancell
  • Date: 2013-05-31 22:36:08 UTC
  • mfrom: (1.4.55)
  • Revision ID: package-import@ubuntu.com-20130531223608-33uo85niksee5460
Tags: 3.8.1.1-0ubuntu1
[ Tim Lunn ]
* New upstream release
* debian/patches/ubuntu_dont_catch_sigsegv.patch:
  - Dropped, obsolete
* debian/rules:
  - Don't rename gdm binary since that's already been
    done in the new version

[ Jeremy Bicha ]
* debian/control.in: Bump minimum glib
* debian/watch: Watch for unstable releases
* debian/patches/00git_logind_check.patch:
  - Dropped, applied in new release
* debian/patches/08_frequent-users_greeter.patch: Refreshed

[ Robert Ancell ]
* New upstream release
* debian/patches/ubuntu_daemon_autologin_tracking.patch:
* debian/patches/ubuntu_ensure_dirs.patch:
* debian/patches/ubuntu_slave-only-set-up-autologin.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 *
19
 
 */
20
 
 
21
 
 
22
 
#ifndef __GDM_SIGNAL_HANDLER_H
23
 
#define __GDM_SIGNAL_HANDLER_H
24
 
 
25
 
#include <glib-object.h>
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
#define GDM_TYPE_SIGNAL_HANDLER         (gdm_signal_handler_get_type ())
30
 
#define GDM_SIGNAL_HANDLER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_SIGNAL_HANDLER, GdmSignalHandler))
31
 
#define GDM_SIGNAL_HANDLER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_SIGNAL_HANDLER, GdmSignalHandlerClass))
32
 
#define GDM_IS_SIGNAL_HANDLER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_SIGNAL_HANDLER))
33
 
#define GDM_IS_SIGNAL_HANDLER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_SIGNAL_HANDLER))
34
 
#define GDM_SIGNAL_HANDLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_SIGNAL_HANDLER, GdmSignalHandlerClass))
35
 
 
36
 
 
37
 
typedef gboolean (*GdmSignalHandlerFunc) (int           signal,
38
 
                                          gpointer      data);
39
 
 
40
 
typedef struct GdmSignalHandlerPrivate GdmSignalHandlerPrivate;
41
 
 
42
 
typedef struct
43
 
{
44
 
        GObject                  parent;
45
 
        GdmSignalHandlerPrivate *priv;
46
 
} GdmSignalHandler;
47
 
 
48
 
typedef struct
49
 
{
50
 
        GObjectClass   parent_class;
51
 
} GdmSignalHandlerClass;
52
 
 
53
 
GType               gdm_signal_handler_get_type                (void);
54
 
 
55
 
GdmSignalHandler *  gdm_signal_handler_new                     (void);
56
 
void                gdm_signal_handler_set_fatal_func          (GdmSignalHandler    *handler,
57
 
                                                                GDestroyNotify       func,
58
 
                                                                gpointer             user_data);
59
 
 
60
 
void                gdm_signal_handler_add_fatal               (GdmSignalHandler    *handler);
61
 
guint               gdm_signal_handler_add                     (GdmSignalHandler    *handler,
62
 
                                                                int                  signal_number,
63
 
                                                                GdmSignalHandlerFunc callback,
64
 
                                                                gpointer             data);
65
 
void                gdm_signal_handler_remove                  (GdmSignalHandler    *handler,
66
 
                                                                guint                id);
67
 
void                gdm_signal_handler_remove_func             (GdmSignalHandler    *handler,
68
 
                                                                guint                signal_number,
69
 
                                                                GdmSignalHandlerFunc callback,
70
 
                                                                gpointer             data);
71
 
 
72
 
 
73
 
G_END_DECLS
74
 
 
75
 
#endif /* __GDM_SIGNAL_HANDLER_H */