Skip to content

Commit b5a3c3e

Browse files
committed
Move TOML parsing function to private header
It is not used outside libqrexec.
1 parent ac3951d commit b5a3c3e

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

libqrexec/exec.c

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <fcntl.h>
3737
#include "qrexec.h"
3838
#include "libqrexec-utils.h"
39+
#include "private.h"
3940

4041
static do_exec_t *exec_func = NULL;
4142
void register_exec_func(do_exec_t *func) {

libqrexec/libqrexec-utils.h

-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ void qrexec_log(int level, int errnoval, const char *file, int line,
303303
const char *func, const char *fmt, ...) __attribute__((format(printf, 6, 7)));
304304

305305
void setup_logging(const char *program_name);
306-
int qubes_toml_config_parse(const char *config_full_path, int *wait_for_session, char **user);
307306

308307
/**
309308
* Make an Admin API call to qubesd. The returned buffer must be released by

libqrexec/private.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include <stdbool.h>
2+
int qubes_toml_config_parse(const char *config_full_path, int *wait_for_session, char **user);

libqrexec/toml.c

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <limits.h>
88

99
#include "libqrexec-utils.h"
10+
#include "private.h"
1011

1112
// A trivial parser for a subset of TOML
1213
static bool qubes_isspace(unsigned char c) {

0 commit comments

Comments
 (0)