home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / COMMONOD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.2 KB  |  47 lines

  1. /*
  2.     commonod.h    11/29/88
  3.  
  4.     Object primitive definitions.
  5.  
  6.     by Ted.
  7.  
  8.     OWL 1.1
  9.     Copyright (c) 1988, by Oakland Group, Inc.
  10.     ALL RIGHTS RESERVED.
  11.  
  12.     Note:    Object IDs should be between 10 and 999.
  13.             They are used as omalloc tags.
  14.  
  15.     Revision History:
  16.     -----------------
  17. */
  18.  
  19. #ifndef OAK_COMMONOD
  20. #define OAK_COMMONOD
  21. /* -------------------------------------------------------------------------- */
  22. #define obj_DoRaw(dispatch, objdata, msg, indata, outdata) \
  23.     (*dispatch)((VOID *)(objdata), msg, (VOID *)(indata), (VOID *)(outdata))
  24.  
  25. /* The 'common' object: the grandaddy of all objects */
  26.  
  27. /* common object data */
  28. typedef struct {
  29.     obj_type self;        /* pointer back to object shell structure */
  30. } common_od;
  31.  
  32. /* object get data size structure - used as outdata for OBJM_GETDATASIZE msg */
  33.  
  34. typedef struct {
  35.     SIZE_T        xdsize;    /* size of public object data */
  36.     SIZE_T        odsize;    /* size of private object data */
  37.     int            id;        /* object ID */
  38. } ogds_struct;
  39.  
  40. /* common_DoRaw macros to nothing for now */
  41. #define common_DoRaw(objdata, msg, indata, outdata)        (TRUE)
  42.  
  43. #define commonod_GetSelf(cdd)        ((cdd)->self)
  44. /* -------------------------------------------------------------------------- */
  45. #endif
  46.  
  47.