Преглед изворни кода

Explain that configuration should happen elsewhere, but not init.

Nick Mathewson пре 7 година
родитељ
комит
4fe4bcf8a1
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/lib/subsys/subsys.h

+ 3 - 0
src/lib/subsys/subsys.h

@@ -44,6 +44,9 @@ typedef struct subsys_fns_t {
    * This function MUST NOT rely on any runtime configuration information;
    * it is only for global state or pre-configuration state.
    *
+   * (If you need to do any setup that depends on configuration, you'll need
+   * to declare a configuration callback. (Not yet designed))
+   *
    * This function MUST NOT have any parts that can fail.
    **/
   int (*initialize)(void);