aboutsummaryrefslogtreecommitdiffstats
path: root/src/trial.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-27 00:30:59 +0200
committerTeddy Wing2018-10-27 00:30:59 +0200
commitf2f4e4ad357a2bfdffb6ae5e06f2a211f6d6fbdb (patch)
tree9515d8de69b27fc96b4fcdc8960ac8a90c9112d6 /src/trial.rs
parent775344e98cb3f88c3c1339bb7bd4998ca6d33b93 (diff)
downloaddome-key-map-f2f4e4ad357a2bfdffb6ae5e06f2a211f6d6fbdb.tar.bz2
Make `do_trial()` accessible via FFI
Wrap the function in an `extern "C"` function, make it public, and export it.
Diffstat (limited to 'src/trial.rs')
-rw-r--r--src/trial.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trial.rs b/src/trial.rs
index 59ff785..6358f23 100644
--- a/src/trial.rs
+++ b/src/trial.rs
@@ -19,7 +19,7 @@ const KEY: &'static str = "TODO SECRET";
/// Entry point to the trial handler. Initialises a trial file or reads a
/// timestamp from the existing one. If a trial is ongoing, print the number of
/// days remaining. If expired, exit the program. Print any errors encountered.
-fn do_trial() {
+pub fn do_trial() {
// Try to read trial start from file
let date = match get_trial_start() {
Ok(date) => date,