Added the /BARCHART option to CROSSTABS
[pspp] / src / output / charts / piechart.h
index 312a45ee08ce759f84e9c02e2991ca9acd3163f0..1899a511c118515424ab0a6e558a18b519300de7 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,8 +17,9 @@
 #ifndef PIECHART_H
 #define PIECHART_H
 
-#include <libpspp/str.h>
-#include <output/chart-item.h>
+#include "libpspp/str.h"
+#include "output/chart-item.h"
+#include "language/stats/freq.h"
 
 struct piechart
   {
@@ -33,14 +34,16 @@ struct slice
     double magnitude;
   };
 
-struct chart_item *piechart_create (const char *title,
-                                    const struct slice *, int n_slices);
+struct variable;
+
+struct chart_item *piechart_create (const struct variable *var,
+                                    const struct freq *, int n_slices);
 \f
 /* This boilerplate for piechart, a subclass of chart_item, was
    autogenerated by mk-class-boilerplate. */
 
 #include <assert.h>
-#include <libpspp/cast.h>
+#include "libpspp/cast.h"
 
 extern const struct chart_item_class piechart_class;