首页 | 主题 | 图库 | 问答 | 文摘 | 原创 | 百科

历史 | 地理 | 人物 | 艺术 | 体育 | 科学 | 音乐 | 电影 | 信息技术 | 世界遗产

 开放、中立,源自维基百科

Personal tools

Application programming interface

From Wikipedia, the free encyclopedia

Jump to: navigation, search

An application programming interface (API) is a source code interface that an operating system or library provides to support requests for services to be made of it by computer programs.[1]

Contents

API versus ABI

An API is similar to an application binary interface (ABI) in that both specify details of how two independent computer programs can interact. However, an API is typically defined at a higher level (i.e., in terms of a programming language that can be compiled when an application is built, rather than an explicit low level description of how data is laid out in memory). For example, the Linux Standard Base is an ABI, while POSIX is an API.[2]

Distinction between specification and its implementation

The software that provides the functionality described by an API is said to be an implementation of the API. The API itself is abstract, in that it specifies an interface and the behavior of the identifiers specified in that interface; it does not specify how the behavior may be implemented.

Release policies

There are two general kinds of API publishing policies that are often encountered:

  1. Some companies protect information on their APIs from the general public. For example, Sony used to make its official PlayStation 2 API available only to licensed PlayStation developers. This enabled Sony to control who wrote PlayStation 2 games. Such control can have quality control benefits and potential license revenue.
  2. Some companies make their APIs freely available. For example Microsoft makes most of its API information public, so that software will be written for the Windows platform.

Some example APIs

See also

References

  1. ^ QuickStudy: Application Programming Interface (API). ComputerWorld.
  2. ^ Update on Standards. USENIX.


External links

bn:অ্যাপলিকেশন প্রোগ্রামিং ইন্টারফেস bs:Application Programming Interface bg:API ca:API cs:API da:API de:Programmierschnittstelle et:API el:Διεπαφή προγραμματισμού εφαρμογών es:Application Programming Interface eu:Application Programming Interface fa:رابط برنامه‌نویسی نرم‌افزار fr:Interface de programmation gl:API ko:API id:Antarmuka pemrograman aplikasi it:Application programming interface he:ממשק תכנות יישומים lt:Aplikacijų programavimo sąsaja hu:Alkalmazásprogramozási felület nl:Application Programming Interface ja:Application Programming Interface no:API pl:API (informatyka) pt:API ro:Interfaţă de programe de aplicaţii ru:Интерфейс программирования приложений sk:Application programming interface fi:Ohjelmointirajapinta sv:Application Programming Interface th:เอพีไอ vi:Giao diện lập trình ứng dụng tr:Yazılım programlama arayüzü uk:API

Languages
AD Links