~lightdm-team/lightdm/1.2

« back to all changes in this revision

Viewing changes to src/display-manager.h

  • Committer: robert.ancell at gmail
  • Date: 2010-04-29 11:08:26 UTC
  • Revision ID: robert.ancell@gmail.com-20100429110826-eef3w3c9hl80pxxy
Compiles and does something

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Canonical Ltd.
 
3
 * Author: Robert Ancell <robert.ancell@canonical.com>
 
4
 * 
 
5
 * This program is free software: you can redistribute it and/or modify it under
 
6
 * the terms of the GNU General Public License as published by the Free Software
 
7
 * Foundation, either version 3 of the License, or (at your option) any later
 
8
 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
 
9
 * license.
 
10
 */
 
11
 
 
12
#ifndef _DISPLAY_MANAGER_H_
 
13
#define _DISPLAY_MANAGER_H_
 
14
 
 
15
#include <glib-object.h>
 
16
#include "display.h"
 
17
 
 
18
G_BEGIN_DECLS
 
19
 
 
20
#define DISPLAY_MANAGER_TYPE (display_manager_get_type())
 
21
#define DISPLAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_TYPE, DisplayManager));
 
22
 
 
23
typedef struct DisplayManagerPrivate DisplayManagerPrivate;
 
24
 
 
25
typedef struct
 
26
{
 
27
    GObject         parent_instance;
 
28
    DisplayManagerPrivate *priv;
 
29
} DisplayManager;
 
30
 
 
31
typedef struct
 
32
{
 
33
    GObjectClass parent_class;  
 
34
} DisplayManagerClass;
 
35
 
 
36
GType display_manager_get_type (void);
 
37
 
 
38
DisplayManager *display_manager_new (void);
 
39
 
 
40
Display *display_manager_add_display (DisplayManager *manager);
 
41
 
 
42
G_END_DECLS
 
43
 
 
44
#endif /* _DISPLAY_MANAGER_H_ */