X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fhistogram.h;fp=src%2Fhistogram.h;h=c52b35c7bcb99a9bf4d5ddce3c6eb465d3b103a4;hp=0000000000000000000000000000000000000000;hb=25d4accd732b929388c2cde4476b2c077ae1d235;hpb=7113bfbc96eb65431bad9d9985ba04a18f4912cb diff --git a/src/histogram.h b/src/histogram.h new file mode 100644 index 0000000..c52b35c --- /dev/null +++ b/src/histogram.h @@ -0,0 +1,34 @@ +/** + * libsortnetwork - src/histrogram.h + * Copyright (C) 2011 Florian octo Forster + * + * 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 the + * Free Software Foundation; only version 2 of the License is applicable. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: + * Florian octo Forster + **/ + +#ifndef HISTOGRAM_H +#define HISTOGRAM_H 1 + +struct histogram_s; +typedef struct histogram_s histogram_t; + +histogram_t *hist_create (void); +void hist_destroy (histogram_t *h); + +int hist_account (histogram_t *h, int rating); +int hist_print (histogram_t *h); + +#endif /* HISTOGRAM_H */