home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / video / simpleVideo / include / vlUtil.h < prev   
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.9 KB  |  64 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.h,v 1.1 1994/04/27 19:39:29 dpb Exp $ */
  21.  
  22. /**********************************************************************
  23.  *  
  24.  * vlUtil.h - utility macros/functions to make vl control
  25.  *            settings a little easier and safer.
  26.  *
  27.  **********************************************************************
  28.  */
  29.  
  30. #ifndef _VL_UTIL_H_
  31. #define _VL_UTIL_H_
  32.  
  33. #include <vl/vl.h>
  34.  
  35. #define vlSetMuxSwitch(svr, path, node, value) \
  36.     vlSetIntControl(svr, path, node, VL_MUXSWITCH, value)
  37.  
  38. #define vlSetPacking(svr, path, node, value) \
  39.     vlSetIntControl(svr, path, node, VL_PACKING, value)
  40.  
  41. #define vlSetCapType(svr, path, node, value) \
  42.     vlSetIntControl(svr, path, node, VL_CAP_TYPE, value)
  43.  
  44. #define vlSetSize(svr, path, node, w, h) \
  45.     vlSetIntPairControl(svr, path, node, VL_SIZE, w, h)
  46.  
  47.  
  48. int
  49. vlSetIntControl(VLServer, 
  50.         VLPath,
  51.         VLNode,
  52.         VLControlType,
  53.         int);
  54.  
  55. int
  56. vlSetIntPairControl(VLServer,
  57.             VLPath,
  58.             VLNode,
  59.             VLControlType,
  60.             int,
  61.             int);
  62.  
  63. #endif /* _VL_UTIL_H */
  64.