summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-12-14 08:38:27 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-12-16 19:52:08 +0000
commit7123f0cab155c5c25ecae670677683001c1634ad (patch)
tree7163ed2d28473d9c659db356c90f16d56858ccd7 /fish/fish.h
parent3c9dfd1e95fae5c31df1fbcb6bdec2982a69a004 (diff)
downloadlibguestfs-7123f0cab155c5c25ecae670677683001c1634ad.tar.gz
libguestfs-7123f0cab155c5c25ecae670677683001c1634ad.tar.xz
libguestfs-7123f0cab155c5c25ecae670677683001c1634ad.zip
fish: Allow events to be processed in guestfish.
Add 'event', 'list-events' and 'delete-event' commands so that event handlers can be registered, listed and deleted in guestfish. The event handler is a shell script snippet or host command. Cc: Pádraig Brady <P@draigBrady.com>
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index 8c75a750..d25fd356 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -94,6 +94,15 @@ extern char **do_completion (const char *text, int start, int end);
extern int complete_dest_paths;
extern char *complete_dest_paths_generator (const char *text, int state);
+/* in events.c */
+extern void init_event_handlers (void);
+extern void free_event_handlers (void);
+
+/* in event-names.c (auto-generated) */
+extern const char *event_name_of_event_bitmask (uint64_t);
+extern void print_event_set (uint64_t, FILE *);
+extern int event_bitmask_of_event_set (const char *arg, uint64_t *);
+
/* in alloc.c */
extern int alloc_disk (const char *filename, const char *size,
int add, int sparse);