home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / video / simpleVideo / lib / vlUtil.c < prev   
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.5 KB  |  50 lines

  1. /*
  2.  * Copyright (c) 1994, Silicon Graphics, Inc.
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software and
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that the name of Silicon Graphics may not be used in any advertising or
  7.  * publicity relating to the software without the specific, prior written
  8.  * permission of Silicon Graphics.
  9.  *
  10.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  11.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  12.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  13.  *
  14.  * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  15.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
  16.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE
  17.  * POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN
  18.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  19.  */
  20. /* $Id: vlUtil.c,v 1.1 1994/04/27 19:38:59 dpb Exp $ */
  21.  
  22. #include "vlUtil.h"
  23.  
  24. int vlSetIntControl(VLServer svr,
  25.             VLPath path,
  26.             VLNode node,
  27.             VLControlType control,
  28.             int value) {
  29.  
  30.     VLControlValue val;
  31.     
  32.     val.intVal = value;
  33.     return vlSetControl(svr, path, node, control, &val);
  34. }
  35.  
  36. int vlSetIntPairControl(VLServer svr,
  37.             VLPath path,
  38.             VLNode node,
  39.             VLControlType control,
  40.             int v1,
  41.             int v2) {
  42.  
  43.     VLControlValue val;
  44.     
  45.     val.xyVal.x = v1;
  46.     val.xyVal.y = v2;
  47.  
  48.     return vlSetControl(svr, path, node, control, &val);
  49. }
  50.