~ubuntu-branches/ubuntu/wily/gnome-software/wily

« back to all changes in this revision

Viewing changes to src/gs-profile.h

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2014-10-11 11:04:58 UTC
  • Revision ID: package-import@ubuntu.com-20141011110458-0qsyec8s0lsjevdv
Tags: upstream-3.14.0
ImportĀ upstreamĀ versionĀ 3.14.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2013 Richard Hughes <richard@hughsie.com>
 
4
 *
 
5
 * Licensed under the GNU General Public License Version 2
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 */
 
21
 
 
22
#ifndef __GS_PROFILE_H
 
23
#define __GS_PROFILE_H
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define GS_TYPE_PROFILE         (gs_profile_get_type ())
 
30
#define GS_PROFILE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_PROFILE, GsProfile))
 
31
#define GS_PROFILE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_PROFILE, GsProfileClass))
 
32
#define GS_IS_PROFILE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_PROFILE))
 
33
#define GS_IS_PROFILE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_PROFILE))
 
34
#define GS_PROFILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_PROFILE, GsProfileClass))
 
35
 
 
36
typedef struct GsProfilePrivate GsProfilePrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
         GObject                 parent;
 
41
         GsProfilePrivate       *priv;
 
42
} GsProfile;
 
43
 
 
44
typedef struct
 
45
{
 
46
        GObjectClass             parent_class;
 
47
} GsProfileClass;
 
48
 
 
49
GType            gs_profile_get_type            (void);
 
50
 
 
51
GsProfile       *gs_profile_new                 (void);
 
52
void             gs_profile_start               (GsProfile      *profile,
 
53
                                                 const gchar    *id);
 
54
void             gs_profile_stop                (GsProfile      *profile,
 
55
                                                 const gchar    *id);
 
56
void             gs_profile_dump                (GsProfile      *profile);
 
57
 
 
58
G_END_DECLS
 
59
 
 
60
#endif /* __GS_PROFILE_H */
 
61
 
 
62
/* vim: set noexpandtab: */