tether 0.0.1
Loading...
Searching...
No Matches
libtether.h
Go to the documentation of this file.
1
12#ifndef LIBTETHER_H
13#define LIBTETHER_H
14
15#include <CoreFoundation/CoreFoundation.h>
16#include <stdbool.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23#define LIBTETHER_VERSION "0.0.1"
24
32typedef struct {
33 bool read_only;
35 bool verbose;
36 bool quiet;
38
59int teth_attach(const char *image_path,
60 const teth_attach_options *opts,
61 CFDictionaryRef *out_results);
62
74void teth_print_attach_results(CFDictionaryRef results);
75
94int teth_detach(const char *dev_or_mount, bool force, double timeout_seconds);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* LIBTETHER_H */
int teth_detach(const char *dev_or_mount, bool force, double timeout_seconds)
Detach (unmount and eject) a previously attached image.
Definition teth_detach.c:111
int teth_attach(const char *image_path, const teth_attach_options *opts, CFDictionaryRef *out_results)
Attach (mount) the disk image at image_path.
Definition teth_attach.c:35
void teth_print_attach_results(CFDictionaryRef results)
Print the system-entities of an attach result to stdout.
Definition teth_attach.c:111
Options controlling how teth_attach() mounts an image.
Definition libtether.h:32
bool verbose
Definition libtether.h:35
bool read_only
Definition libtether.h:33
bool skip_verify
Definition libtether.h:34
bool quiet
Definition libtether.h:36