Type Definitions (TCVcsTypes.pas)
Return to Introduction  Previous page  Next page
There are two main type definitions for the API. These are the records used to hold Checkin and Checkout information:

CheckOutInfo

type  
  TCheckOutInfo = record  
    Comments: PChar;  
    Extra: PChar;  
    Revision: PChar;  
    LocalPath: PChar;  
    VersionID: Cardinal;  
    AssignVersionID: Cardinal;  
    Overwrite: Boolean;  
    Lock: Boolean;  
  end;  
  PCheckOutInfo = ^TCheckOutInfo;  

CheckInInfo

type  
  TCheckInInfo = record  
    Comments: PChar;  
    Extra: PChar;  
    VersionID: Cardinal;  
    Flags: Integer;  
  end;  
  PCheckInInfo = ^TCheckInInfo;  

In both the above cases, instances of these records can be created using the InitializeCheckOutInfo and InitializeCheckInInfo and released with the corresponding Release functions.

These function simply initialize the records with typical sizes for the various fields. There is no restriction on the size of the Comments and Extra fields so you can assign your own sizes to these fields.


 


© 1995-2018 MCN Software