aboutsummaryrefslogtreecommitdiff
path: root/scripts/write_config/solution.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-05-15 01:38:34 +0200
committerKarel Kočí <cynerd@email.cz>2015-05-15 01:38:34 +0200
commitf9bd4784d55c6e2afe4c102a1212a7661ac0ef80 (patch)
treefa2140a1147e6805f502f41ffcf06a860f807feb /scripts/write_config/solution.h
parent2e9ef6384bf9a9b599a5f7438d8772fcbccb760f (diff)
downloadlinux-conf-perf-f9bd4784d55c6e2afe4c102a1212a7661ac0ef80.tar.gz
linux-conf-perf-f9bd4784d55c6e2afe4c102a1212a7661ac0ef80.tar.bz2
linux-conf-perf-f9bd4784d55c6e2afe4c102a1212a7661ac0ef80.zip
Rewrite write_config solution check and fix apply
solution.apply failed in case of last solution.
Diffstat (limited to 'scripts/write_config/solution.h')
-rw-r--r--scripts/write_config/solution.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/write_config/solution.h b/scripts/write_config/solution.h
index 91db619..100a9fe 100644
--- a/scripts/write_config/solution.h
+++ b/scripts/write_config/solution.h
@@ -8,6 +8,14 @@
#ifndef _SOLUTION_H_
#define _SOLUTION_H_
-void solution_check(struct symlist *sl, FILE * f);
+#define BUFFER_SIZE 32
+
+struct solution {
+ int *sol;
+ size_t size;
+};
+
+struct solution *solution_load(FILE *fmap, FILE *fsolved);
+void solution_check(struct symlist *sl, struct solution *s);
#endif /* _SOLUTION_H_ */