1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
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.
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.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#if !defined (__UPOWER_H_INSIDE__) && !defined (UP_COMPILATION)
22
#error "Only <devicekit-power.h> can be included directly."
25
#ifndef __DKP_STATS_OBJ_H__
26
#define __DKP_STATS_OBJ_H__
29
#include <devkit-power-gobject/dkp-enum.h>
39
typedef DkpStatsObj UpStatsObj;
41
#define up_stats_obj_create dkp_stats_obj_create
43
DkpStatsObj *dkp_stats_obj_new (void);
44
gboolean dkp_stats_obj_free (DkpStatsObj *obj);
45
DkpStatsObj *dkp_stats_obj_copy (const DkpStatsObj *cobj);
46
DkpStatsObj *dkp_stats_obj_create (gdouble value,
48
DkpStatsObj *dkp_stats_obj_from_string (const gchar *text);
49
gchar *dkp_stats_obj_to_string (const DkpStatsObj *obj);
53
#endif /* __DKP_STATS_OBJ_H__ */