File: optgroups.c

package info (click to toggle)
libguestfs 1%3A1.44.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 118,932 kB
  • sloc: ansic: 458,017; ml: 51,424; sh: 13,191; java: 9,578; makefile: 7,931; cs: 6,328; haskell: 5,674; python: 3,871; perl: 3,528; erlang: 2,446; xml: 1,347; ruby: 350; pascal: 257; javascript: 157; lex: 135; yacc: 128; cpp: 10
file content (403 lines) | stat: -rw-r--r-- 11,100 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
/* libguestfs generated file
 * WARNING: THIS FILE IS GENERATED FROM THE FOLLOWING FILES:
 *          generator/daemon.ml
 *          and from the code in the generator/ subdirectory.
 * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
 *
 * Copyright (C) 2009-2020 Red Hat Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#include <config.h>

#include <caml/mlvalues.h>

#include "daemon.h"
#include "optgroups.h"

static int
dummy_available (void)
{
  return 1;
}

struct optgroup optgroups[] = {
  { "acl", optgroup_acl_available },
  { "augeas", dummy_available },
  { "blkdiscard", optgroup_blkdiscard_available },
  { "blkdiscardzeroes", optgroup_blkdiscardzeroes_available },
  { "btrfs", optgroup_btrfs_available },
  { "extlinux", optgroup_extlinux_available },
  { "f2fs", optgroup_f2fs_available },
  { "fstrim", optgroup_fstrim_available },
  { "gdisk", optgroup_gdisk_available },
  { "grub", optgroup_grub_available },
  { "hivex", optgroup_hivex_available },
  { "inotify", optgroup_inotify_available },
  { "journal", optgroup_journal_available },
  { "ldm", optgroup_ldm_available },
  { "libtsk", optgroup_libtsk_available },
  { "libyara", optgroup_libyara_available },
  { "linuxcaps", optgroup_linuxcaps_available },
  { "linuxfsuuid", optgroup_linuxfsuuid_available },
  { "linuxmodules", optgroup_linuxmodules_available },
  { "linuxxattrs", optgroup_linuxxattrs_available },
  { "luks", optgroup_luks_available },
  { "lvm2", optgroup_lvm2_available },
  { "mdadm", optgroup_mdadm_available },
  { "mknod", optgroup_mknod_available },
  { "ntfs3g", optgroup_ntfs3g_available },
  { "ntfsprogs", optgroup_ntfsprogs_available },
  { "realpath", dummy_available },
  { "rsync", optgroup_rsync_available },
  { "scrub", optgroup_scrub_available },
  { "selinux", optgroup_selinux_available },
  { "selinuxrelabel", optgroup_selinuxrelabel_available },
  { "sleuthkit", optgroup_sleuthkit_available },
  { "squashfs", optgroup_squashfs_available },
  { "syslinux", optgroup_syslinux_available },
  { "wipefs", optgroup_wipefs_available },
  { "xfs", optgroup_xfs_available },
  { "xz", optgroup_xz_available },
  { "zerofree", optgroup_zerofree_available },
  { NULL, NULL }
};

/* Wrappers so these functions can be called from OCaml code. */
extern value guestfs_int_daemon_optgroup_acl_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_acl_available (value unitv)
{
  return Val_bool (optgroup_acl_available ());
}

extern value guestfs_int_daemon_optgroup_blkdiscard_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_blkdiscard_available (value unitv)
{
  return Val_bool (optgroup_blkdiscard_available ());
}

extern value guestfs_int_daemon_optgroup_blkdiscardzeroes_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_blkdiscardzeroes_available (value unitv)
{
  return Val_bool (optgroup_blkdiscardzeroes_available ());
}

extern value guestfs_int_daemon_optgroup_btrfs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_btrfs_available (value unitv)
{
  return Val_bool (optgroup_btrfs_available ());
}

extern value guestfs_int_daemon_optgroup_extlinux_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_extlinux_available (value unitv)
{
  return Val_bool (optgroup_extlinux_available ());
}

extern value guestfs_int_daemon_optgroup_f2fs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_f2fs_available (value unitv)
{
  return Val_bool (optgroup_f2fs_available ());
}

extern value guestfs_int_daemon_optgroup_fstrim_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_fstrim_available (value unitv)
{
  return Val_bool (optgroup_fstrim_available ());
}

extern value guestfs_int_daemon_optgroup_gdisk_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_gdisk_available (value unitv)
{
  return Val_bool (optgroup_gdisk_available ());
}

extern value guestfs_int_daemon_optgroup_grub_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_grub_available (value unitv)
{
  return Val_bool (optgroup_grub_available ());
}

