📄 mnmainlp.h
字号:
noneNOTES********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnRemoveEventHandler - Remove event handler to be called when I/O eventoccurs on specified file descriptor and condition.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis is not supported in the NT version of this library.********************************************************************************/#ifndef _WIN32#ifdef __STDC__void MnRemoveEventHandler( int fid, mnConditionType condition);#elsevoid MnRemoveEventHandler();#endif#endif /* _WIN32 *//********************************************************************************FORTRAN callable version call MnFtnRemoveEventHandler (fid, condition) integer fid integer conditionDESCRIPTION The MnRemoveEventHandler procedure removes an event handler to be calledwhen an I/O event occurs for the specified file descriptor and condition.INPUT VALUES fid - file descriptor. condition - type of select I/O event.OUTPUT VALUES noneNOTES Values for the input parameters must be the same as whenMnAddEventHandler was called in order to remove the proper handler.*******************************************************************************FUNCTION END */#ifndef _WIN32 /* The functions below are not supported on NT *//* FUNCTION START*******************************************************************************NAME MnSetObjectHandler - Set event handler to be called when softbusorder is received from the specified sending object. Only one eventhandler is active at a time per sending object.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnSetObjectHandler( ObjectIdS object, mnSbHandlerType eventHandler, mnUserDataType userData);#elsevoid MnSetObjectHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnSetObjectHandler (object, ftnFunc, userData) integer object function ftnFunc "pointer to any thing" userDataDESCRIPTION The MnSetObjectHandler procedure sets an event handler to be calledwhen a softbus order is received from the specified sending object.INPUT VALUES object - sending object id. eventHandler - event handler. userData - user data (anything that is the same size as a pointer).OUTPUT VALUES noneNOTES********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnSetServiceHandler - Set event handler to be called when softbusorder is received requesting the specified service. Only one eventhandler is active at a time per service.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnSetServiceHandler( ServiceId service, mnSbHandlerType eventHandler, mnUserDataType userData);#elsevoid MnSetServiceHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnSetServiceHandler (service, ftnFunc, userData) integer service function ftnFunc "pointer to any thing" userDataDESCRIPTION The MnSetServiceHandler procedure sets an event handler to be calledwhen a softbus order is received requesting the specified service.INPUT VALUES service - requested service id. eventHandler - event handler. userData - user data (anything that is the same size as a pointer).OUTPUT VALUES noneNOTESAn event handler registered by MnSetRequestHandler for the same servicetakes precedence when the request matches. If the request does not matchthen the MnSetServiceHandler event handler is called.********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnSetDefaultServiceHandler - Set default event handler to be called when softbus order is received which does not match any specified services. SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnSetDefaultServiceHandler( mnSbHandlerType eventHandler, mnUserDataType userData);#elsevoid MnSetDefaultServiceHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnSetDefaultServiceHandler (ftnFunc, userData) function ftnFunc "pointer to any thing" userDataDESCRIPTION The MnSetDefaultServiceHandler procedure sets an event handler to be calledwhen a softbus order is received which does not match any specified servicesINPUT VALUES eventHandler - event handler. userData - user data (anything that is the same size as a pointer).OUTPUT VALUES noneNOTES********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnSetRequestHandler - Set event handler to be called when softbusorder is received requesting the specified service and request. Onlyone event handler is active at a time per service and request.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnSetRequestHandler( ServiceId service, tSboRequest request, mnSbHandlerType eventHandler, mnUserDataType userData);#elsevoid MnSetRequestHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnSetRequestHandler (service, request, ftnFunc, userData) integer service integer request function ftnFunc "pointer to any thing" userDataDESCRIPTION The MnSetRequestHandler procedure sets an event handler to becalled when a softbus order is received requesting the specifiedservice and request.INPUT VALUES service - requested service id. request - requested request id. eventHandler - event handler. userData - user data (anything that is the same size as a pointer).OUTPUT VALUES noneNOTES********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnRemoveObjectHandler - Remove event handler to be called when asoftbus order is received from the specified object.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnRemoveObjectHandler( ObjectIdS object);#elsevoid MnRemoveObjectHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnRemoveObjectHandler (object) integer objectDESCRIPTION The MnRemoveObjectHandler procedure removes an event handler to becalled when a softbus order is received from the specified object.INPUT VALUES object - sending object id.OUTPUT VALUES noneNOTES Values for the input parameters must be the same as whenMnSetObjectHandler was called in order to remove the proper handler.********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnRemoveServiceHandler - Remove event handler to be called when asoftbus order is received requesting the specified service.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnRemoveServiceHandler( ServiceId service);#elsevoid MnRemoveServiceHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnRemoveServiceHandler (service) integer serviceDESCRIPTION The MnRemoveServiceHandler procedure removes an event handler to becalled when a softbus order is received requesting the specified service.INPUT VALUES service - requested service id.OUTPUT VALUES noneNOTES Values for the input parameters must be the same as whenMnSetServiceHandler was called in order to remove the proper handler.********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnRemoveDefaultServiceHandler - Remove event handler to be called when asoftbus order is received which does not match any specified services.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnRemoveDefaultServiceHandler();#elsevoid MnRemoveDefaultServiceHandler();#endif#endif /* not ICAPI *//********************************************************************************FORTRAN callable version call MnFtnRemoveDefaultServiceHandler ()DESCRIPTION The MnRemoveServiceHandler procedure removes an event handler to becalled when a softbus order is received which does not match anyspecified service.INPUT VALUES noneOUTPUT VALUES noneNOTES********************************************************************************FUNCTION END *//* FUNCTION START*******************************************************************************NAME MnRemoveRequestHandler - Remove event handler to be called when asoftbus order is received requesting the specified service and request.SYNOPSIS #include <def_c/mnmainloop.h>NOTESThis function is not supported for the ICCP SDK. See the ICCP Software Development Kit User's Guide for information on the supported functions.********************************************************************************/#ifndef ICAPI#ifdef __STDC__void MnRemoveRequestHandler( ServiceId service, tSboRequest request);#elsevoid MnRemoveRequestHandler();#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -