/*
 * This program will attempt to parse the temperature from hermes.ai.mit.edu
 * and display it in a window.
 *
 *      Created by:  Tom Coppeto (tjcoppet@athena.mit.edu)
 * 
 *      Copyright (c) 1988 Softbone, CNI.
 *      Permission to copy and distribute this software is granted
 *      provided this copyright notice is maintained.
 *
 *      $Source: /afs/.net.mit.edu/tools/src/xtherm/RCS/xtherm.h,v $
 *      $Author: tom $
 *      $Header: /afs/.net.mit.edu/tools/src/xtherm/RCS/xtherm.h,v 1.3 93/03/01 17:16:22 tom Exp $
 *
 */

#include <stdio.h>
#include <ctype.h>
#include <strings.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/socket.h>
#include <arpa/snmp/snmp.h>

#include <X11/Xlib.h>
#include <X11/Xutil.h>

typedef struct
{
  char name[64];
  char saddr[16];
  struct in_addr addr;
} Agent;


typedef struct
{
    int x,y,width,height;
    int geometry;
    int background, foreground, border;
    int border_width;
    Font font;
    XFontStruct *fstruct;
} WInfo;


typedef struct 
{
  Window w;
  GC gc,gcrv;
  WInfo *info;
  int temperature;
  int gage_max, gage_min;
  int type;
  int tic_inc;
  int error;
} Thermometer;


Thermometer thermometer_create();
Window window_create();
GC gc_create(), XCreateGC();

#define FAHRENHEIT 1
#define EVER    ;;
