/*
 * Copyright 1990 by Baylor College of Medicine ALL RIGHTS RESERVED. 
 *
 * This program is subject to a license agreement between 
 * Baylor College of Medicine and MIT. Any use inconsistent with
 * said license and any use by persons other than the faculty, 
 * students and staff at MIT or any use on a computer not operated 
 * as part of the Athena Computing Environment (ACE) is expressly 
 * prohibited.
 */
/****************************************************************
 * File: license.h
 * Date: 05/14/91
 *
 * Description:
 *   This file contains the include file for the license structure
 *   that is returned when initializing the license library.
 *
 * Revisions:
 ****************************************************************/
#ifndef _LICENSE_H_
#define _LICENSE_H_

/* types of license restrictions */
#define LIC_EXPIRATION_DATE   1
#define LIC_MACHINE_SPECIFIC  2

typedef struct _License
{
	int type;        /* type of license */
	int date_set;    /* if the expiration date has been set */
	int month;       /* month of expiration */
	int day;         /* day of expiration */
	int year;        /* year or expiration */
	long host_id;    /* host id for specific machine */
} License;

/* public functions */
License *lic_init();
void lic_expire();
void lic_machine();
int lic_check();
void lic_revoke();
void lic_print();

#endif /* _LICENSE_H_ */
