~khurshid-alam/unity-settings-daemon/accountservice-background-fix

« back to all changes in this revision

Viewing changes to plugins/sharing/gsd-sharing-manager.h

  • Committer: Khurshid Alam
  • Date: 2018-02-21 21:19:43 UTC
  • Revision ID: khurshid.alam@linuxmail.org-20180221211943-8splu6z7l2mng1j1
Add sharing plugin

we are importing sharing panel from gnome-control-center as the old screen-sharing panel does not work anymore due to a gsettings key removal from vino. Our new sharing panel will use this plugin. This plugin is a direct port from gnome-settings-daemon 3.22.

https://bugzilla.gnome.org/show_bug.cgi?id=731726

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, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef __GSD_SHARING_MANAGER_H
 
21
#define __GSD_SHARING_MANAGER_H
 
22
 
 
23
#include <glib-object.h>
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
#define GSD_TYPE_SHARING_MANAGER         (gsd_sharing_manager_get_type ())
 
28
#define GSD_SHARING_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GSD_TYPE_SHARING_MANAGER, GsdSharingManager))
 
29
#define GSD_SHARING_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GSD_TYPE_SHARING_MANAGER, GsdSharingManagerClass))
 
30
#define GSD_IS_SHARING_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSD_TYPE_SHARING_MANAGER))
 
31
#define GSD_IS_SHARING_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GSD_TYPE_SHARING_MANAGER))
 
32
#define GSD_SHARING_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSD_TYPE_SHARING_MANAGER, GsdSharingManagerClass))
 
33
 
 
34
typedef struct GsdSharingManagerPrivate GsdSharingManagerPrivate;
 
35
 
 
36
typedef struct
 
37
{
 
38
        GObject                     parent;
 
39
        GsdSharingManagerPrivate *priv;
 
40
} GsdSharingManager;
 
41
 
 
42
typedef struct
 
43
{
 
44
        GObjectClass   parent_class;
 
45
} GsdSharingManagerClass;
 
46
 
 
47
GType                   gsd_sharing_manager_get_type            (void);
 
48
 
 
49
GsdSharingManager *       gsd_sharing_manager_new                 (void);
 
50
gboolean                gsd_sharing_manager_start               (GsdSharingManager *manager,
 
51
                                                               GError         **error);
 
52
void                    gsd_sharing_manager_stop                (GsdSharingManager *manager);
 
53
 
 
54
G_END_DECLS
 
55
 
 
56
#endif /* __GSD_SHARING_MANAGER_H */