src: Add DMA localagent
[barometer.git] / src / dma / vendor / github.com / libvirt / libvirt-go / storage_pool_wrapper.h
1 /*
2  * This file is part of the libvirt-go project
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  *
22  * Copyright (C) 2018 Red Hat, Inc.
23  *
24  */
25
26 #ifndef LIBVIRT_GO_STORAGE_POOL_WRAPPER_H__
27 #define LIBVIRT_GO_STORAGE_POOL_WRAPPER_H__
28
29 #include <libvirt/libvirt.h>
30 #include <libvirt/virterror.h>
31 #include "storage_pool_compat.h"
32
33 int
34 virStoragePoolBuildWrapper(virStoragePoolPtr pool,
35                            unsigned int flags,
36                            virErrorPtr err);
37
38 int
39 virStoragePoolCreateWrapper(virStoragePoolPtr pool,
40                             unsigned int flags,
41                             virErrorPtr err);
42
43 int
44 virStoragePoolDeleteWrapper(virStoragePoolPtr pool,
45                             unsigned int flags,
46                             virErrorPtr err);
47
48 int
49 virStoragePoolDestroyWrapper(virStoragePoolPtr pool,
50                              virErrorPtr err);
51
52 int
53 virStoragePoolFreeWrapper(virStoragePoolPtr pool,
54                           virErrorPtr err);
55
56 int
57 virStoragePoolGetAutostartWrapper(virStoragePoolPtr pool,
58                                   int *autostart,
59                                   virErrorPtr err);
60
61 virConnectPtr
62 virStoragePoolGetConnectWrapper(virStoragePoolPtr pool,
63                                 virErrorPtr err);
64
65 int
66 virStoragePoolGetInfoWrapper(virStoragePoolPtr pool,
67                              virStoragePoolInfoPtr info,
68                              virErrorPtr err);
69
70 const char *
71 virStoragePoolGetNameWrapper(virStoragePoolPtr pool,
72                              virErrorPtr err);
73
74 int
75 virStoragePoolGetUUIDWrapper(virStoragePoolPtr pool,
76                              unsigned char *uuid,
77                              virErrorPtr err);
78
79 int
80 virStoragePoolGetUUIDStringWrapper(virStoragePoolPtr pool,
81                                    char *buf,
82                                    virErrorPtr err);
83
84 char *
85 virStoragePoolGetXMLDescWrapper(virStoragePoolPtr pool,
86                                 unsigned int flags,
87                                 virErrorPtr err);
88
89 int
90 virStoragePoolIsActiveWrapper(virStoragePoolPtr pool,
91                               virErrorPtr err);
92
93 int
94 virStoragePoolIsPersistentWrapper(virStoragePoolPtr pool,
95                                   virErrorPtr err);
96
97 int
98 virStoragePoolListAllVolumesWrapper(virStoragePoolPtr pool,
99                                     virStorageVolPtr **vols,
100                                     unsigned int flags,
101                                     virErrorPtr err);
102
103 int
104 virStoragePoolListVolumesWrapper(virStoragePoolPtr pool,
105                                  char **const names,
106                                  int maxnames,
107                                  virErrorPtr err);
108
109 int
110 virStoragePoolNumOfVolumesWrapper(virStoragePoolPtr pool,
111                                   virErrorPtr err);
112
113 int
114 virStoragePoolRefWrapper(virStoragePoolPtr pool,
115                          virErrorPtr err);
116
117 int
118 virStoragePoolRefreshWrapper(virStoragePoolPtr pool,
119                              unsigned int flags,
120                              virErrorPtr err);
121
122 int
123 virStoragePoolSetAutostartWrapper(virStoragePoolPtr pool,
124                                   int autostart,
125                                   virErrorPtr err);
126
127 int
128 virStoragePoolUndefineWrapper(virStoragePoolPtr pool,
129                               virErrorPtr err);
130
131 virStorageVolPtr
132 virStorageVolCreateXMLWrapper(virStoragePoolPtr pool,
133                               const char *xmlDesc,
134                               unsigned int flags,
135                               virErrorPtr err);
136
137 virStorageVolPtr
138 virStorageVolCreateXMLFromWrapper(virStoragePoolPtr pool,
139                                   const char *xmlDesc,
140                                   virStorageVolPtr clonevol,
141                                   unsigned int flags,
142                                   virErrorPtr err);
143
144 virStorageVolPtr
145 virStorageVolLookupByNameWrapper(virStoragePoolPtr pool,
146                                  const char *name,
147                                  virErrorPtr err);
148
149
150 #endif /* LIBVIRT_GO_STORAGE_POOL_WRAPPER_H__ */