DEFINITION MODULE WPPIF;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPPif

  Copyright (c) 1994 by Juergen Neuhoff
****************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
(*$CDECL+    C-style procedures                                         *)
(*$A         default alignment for record fields                        *)

IMPORT SOM;
IMPORT WPDATAF;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPPif                 = POINTER TO WPPif;
TYPE PM_WPPif               = POINTER TO M_WPPif;

(************************************************************************
  Additional TYPE- and CONST-declarations supporting WPPif
*************************************************************************)


(*************************************************************************
  SOM class API for WPPif, including type-bound procedures
**************************************************************************)

CONST
  WPPif_MajorVersion     = 1;
  WPPif_MinorVersion     = 2;

TYPE
  WPPifClassDataStructure     = RECORD
    classObject                 : PSOMClass;
                                END;

VAR
  WPPifClassData : WPPifClassDataStructure;

TYPE
  (*$SOM+ *)
  WPPif = RECORD( WPDATAF.WPDataFile ) END;
  (*$SOM- *)


PROCEDURE WPPifNewClass
(
  majorVersion  : INTEGER4;
  minorVersion  : INTEGER4
)               : PSOMClass;


(*************************************************************************
  SOM class API for M_WPPif, including type-bound procedures
**************************************************************************)

CONST
  M_WPPif_MajorVersion   = 1;
  M_WPPif_MinorVersion   = 2;

TYPE
  M_WPPifClassDataStructure   = RECORD
    classObject                 : PSOMClass;
                                END;

VAR
  M_WPPifClassData : M_WPPifClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPPif = RECORD( WPDATAF.M_WPDataFile ) END;
  (*$SOM- *)


PROCEDURE M_WPPifNewClass
(
  majorVersion : INTEGER4;
  minorVersion : INTEGER4
)              : PSOMClass;

END WPPIF.
