Method and apparatus for configuring extensible application programming interfaces
    41.
    发明授权
    Method and apparatus for configuring extensible application programming interfaces 有权
    用于配置可扩展应用程序编程接口的方法和装置

    公开(公告)号:US06721809B1

    公开(公告)日:2004-04-13

    申请号:US09643318

    申请日:2000-08-21

    IPC分类号: G06F900

    CPC分类号: G06F9/44521

    摘要: One embodiment of the present invention provides a system that modifies a function defined within an application programming interface (API) so that the function includes additional code. The system receives an additional code module to be integrated into the function within the API. The system also receives a command to integrate the additional code module into the function. This command is received through a pre-defined function within the API for integrating additional code into functions within the API. In response to the command, the system links the additional code into the function so that the additional code module is executed when the function is called. In one embodiment of the present invention, linking the additional code module into the function involves linking the additional code module as an entry function that is executed at the beginning of the function. In one embodiment of the present invention, linking the additional code module into the function involves linking the additional code module as an exit function that is executed at the end of the function. In one embodiment of the present invention, linking the additional code module into the function involves linking the additional code module as a replacement for original code for the function.

    摘要翻译: 本发明的一个实施例提供一种修改在应用编程接口(API)内定义的功能的系统,使得该功能包括附加代码。 系统接收一个附加的代码模块,以集成到API内的函数中。 该系统还接收一个将附加代码模块集成到该功能中的命令。 该命令通过API中的预定义函数接收,用于将附加代码集成到API中的函数中。 响应命令,系统将附加代码链接到函数中,以便在调用函数时执行附加代码模块。 在本发明的一个实施例中,将附加代码模块链接到功能中涉及将附加代码模块链接为在功能开始时执行的输入函数。 在本发明的一个实施例中,将附加代码模块链接到功能中涉及将附加代码模块链接为在功能结束时执行的退出函数。 在本发明的一个实施例中,将附加代码模块链接到功能中涉及链接附加代码模块作为功能的原始代码的替换。