fish: Move display_*_options functions to a separate file.

By moving these two functions out of the common options parsing code,
it means we don't need to depend on all the other machinery of options
parsing, such as the global variables ("verbose"), libconfig, etc.
This commit is contained in:
Richard W.M. Jones
2016-08-25 12:41:58 +01:00
parent 738c3bf4fd
commit c795d50af3
29 changed files with 128 additions and 35 deletions

View File

@@ -40,6 +40,8 @@ bin_PROGRAMS = \
# between guestfish and guestmount.
SHARED_SOURCE_FILES = \
../fish/config.c \
../fish/display-options.h \
../fish/display-options.c \
../fish/domain.c \
../fish/inspect.c \
../fish/keys.c \

View File

@@ -41,6 +41,7 @@
#include "ignore-value.h"
#include "options.h"
#include "display-options.h"
static int write_pipe_fd (int fd);
static int write_pid_file (const char *pid_file, pid_t pid);