/*
 * Copyright (c) 2004 Endace Technology Ltd, Hamilton, New Zealand.
 * All rights reserved.
 *
 * This source code is proprietary to Endace Technology Limited and no part
 * of it may be redistributed, published or disclosed except as outlined in
 * the written contract supplied with this product.
 *
 * $Id: cmd.h 401 2004-07-20 00:07:27Z abel $
 */

#ifndef _CMDH
#define _CMDH

#include "dagrandom.h"
#include "list.h"

// Commands
#define CMDSEND 1
#define CMDLOOP 2

typedef struct {
	int type;
	distribution_t * distr;
	void * ptr;
	distribution_t * snap;
} cmd_t;

typedef struct {
	char * id;
	list_t * commands;
} group_t;

cmd_t * cmdNew(int, distribution_t *, void *, distribution_t *);
group_t * groupNew (char *, list_t *);
	
#endif

