/* @(#)vote_extern.h 1.2 95/09/16 */

/*
 * Copyright (c) 1994, 1995 by Wayne C. Gramlich.  All rights reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * for any purpose is hereby granted without fee provided that the above
 * copyright notice and this permission are retained.  The author makes
 * no representations about the suitability of this software for any purpose.
 * It is provided "as is" without express or implied warranty.
 */

#if !defined(VOTE_EXTERN_H)
#define VOTE_EXTERN_H

#include <stdio.h>
#include "config_typedef.h"
#include "error_typedef.h"
#include "link_typedef.h"
#include "remote_typedef.h"
#include "str_typedef.h"
#include "vote_typedef.h"

#define VOTES_LOOP(variable, votes) \
    VECTOR_LOOP(Vote, variable, votes)

extern int vote_yes(Vote);
extern void vote_write_html(Vote, FILE *);

extern Votes votes_create(void);
extern void votes_save(Votes, FILE *);
extern unsigned votes_size(Votes);
extern Votes votes_restore(Link, FILE *, Errors);
extern int votes_update(Link, FILE *, Str, Str, Str, Errors);
extern void votes_write(Remotes, Config, Errors);
extern unsigned votes_yes(Votes);

#endif /* !defined(VOTE_EXTERN_H) */
