home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SOM / INCLUDE / NVLIST.IDL < prev    next >
Text File  |  1995-08-24  |  2KB  |  51 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. //  This class implements the NVList object.
  14. #ifndef nvlist_idl
  15. #define nvlist_idl
  16. #include <somobj.idl>
  17. #include <somdtype.idl>
  18. interface NVList : SOMObject
  19. {
  20.   ORBStatus add_item(in Identifier item_name, in TypeCode item_type, 
  21.              in void *value, in long value_len, in Flags item_flags);
  22.   ORBStatus free();
  23.   ORBStatus free_memory();
  24.   ORBStatus get_count(out long count);
  25.   //
  26.   // These are the accessor functions which allow indexing
  27.   // into the NVList
  28.   //
  29.   ORBStatus set_item(in long item_number, 
  30.            in Identifier item_name, in TypeCode item_type, 
  31.                in void *value, in long value_len, in Flags item_flags);
  32.   // Items are numbered 0 ... N
  33.   ORBStatus get_item(in long item_number, 
  34.            out Identifier item_name, out TypeCode item_type, 
  35.                out void *value, out long value_len, out Flags item_flags);
  36.   // Items are numbered 0 ... N
  37. #ifdef __SOMIDL__
  38.   implementation 
  39.   {
  40.     releaseorder: add_item, remove_item, free, free_memory, get_count, 
  41.           set_item, get_item, get_item_by_name;
  42.     callstyle = idl;
  43.     dllname = "somd.dll";
  44.     majorversion = 2;
  45.     minorversion = 1;
  46.     somInit: override;
  47.   };
  48. #endif /* __SOMIDL__ */
  49. };
  50. #endif  /* nvlist_idl */
  51.