1N/A
1N/A/* : : generated by proto : : */
1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1996-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* Glenn Fowler <gsf@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A
1N/A
1N/A/*
1N/A * Glenn Fowler
1N/A * AT&T Research
1N/A *
1N/A * checksum library interface
1N/A */
1N/A
1N/A#ifndef _SUM_H
1N/A#if !defined(__PROTO__)
1N/A#include <prototyped.h>
1N/A#endif
1N/A#if !defined(__LINKAGE__)
1N/A#define __LINKAGE__ /* 2004-08-11 transition */
1N/A#endif
1N/A
1N/A#define _SUM_H
1N/A
1N/A#include <ast.h>
1N/A
1N/A#define SUM_SIZE (1<<0) /* print size too */
1N/A#define SUM_SCALE (1<<1) /* traditional size scale */
1N/A#define SUM_TOTAL (1<<2) /* print totals since sumopen */
1N/A#define SUM_LEGACY (1<<3) /* legacy field widths */
1N/A
1N/A#define _SUM_PUBLIC_ const char* name;
1N/A
1N/Atypedef struct Sumdata_s
1N/A{
1N/A uint32_t size;
1N/A uint32_t num;
1N/A __V_* buf;
1N/A} Sumdata_t;
1N/A
1N/Atypedef struct Sum_s
1N/A{
1N/A _SUM_PUBLIC_
1N/A#ifdef _SUM_PRIVATE_
1N/A _SUM_PRIVATE_
1N/A#endif
1N/A} Sum_t;
1N/A
1N/Aextern __MANGLE__ Sum_t* sumopen __PROTO__((const char*));
1N/Aextern __MANGLE__ int suminit __PROTO__((Sum_t*));
1N/Aextern __MANGLE__ int sumblock __PROTO__((Sum_t*, const __V_*, size_t));
1N/Aextern __MANGLE__ int sumdone __PROTO__((Sum_t*));
1N/Aextern __MANGLE__ int sumdata __PROTO__((Sum_t*, Sumdata_t*));
1N/Aextern __MANGLE__ int sumprint __PROTO__((Sum_t*, Sfio_t*, int, size_t));
1N/Aextern __MANGLE__ int sumusage __PROTO__((Sfio_t*));
1N/Aextern __MANGLE__ int sumclose __PROTO__((Sum_t*));
1N/A
1N/A#endif