home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / nvlist.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  80 lines

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. //#  @(#) 2.8 src/somd/nvlist.idl, somd, som2.1 9/1/94 16:53:39 [7/30/96 14:45:31]
  14.  
  15.  
  16. //  This class implements the NVList object.
  17.  
  18.  
  19.  
  20.  
  21. #ifndef nvlist_idl
  22. #define nvlist_idl
  23.  
  24. #include <somobj.idl>
  25. #include <somdtype.idl>
  26.  
  27. interface NVList : SOMObject
  28. {
  29.  
  30.   ORBStatus add_item(in Identifier item_name, in TypeCode item_type, 
  31.              in void *value, in long value_len, in Flags item_flags);
  32.  
  33.  
  34.   ORBStatus free();
  35.  
  36.   ORBStatus free_memory();
  37.  
  38.   ORBStatus get_count(out long count);
  39.   
  40.   //
  41.   // These are the accessor functions which allow indexing
  42.   // into the NVList
  43.   //
  44.  
  45.   ORBStatus set_item(in long item_number, 
  46.            in Identifier item_name, in TypeCode item_type, 
  47.                in void *value, in long value_len, in Flags item_flags);
  48.   
  49.   // Items are numbered 0 ... N
  50.  
  51.   ORBStatus get_item(in long item_number, 
  52.            out Identifier item_name, out TypeCode item_type, 
  53.                out void *value, out long value_len, out Flags item_flags);
  54.   
  55.   // Items are numbered 0 ... N
  56.  
  57. #ifdef __SOMIDL__
  58.  
  59.   implementation 
  60.   {
  61.     releaseorder: add_item, remove_item, free, free_memory, get_count, 
  62.           set_item, get_item, get_item_by_name;
  63.  
  64.     //# Class Modifiers
  65.     callstyle = idl;
  66.     dllname = "somd.dll";
  67.     majorversion = 2;
  68.     minorversion = 1;
  69.   
  70.     //# Method Modifiers
  71.     somInit: override;
  72.  
  73.   };
  74.  
  75. #endif /* __SOMIDL__ */
  76.  
  77. };
  78.  
  79. #endif  /* nvlist_idl */
  80.