summaryrefslogtreecommitdiff
path: root/src/bootchart/svg.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-02 15:15:43 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-03 15:29:18 +0200
commit1f2ecb0393bf071fcd476300e0b3f94726b01b15 (patch)
tree8aaee7d724db8cc55139b9779354d3c4458a09f7 /src/bootchart/svg.h
parentf91781329c6d8a760e3c1b88b66b0e2137c2e5ab (diff)
bootchart: kill a bunch of global variables
This code is in a confusingly bad shape. Kill a bunch of global variables and pass needed variables around in function calls.
Diffstat (limited to 'src/bootchart/svg.h')
-rw-r--r--src/bootchart/svg.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bootchart/svg.h b/src/bootchart/svg.h
index f0fb1a7ce7..75efa22614 100644
--- a/src/bootchart/svg.h
+++ b/src/bootchart/svg.h
@@ -24,4 +24,14 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-int svg_do(const char *build);
+int svg_do(FILE *of,
+ const char *build,
+ struct list_sample_data *head,
+ struct ps_struct *ps_first,
+ int n_samples,
+ int pscount,
+ int n_cpus,
+ double graph_start,
+ double log_start,
+ double interval,
+ int overrun);