⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ss_msg.x

📁 中国石油二期加油站IC系统后台通讯软件
💻 X
字号:
/********************************************************************20**
 
     Name:     System Services -- Message manipulation functions
 
     Type:     C include file
 
     Desc:     Data structure definitions for message related functions.
 
     File:     ss_msg.x
 
     Sid:      ss_msg.x 1.2  -  08/10/98 18:43:18
 
     Prg:      sn
 
*********************************************************************21*/

#ifndef __SSMSGX__
#define __SSMSGX__

#ifdef __cplusplus
extern "C" {
#endif


/* pool type -- dynamic or static */
    typedef U8              SsPoolType;



/* dynamic pool */
    typedef struct ssDPoolEntry
    {
        SsdDPoolEntry        dep;                    /* implementation specific */
        Size                 size;                   /* to use for SAlloc() */
    } SsDPoolEntry;


/* static pool */
    typedef struct ssSPoolEntry
    {
        SsdSPoolEntry        dep;                    /* implementation specific */
    } SsSPoolEntry;


/* generic pool (includes dynamic and static) */
    typedef struct ssPoolEntry
    {
        SsdPoolEntry         dep;                    /* implementation specific */
        SsPoolType           type;                   /* dynamic or static */
        union 
        {
            SsSPoolEntry      spool;                  /* static pool */
            SsDPoolEntry      dpool;                  /* dynamic pool */
        } u;
    } SsPoolEntry;


/* event information--what kind of message is this */
    typedef struct ssEventInfo
    {
        U8 event;                                    /* event type */
        union
        {
            struct
            {
                SsIdx tmrIdx;                          /* timer index */
                Bool  inUse;                           /* message in use? */
                Bool  dynBuf;                          /* dynamic buffer? */
            } tmr;                                    /* for timer events */
        } u;
    } SsEventInfo;


/* Information stored in the control portion of a message.
 * The SGETBUFREGION, SGETBUFPOOL, SGetBufRegionPool macros
 * depend on the order of the first two elements of this
 * structure. Make sure the macros are consistent with the
 * definition here.
 */
    typedef struct ssMsgInfo
    {
        Region       region;                         /* region id of the msg chain */
        Pool         pool;                           /* pool id of the msg chain */
        MsgLen       len;                            /* num of bytes in the msg */
        Buffer       *endptr;                        /* ptr to last mblk in chain */
        Buffer       *next;                          /* for SInitNxtDBuf() */
        Pst          pst;                            /* post for this message */
        SsEventInfo  eventInfo;                      /* event information */
    } SsMsgInfo;


#ifdef __cplusplus
}
#endif

#endif /* __SSMSGX__ */



/********************************************************************30**
 
         End of file: ss_msg.x 1.2  -  08/10/98 18:43:18
 
*********************************************************************31*/


/********************************************************************40**
 
        Notes:
 
*********************************************************************41*/

/********************************************************************50**
 
*********************************************************************51*/


/********************************************************************60**
 
        Revision history:
 
*********************************************************************61*/

/********************************************************************90**
 
     ver       pat    init                  description
------------ -------- ---- ----------------------------------------------
1.1          ---      sn   1. initial release
  
1.2          ---      kr   1. added a comment to reflect the dependency
                              of SGETBUFREGION, SGETBUFPOOL, 
                              SGetBufRegionPool on the order of fields

*********************************************************************91*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -