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

📄 stafserviceinterface.h

📁 Software Testing Automation Framework (STAF)的开发代码
💻 H
📖 第 1 页 / 共 2 页
字号:
    STAFString_t        physicalInterfaceID;};/*********************************************************************//* STAFServiceGetLevelBounds - This function is called to determine  *//*                             what data structure levels a service  *//*                             supports.                             *//*                                                                   *//* Accepts: (IN)  The data structure ID (one of the enumeration      *//*                  values in STAFServiceLevelID)                    *//*          (OUT) A pointer to the minimum structure level supported *//*          (OUT) A pointer to the maximum structure level supported *//*                                                                   *//* Returns:  kSTAFOk, if successful                                  *//*********************************************************************/STAFRC_t STAFServiceGetLevelBounds(unsigned int levelID,                                   unsigned int *minimum,                                   unsigned int *maximum);/*********************************************************************//* STAFServiceConstruct - This function is called to construct a     *//*                        service.                                   *//*                                                                   *//* Accepts: (OUT) A Pointer to the service's handle (this is used in *//*                  all subsequent calls by STAF)                    *//*          (IN)  A pointer to a ServiceInfo data structure          *//*          (IN)  The level of the ServiceInfo data structure        *//*          (OUT) A pointer to an error string (this should only be  *//*                  set, and will only be freed by STAF, if the      *//*                  service returns a non-zero return code)          *//*                                                                   *//* Returns:  kSTAFOk, if successful                                  *//*********************************************************************/STAFRC_t STAFServiceConstruct(STAFServiceHandle_t *pServiceHandle,                              void *pServiceInfo, unsigned int infoLevel,                              STAFString_t *pErrorBuffer);/*********************************************************************//* STAFServiceInit - This function is called to initialize a         *//*                   service.                                        *//*                                                                   *//* Accepts: (IN)  The service's handle (obtained from                *//*                  STAFServiceConstruct)                            *//*          (IN)  A pointer to a ServiceInit data structure          *//*          (IN)  The level of the ServiceInit data structure        *//*          (OUT) A pointer to an error string (this should only be  *//*                  set, and will only be freed by STAF, if the      *//*                  service returns a non-zero return code)          *//*                                                                   *//* Returns:  kSTAFOk, if successful                                  *//*********************************************************************/STAFRC_t STAFServiceInit(STAFServiceHandle_t serviceHandle,                         void *pInitInfo, unsigned int initLevel,                         STAFString_t *pErrorBuffer);/*********************************************************************//* STAFServiceAcceptRequest - This function is called to have the    *//*                            service handle a request.              *//*                                                                   *//* Accepts: (IN)  The service's handle (obtained from                *//*                  STAFServiceConstruct)                            *//*          (IN)  A pointer to a ServiceRequest data structure       *//*          (IN)  The level of the ServiceRequest data structure     *//*          (OUT) A pointer to the request's result buffer (this     *//*                  should also be set, even if it is an empty       *//*                  string, as STAF will always try to destruct this *//*                  string)                                          *//*                                                                   *//* Returns: The return code of the request (this should one of the   *//*          return codes defined in STAFError.h or be 4000+)         *//*********************************************************************/STAFRC_t STAFServiceAcceptRequest(STAFServiceHandle_t serviceHandle,                                  void *pRequestInfo, unsigned int reqLevel,                                  STAFString_t *pResultBuffer);/*********************************************************************//* STAFServiceTerm - This function is called to terminate a service. *//*                                                                   *//* Accepts: (IN)  The service's handle (obtained from                *//*                  STAFServiceConstruct)                            *//*          (IN)  A pointer to a ServiceTerm data structure          *//*          (IN)  The level of the ServiceTerm data structure        *//*          (OUT) A pointer to an error string (this should only be  *//*                  set, and will only be freed by STAF, if the      *//*                  service returns a non-zero return code)          *//*                                                                   *//* Returns:  kSTAFOk, if successful                                  *//*********************************************************************/STAFRC_t STAFServiceTerm(STAFServiceHandle_t serviceHandle,                         void *pTermInfo, unsigned int termLevel,                         STAFString_t *pErrorBuffer);/*********************************************************************//* STAFServiceDestruct - This function is called to destruct a       *//*                       service.                                    *//*                                                                   *//* Accepts: (IN)  The service's handle (obtained from                *//*                  STAFServiceConstruct)                            *//*          (IN)  A pointer to a ServiceDestruct data structure      *//*          (IN)  The level of the ServiceDestruct data structure    *//*          (OUT) A pointer to an error string (this should only be  *//*                  set, and will only be freed by STAF, if the      *//*                  service returns a non-zero return code)          *//*                                                                   *//* Returns:  0, if successful                                        *//*          >0, if unsuccessful (this should be one of the errors    *//*              defined in STAFError.h or be 4000+)                  *//*********************************************************************/STAFRC_t STAFServiceDestruct(STAFServiceHandle_t *serviceHandle,                             void *pDestructInfo,                             unsigned int destructLevel,                             STAFString_t *pErrorBuffer);/***********************************//* Define typedefs for use by STAF *//***********************************/typedef STAFRC_t (*STAFServiceGetLevelBounds_t)(unsigned int levelID,    unsigned int *minimum, unsigned int *maximum);typedef STAFRC_t (*STAFServiceConstruct_t)(    STAFServiceHandle_t *pServiceHandle, void *pServiceInfo,    unsigned int infoLevel, STAFString_t *pErrorBuffer);typedef STAFRC_t (*STAFServiceInit_t)(STAFServiceHandle_t serviceHandle,    void *pInitInfo, unsigned int initLevel, STAFString_t *pErrorBuffer);typedef STAFRC_t (*STAFServiceAcceptRequest_t)(    STAFServiceHandle_t serviceHandle, void *pRequestInfo,    unsigned int reqLevel, STAFString_t *pResultBuffer);typedef STAFRC_t (*STAFServiceTerm_t)(STAFServiceHandle_t serviceHandle,    void *pTermInfo, unsigned int termLevel, STAFString_t *pErrorBuffer);typedef STAFRC_t (*STAFServiceDestruct_t)(    STAFServiceHandle_t *serviceHandle, void *pDestructInfo,    unsigned int destructLevel, STAFString_t *pErrorBuffer);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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