/*
 *  This file is part of DVS, a simple distributed versioning system
 *  See http://www.cs.colorado.edu/~carzanig/dvs/
 *
 *  Author: Antonio Carzaniga <carzanig@cs.colorado.edu>
 *
 *  Copyright (C) 1998-2002 University of Colorado
 *
 *  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; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  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., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
 *  USA, or send email to carzanig@cs.colorado.edu.
 *
 *
 *  $Id: ws_list.h,v 1.5 2002/05/01 17:39:24 carzanig Exp $
 */
#ifndef _ws_list_h
#define _ws_list_h

#include <nc.h>

struct dvs_ws_list_s {
  char name[MAXPATHLEN];
  char collection_version[MAX_VERSION_LENGTH];
  char workspace_version[MAX_VERSION_LENGTH];
  struct dvs_ws_list_s *next;
};

typedef struct dvs_ws_list_s *dvs_ws_list;

extern dvs_ws_list ws_list_add_v(dvs_ws_list *l, const char *name);
extern void ws_list_add_c(dvs_ws_list *l, const char *name, 
			  const char *version);
extern void ws_list_add_d(dvs_ws_list *l, const char *name, 
			  const char *version);
extern void ws_list_free(dvs_ws_list l);
extern void ws_list_print(dvs_ws_list l, int verbose, const char *format);
#endif
