Debian Codegraph @

src/libsysprof/sysprof-document-mmap.h

raw
1 /*
2 * sysprof-document-mmap.h
3 *
4 * Copyright 2023 Christian Hergert <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * SPDX-License-Identifier: GPL-3.0-or-later
20 */
21
22 #pragma once
23
24 #include "sysprof-document-frame.h"
25
26 G_BEGIN_DECLS
27
28 #define SYSPROF_TYPE_DOCUMENT_MMAP (sysprof_document_mmap_get_type())
29 #define SYSPROF_IS_DOCUMENT_MMAP(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, SYSPROF_TYPE_DOCUMENT_MMAP)
30 #define SYSPROF_DOCUMENT_MMAP(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, SYSPROF_TYPE_DOCUMENT_MMAP, SysprofDocumentMmap)
31 #define SYSPROF_DOCUMENT_MMAP_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, SYSPROF_TYPE_DOCUMENT_MMAP, SysprofDocumentMmapClass)
32
33 typedef struct _SysprofDocumentMmap SysprofDocumentMmap;
34 typedef struct _SysprofDocumentMmapClass SysprofDocumentMmapClass;
35
36 SYSPROF_AVAILABLE_IN_ALL
37 GType sysprof_document_mmap_get_type (void) G_GNUC_CONST;
38 SYSPROF_AVAILABLE_IN_ALL
39 guint64 sysprof_document_mmap_get_start_address (SysprofDocumentMmap *self);
40 SYSPROF_AVAILABLE_IN_ALL
41 guint64 sysprof_document_mmap_get_end_address (SysprofDocumentMmap *self);
42 SYSPROF_AVAILABLE_IN_ALL
43 guint64 sysprof_document_mmap_get_file_inode (SysprofDocumentMmap *self);
44 SYSPROF_AVAILABLE_IN_ALL
45 guint64 sysprof_document_mmap_get_file_offset (SysprofDocumentMmap *self);
46 SYSPROF_AVAILABLE_IN_ALL
47 const char *sysprof_document_mmap_get_file (SysprofDocumentMmap *self);
48 SYSPROF_AVAILABLE_IN_ALL
49 const char *sysprof_document_mmap_get_build_id (SysprofDocumentMmap *self);
50
51 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentMmap, g_object_unref)
52
53 G_END_DECLS