| 1 |
/* sysprof-document-counter-private.h |
| 2 |
* |
| 3 |
* Copyright 2023 Christian Hergert <[email protected]> |
| 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 3 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 |
* SPDX-License-Identifier: GPL-3.0-or-later |
| 19 |
*/ |
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include "sysprof-document-counter.h" |
| 24 |
|
| 25 |
G_BEGIN_DECLS |
| 26 |
|
| 27 |
struct _SysprofDocumentCounter |
| 28 |
{ |
| 29 |
GObject parent_instance; |
| 30 |
GRefString *category; |
| 31 |
GRefString *description; |
| 32 |
GRefString *name; |
| 33 |
GArray *values; |
| 34 |
double min_value; |
| 35 |
double max_value; |
| 36 |
gint64 begin_time; |
| 37 |
guint id; |
| 38 |
guint type; |
| 39 |
}; |
| 40 |
|
| 41 |
SysprofDocumentCounter *_sysprof_document_counter_new (guint id, |
| 42 |
guint type, |
| 43 |
GRefString *category, |
| 44 |
GRefString *name, |
| 45 |
GRefString *description, |
| 46 |
GArray *values, |
| 47 |
gint64 begin_time); |
| 48 |
void _sysprof_document_counter_calculate_range (SysprofDocumentCounter *self); |
| 49 |
|
| 50 |
G_END_DECLS |