~larsu/indicator-session/glib-deadlock-workaround

« back to all changes in this revision

Viewing changes to src/backend.h

  • Committer: Charles Kerr
  • Date: 2013-03-22 21:34:34 UTC
  • mto: (384.2.29 ng)
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130322213434-a85qbob8bi4fvfx2
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%.

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 __INDICATOR_SESSION_BACKEND_H__
 
21
#define __INDICATOR_SESSION_BACKEND_H__
 
22
 
 
23
#include <gio/gio.h> /* GCancellable */
 
24
 
 
25
#include "actions.h"
 
26
#include "guest.h"
 
27
#include "users.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
/**
 
32
 * Gets instances of the backend abstract base classes.
 
33
 * These are how IndicatorSystemService knows what's happening on the system.
 
34
 *
 
35
 * This function isn't defined in libindicatorsessionservice.
 
36
 * Instead, one of two implementations is statically linked at build time:
 
37
 * one for production in libbackenddbus (in src/backend-dbus/) or
 
38
 * one for testing in libbackendmock (in tests/).
 
39
 */
 
40
void backend_get (GCancellable             * cancellable,
 
41
                  IndicatorSessionActions ** setme_actions,
 
42
                  IndicatorSessionUsers   ** setme_users,
 
43
                  IndicatorSessionGuest   ** setme_guest);
 
44
 
 
45
G_END_DECLS
 
46
 
 
47
#endif