src/nexus.h
changeset 109 bfe9b9a8fe5b
parent 105 b6b183fbf373
--- a/src/nexus.h	Wed Apr 01 18:30:47 2009 +0300
+++ b/src/nexus.h	Wed Apr 01 19:31:11 2009 +0300
@@ -42,6 +42,11 @@
 };
 
 /**
+ * Load a config file into the nexus from the given path
+ */
+err_t nexus_load_config (struct nexus *nexus, const char *path, struct error_info *err);
+
+/**
  * Shut down the nexus cleanly. It /should/ be safe to call this several times, but it won't do anything.
  *
  * Once everything has shut down nicely (which it should, unless there's something buggy), the event loop should exit,
@@ -50,8 +55,12 @@
 void nexus_shutdown (struct nexus *nexus);
 
 /**
- * Destroy the nexus in an ugly fashion. This will attempt to release as many resources as possible, and quit the event
- * loop.
+ * Shut down the nexus fast. This will stop the event loop right away, which should lead to nexus_destroy being called.
+ */
+void nexus_crash (struct nexus *nexus);
+
+/**
+ * Destroy the nexus directly. This is intended to be used once the event loop as exited.
  */
 void nexus_destroy (struct nexus *nexus);