| 1 | /* |
| 2 | * Python object definition of the libvhdi disk types |
| 3 | * |
| 4 | * Copyright (C) 2012-2025, Joachim Metz <[email protected]> |
| 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( _PYVHDI_DISK_TYPES_H ) |
| 23 | #define _PYVHDI_DISK_TYPES_H |
| 24 | |
| 25 | #include <common.h> |
| 26 | #include <types.h> |
| 27 | |
| 28 | #include "pyvhdi_libvhdi.h" |
| 29 | #include "pyvhdi_python.h" |
| 30 | |
| 31 | #if defined( __cplusplus ) |
| 32 | extern "C" { |
| 33 | #endif |
| 34 | |
| 35 | typedef struct pyvhdi_disk_types pyvhdi_disk_types_t; |
| 36 | |
| 37 | struct pyvhdi_disk_types |
| 38 | { |
| 39 | /* Python object initialization |
| 40 | */ |
| 41 | PyObject_HEAD |
| 42 | }; |
| 43 | |
| 44 | extern PyTypeObject pyvhdi_disk_types_type_object; |
| 45 | |
| 46 | int pyvhdi_disk_types_init_type( |
| 47 | PyTypeObject *type_object ); |
| 48 | |
| 49 | PyObject *pyvhdi_disk_types_new( |
| 50 | void ); |
| 51 | |
| 52 | int pyvhdi_disk_types_init( |
| 53 | pyvhdi_disk_types_t *definitions_object ); |
| 54 | |
| 55 | void pyvhdi_disk_types_free( |
| 56 | pyvhdi_disk_types_t *definitions_object ); |
| 57 | |
| 58 | #if defined( __cplusplus ) |
| 59 | } |
| 60 | #endif |
| 61 | |
| 62 | #endif /* !defined( _PYVHDI_DISK_TYPES_H ) */ |
| 63 |