1 /*
2  * Python object wrapper of libesedb_multi_value_t
3  *
4  * Copyright (C) 2009-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( _PYESEDB_MULTI_VALUE_H )
23 #define _PYESEDB_MULTI_VALUE_H
24 
25 #include <common.h>
26 #include <types.h>
27 
28 #include "pyesedb_libesedb.h"
29 #include "pyesedb_python.h"
30 
31 #if defined( __cplusplus )
32 extern "C" {
33 #endif
34 
35 typedef struct pyesedb_multi_value pyesedb_multi_value_t;
36 
37 struct pyesedb_multi_value
38 {
39 	/* Python object initialization
40 	 */
41 	PyObject_HEAD
42 
43 	/* The libesedb multi value
44 	 */
45 	libesedb_multi_value_t *multi_value;
46 
47 	/* The parent object
48 	 */
49 	PyObject *parent_object;
50 };
51 
52 extern PyMethodDef pyesedb_multi_value_object_methods[];
53 extern PyTypeObject pyesedb_multi_value_type_object;
54 
55 PyObject *pyesedb_multi_value_new(
56            libesedb_multi_value_t *multi_value,
57            PyObject *parent_object );
58 
59 int pyesedb_multi_value_init(
60      pyesedb_multi_value_t *pyesedb_multi_value );
61 
62 void pyesedb_multi_value_free(
63       pyesedb_multi_value_t *pyesedb_multi_value );
64 
65 PyObject *pyesedb_multi_value_get_number_of_values(
66            pyesedb_multi_value_t *pyesedb_multi_value,
67            PyObject *arguments );
68 
69 PyObject *pyesedb_multi_value_get_value_data(
70            pyesedb_multi_value_t *pyesedb_multi_value,
71            PyObject *arguments,
72            PyObject *keywords );
73 
74 PyObject *pyesedb_multi_value_get_value_data_as_floating_point(
75            pyesedb_multi_value_t *pyesedb_multi_value,
76            PyObject *arguments,
77            PyObject *keywords );
78 
79 PyObject *pyesedb_multi_value_get_value_data_as_integer(
80            pyesedb_multi_value_t *pyesedb_multi_value,
81            PyObject *arguments,
82            PyObject *keywords );
83 
84 PyObject *pyesedb_multi_value_get_value_data_as_string(
85            pyesedb_multi_value_t *pyesedb_multi_value,
86            PyObject *arguments,
87            PyObject *keywords );
88 
89 #if defined( __cplusplus )
90 }
91 #endif
92 
93 #endif /* !defined( _PYESEDB_MULTI_VALUE_H ) */
94 
95