extern value guestfs_int_daemon_optgroup_hivex_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_hivex_available (value unitv)
{
  return Val_bool (optgroup_hivex_available ());
}

extern value guestfs_int_daemon_optgroup_inotify_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_inotify_available (value unitv)
{
  return Val_bool (optgroup_inotify_available ());
}

extern value guestfs_int_daemon_optgroup_journal_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_journal_available (value unitv)
{
  return Val_bool (optgroup_journal_available ());
}

extern value guestfs_int_daemon_optgroup_ldm_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_ldm_available (value unitv)
{
  return Val_bool (optgroup_ldm_available ());
}

extern value guestfs_int_daemon_optgroup_libtsk_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_libtsk_available (value unitv)
{
  return Val_bool (optgroup_libtsk_available ());
}

extern value guestfs_int_daemon_optgroup_libyara_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_libyara_available (value unitv)
{
  return Val_bool (optgroup_libyara_available ());
}

extern value guestfs_int_daemon_optgroup_linuxcaps_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_linuxcaps_available (value unitv)
{
  return Val_bool (optgroup_linuxcaps_available ());
}

extern value guestfs_int_daemon_optgroup_linuxfsuuid_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_linuxfsuuid_available (value unitv)
{
  return Val_bool (optgroup_linuxfsuuid_available ());
}

extern value guestfs_int_daemon_optgroup_linuxmodules_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_linuxmodules_available (value unitv)
{
  return Val_bool (optgroup_linuxmodules_available ());
}

extern value guestfs_int_daemon_optgroup_linuxxattrs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_linuxxattrs_available (value unitv)
{
  return Val_bool (optgroup_linuxxattrs_available ());
}

extern value guestfs_int_daemon_optgroup_luks_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_luks_available (value unitv)
{
  return Val_bool (optgroup_luks_available ());
}

extern value guestfs_int_daemon_optgroup_lvm2_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_lvm2_available (value unitv)
{
  return Val_bool (optgroup_lvm2_available ());
}

extern value guestfs_int_daemon_optgroup_mdadm_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_mdadm_available (value unitv)
{
  return Val_bool (optgroup_mdadm_available ());
}

extern value guestfs_int_daemon_optgroup_mknod_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_mknod_available (value unitv)
{
  return Val_bool (optgroup_mknod_available ());
}

extern value guestfs_int_daemon_optgroup_ntfs3g_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_ntfs3g_available (value unitv)
{
  return Val_bool (optgroup_ntfs3g_available ());
}

extern value guestfs_int_daemon_optgroup_ntfsprogs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_ntfsprogs_available (value unitv)
{
  return Val_bool (optgroup_ntfsprogs_available ());
}

extern value guestfs_int_daemon_optgroup_rsync_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_rsync_available (value unitv)
{
  return Val_bool (optgroup_rsync_available ());
}

extern value guestfs_int_daemon_optgroup_scrub_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_scrub_available (value unitv)
{
  return Val_bool (optgroup_scrub_available ());
}

extern value guestfs_int_daemon_optgroup_selinux_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_selinux_available (value unitv)
{
  return Val_bool (optgroup_selinux_available ());
}

extern value guestfs_int_daemon_optgroup_selinuxrelabel_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_selinuxrelabel_available (value unitv)
{
  return Val_bool (optgroup_selinuxrelabel_available ());
}

extern value guestfs_int_daemon_optgroup_sleuthkit_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_sleuthkit_available (value unitv)
{
  return Val_bool (optgroup_sleuthkit_available ());
}

extern value guestfs_int_daemon_optgroup_squashfs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_squashfs_available (value unitv)
{
  return Val_bool (optgroup_squashfs_available ());
}

extern value guestfs_int_daemon_optgroup_syslinux_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_syslinux_available (value unitv)
{
  return Val_bool (optgroup_syslinux_available ());
}

extern value guestfs_int_daemon_optgroup_wipefs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_wipefs_available (value unitv)
{
  return Val_bool (optgroup_wipefs_available ());
}

extern value guestfs_int_daemon_optgroup_xfs_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_xfs_available (value unitv)
{
  return Val_bool (optgroup_xfs_available ());
}

extern value guestfs_int_daemon_optgroup_xz_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_xz_available (value unitv)
{
  return Val_bool (optgroup_xz_available ());
}

extern value guestfs_int_daemon_optgroup_zerofree_available (value);

/* NB: This is a "noalloc" call. */
value
guestfs_int_daemon_optgroup_zerofree_available (value unitv)
{
  return Val_bool (optgroup_zerofree_available ());
}