
 /* SP_SPOListSubs.h -
    - Functions for spobject List Handling -
    (c) 1993 by Andreas R. Kleinert
    Last changes : 11.09.1993
 */

#include "SuperPlay.h"


 /* spobject List Handling Functions */

extern struct SPS_SPOList *  __regargs SPS_GetSPOList(void);
extern void	             __regargs SPS_FreeSPOList(struct SPS_SPOList *SPOList);
extern long                  __regargs SPS_AddSPOEntry(struct SPS_SPOList *mlist,  struct SPO_ObjectNode *spo_node);
extern struct SPS_SPOEntry * __regargs SPS_GetSPOEntry(struct SPS_SPOList *SPOList, long entrynum);


struct SPS_SPOList
{
 struct List   spl_EntryList;  /* List of Entries. Type : struct SPS_SPOEntry */
 LONG	       spl_NumEntries; /* Number of List-Entries			    */
 UBYTE       **spl_Labels;     /* Labels of List-Entries			    */
};

     /* The SPS_SPOEntry structure, retured by SPS_GetSPOList() */

struct SPS_SPOEntry
{
 struct Node            SPONode;

 UBYTE                  spe_ObjectID [128];
 ULONG                  spe_ObjectCode;
 ULONG                  spe_ObjectSubCode;

 struct SPO_ObjectNode *spe_SPO_ObjectNode;
};
