home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xt / ConvertI.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-11  |  2.3 KB  |  74 lines

  1. /* $XConsortium: ConvertI.h,v 1.14 91/05/11 14:53:10 converse Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. /* Representation types */
  28.  
  29. extern    XrmQuark  _XtQString;
  30.  
  31. /*
  32.  * Resource conversions
  33.  */
  34.  
  35. typedef struct _ConverterRec **ConverterTable;
  36.  
  37. extern void _XtSetDefaultConverterTable(
  38. #if NeedFunctionPrototypes
  39.     ConverterTable*         /* table */
  40. #endif
  41. );
  42.  
  43. extern void _XtFreeConverterTable(
  44. #if NeedFunctionPrototypes
  45.     ConverterTable         /* table */
  46. #endif
  47. );
  48.  
  49. extern void _XtTableAddConverter(
  50. #if NeedFunctionPrototypes
  51.     ConverterTable        /* table */,
  52.     XrmRepresentation        /* from_type */,
  53.     XrmRepresentation        /* to_type */,
  54.     XtTypeConverter          /* converter */,
  55.     XtConvertArgList         /* convert_args */,
  56.     Cardinal                 /* num_args */,
  57.     _XtBoolean                  /* new_style */,
  58.     XtCacheType                /* cache_type */,
  59.     XtDestructor             /* destructor */
  60. #endif
  61. );
  62.  
  63. extern Boolean _XtConvert(
  64. #if NeedFunctionPrototypes
  65.     Widget            /* widget */,
  66.     XrmRepresentation        /* from_type */,
  67.     XrmValuePtr            /* from */,
  68.     XrmRepresentation        /* to_type */,
  69.     XrmValuePtr            /* to */,
  70.     XtCacheRef*            /* cache_ref_return */
  71. #endif              
  72. );
  73.  
  74.