1 /*
2  * ython object wrapper of libfsntfs_usn_change_journal_t
3  *
4  * Copyright (C) 2010-2021, Joachim Metz <joachim.metz@gmail.com>
5  *
6  * Refer to AUTHORS for acknowledgements.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #if !defined( _PYFSNTFS_USN_CHANGE_JOURNAL_H )
23 #define _PYFSNTFS_USN_CHANGE_JOURNAL_H
24 
25 #include <common.h>
26 #include <types.h>
27 
28 #include "pyfsntfs_libfsntfs.h"
29 #include "pyfsntfs_python.h"
30 
31 #if defined( __cplusplus )
32 extern "C" {
33 #endif
34 
35 typedef struct pyfsntfs_usn_change_journal pyfsntfs_usn_change_journal_t;
36 
37 struct pyfsntfs_usn_change_journal
38 {
39 	/* Python object initialization
40 	 */
41 	PyObject_HEAD
42 
43 	/* The libfsntfs USN change journal
44 	 */
45 	libfsntfs_usn_change_journal_t *usn_change_journal;
46 
47 	/* The parent object
48 	 */
49 	PyObject *parent_object;
50 };
51 
52 extern PyMethodDef pyfsntfs_usn_change_journal_object_methods[];
53 extern PyTypeObject pyfsntfs_usn_change_journal_type_object;
54 
55 PyObject *pyfsntfs_usn_change_journal_new(
56            libfsntfs_usn_change_journal_t *usn_change_journal,
57            PyObject *parent_object );
58 
59 int pyfsntfs_usn_change_journal_init(
60      pyfsntfs_usn_change_journal_t *pyfsntfs_usn_change_journal );
61 
62 void pyfsntfs_usn_change_journal_free(
63       pyfsntfs_usn_change_journal_t *pyfsntfs_usn_change_journal );
64 
65 PyObject *pyfsntfs_usn_change_journal_get_offset(
66            pyfsntfs_usn_change_journal_t *pyfsntfs_usn_change_journal,
67            PyObject *arguments );
68 
69 PyObject *pyfsntfs_usn_change_journal_read_usn_record(
70            pyfsntfs_usn_change_journal_t *pyfsntfs_usn_change_journal,
71            PyObject *arguments );
72 
73 #if defined( __cplusplus )
74 }
75 #endif
76 
77 #endif /* !defined( _PYFSNTFS_USN_CHANGE_JOURNAL_H ) */
78 
79