]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntp_config.h:
authorJohannes Maximilian Kuehn <kuehn@ntp.org>
Sat, 15 Aug 2009 17:47:29 +0000 (02:47 +0900)
committerJohannes Maximilian Kuehn <kuehn@ntp.org>
Sat, 15 Aug 2009 17:47:29 +0000 (02:47 +0900)
  Added source and timestamp to the config_tree structure

bk: 4a86f4b1OnykzVV2ia22ITOg4HIFPg

include/ntp_config.h

index a2e2e031ddfcfa967ff550ebd4214f27e9661a2d..113d9085664f5f63a4edb7f8d00b9ef628ec969b 100644 (file)
 /* Limits */
 #define MAXLINE 1024
 
+/* Configuration sources */
+
+#define CONF_SOURCE_FILE               0
+#define CONF_SOURCE_NTPQ               1
+
 
 /* Structure for storing an attribute-value pair  */
 struct attr_val {
@@ -130,6 +135,9 @@ enum broadcastclienttype {
 struct config_tree {
     struct config_tree *prior;
 
+    struct attr_val source;
+    time_t timestamp;
+
     queue *peers;
     queue *unpeers;
 
@@ -201,6 +209,7 @@ extern struct REMOTE_CONFIG_INFO remote_config;
 void config_remotely(void);
 
 int dump_config_tree(struct config_tree *ptree, FILE *df);
+int dump_all_config_trees(FILE *df);
 
 
 #endif