home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / win32-snmp.adb < prev    next >
Encoding:
Text File  |  1995-11-17  |  1.3 KB  |  35 lines

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-snmp.adb,v $ 
  2. -- $Revision: 1.1 $ $Date: 95/02/09 10:09:06 $ $Author: scoleman $ 
  3. -------------------------------------------------------------------------------
  4. --
  5. -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT 
  6. -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
  7. -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR 
  8. -- PURPOSE.  The user assumes the entire risk as to the accuracy and the 
  9. -- use of this file.
  10. --
  11. -- Copyright (c) Intermetrics, Inc. 1995
  12. -- Royalty-free, unlimited, worldwide, non-exclusive use, modification, 
  13. -- reproduction and further distribution of this file is permitted.
  14. --
  15. -------------------------------------------------------------------------------
  16.  
  17.  
  18. package body Win32.Snmp is
  19.  
  20.     use type Interfaces.C.Unsigned;
  21.  
  22.     function SNMP_oidcmp(
  23.                 A  : access AsnObjectIdentifier;
  24.                 B  : access AsnObjectIdentifier)
  25.                 return Win32.INT is                         -- snmp.h:302
  26.         maxlen : Win32.UINT := A.all.idLength;
  27.     begin
  28.         if (B.all.idLength > maxlen) then
  29.             maxlen := B.all.idLength;
  30.         end if;
  31.         return SNMP_oidncmp(A, B, maxlen);
  32.     end SNMP_oidcmp;
  33.  
  34. end Win32.Snmp;
  35.