~codygarver/+junk/ind-sess

« back to all changes in this revision

Viewing changes to src/backend-dbus/utils.h

  • Committer: Cody Garver
  • Date: 2014-04-03 17:08:08 UTC
  • Revision ID: cody@elementaryos.org-20140403170808-z56s93rorb1dzvmk
Initial import, version 12.10.5+14.04.20140324-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * Authors:
 
5
 *   Charles Kerr <charles.kerr@canonical.com>
 
6
 *
 
7
 * This program is free software: you can redistribute it and/or modify it
 
8
 * under the terms of the GNU General Public License version 3, as published
 
9
 * by the Free Software Foundation.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
13
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
14
 * PURPOSE.  See the GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License along
 
17
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef __DBUS_UTILS_H__
 
21
#define __DBUS_UTILS_H__
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
26
#include "dbus-accounts.h"
 
27
#include "dbus-display-manager.h"
 
28
#include "dbus-login1-manager.h"
 
29
#include "dbus-login1-seat.h"
 
30
 
 
31
typedef void (*indicator_session_util_session_proxies_func)(
 
32
                   Login1Manager      * login1_manager,
 
33
                   Login1Seat         * login1_seat,
 
34
                   DisplayManagerSeat * display_manager_seat,
 
35
                   Accounts           * account_manager,
 
36
                   GCancellable       * cancellable,
 
37
                   gpointer             user_data);
 
38
 
 
39
/**
 
40
 * Both users-dbus and guest-dbus need some of these proxies.
 
41
 * Getting them all involves a lot of steps, so instead of repeating
 
42
 * ourselves, the common dbus steps are extracted to this func.
 
43
 */
 
44
void indicator_session_util_get_session_proxies (
 
45
                   indicator_session_util_session_proxies_func   func,
 
46
                   GCancellable                                * cancellable,
 
47
                   gpointer                                      user_data);
 
48
 
 
49
#endif