/*
 * Copyright 1988, 1989, 1990, 1991 Massachusetts Institute of Technology
 */
#include "Glib.h"
#include "GSample.h"

static G_INT32 protomaj = -1;

/* Most extentensions will not specify the minor number as an argument, 
   but this is for testing.
*/

G_INT32 GSampleMethod(serv, num)
     Server *serv;
     G_INT32 num;
{
  if (protomaj == -1) protomaj = GExtensionMajor(serv, "SAMPLE_EXTENSION");
  if (protomaj == NO_EXTENSION) return NO_EXTENSION;
  if (SendCommand(serv->fd, protomaj, num, 0,0,0,0,0,0,0,0) == -1)
    return(_handleerror(serv, GIO_ERROR));
  return NO_ERROR;
}


