PAPER API index
PAPER publishes provider API 2.0: two interfaces discovered through PAPERAPI_QueryInterfaceV1, each at major 2, minor 0. The headers are in PAPER's include/PAPER/. Mods built for the pre-2.0 API are refused; see where things moved and migrating from PAPER 1.2.
Interfaces
| ID | Interface | Version | Header | Capabilities | Calls |
|---|---|---|---|---|---|
| 1 | Provider | 2.0 | PAPER/Provider.h | The six ConsumerCapability bits | 16 |
| 2 | PhysicalReload | 2.0 | PAPER/PhysicalReload.h | AnimationAuthority, RuntimeState | 3 |
Capabilities are requested once, when Provider registers the owner, and the same owner token serves both interfaces. A name such as read belongs to each table separately; there is no global slot numbering.
Shared headers: PAPER/Abi.h (types and results), PAPER/Discovery.h and PAPER/Client.h (Provider). Every header is reproduced in complete declarations.
Where things moved
| Pre-2.0 API | Provider API 2.0 |
|---|---|
PAPERApi.h | PAPER's own include/PAPER/ through a PAPER_INCLUDE_DIR cache variable |
PAPERAPI_GetProviderDescriptorV1, PAPERAPI_GetProviderApi exports | PAPERAPI_QueryInterfaceV1; the old exports return null and log once |
PaperApi::initialize helper, table extents, supports…V1 helpers | paper::api::Client; a negotiated table is complete |
PAPERAPI_QueryPhysicalReloadV1, V2, V3 exports | PhysicalReload interface (2), with V3's early-takeover semantics |
getVersion | None; discovery reports the interface version |
getModVersion returning a number | getModVersion returns PAPER's version string |
Provider feature bits (featureBits fields) | None; every call in the table is served |
PaperResultV1 | Status |
Paper…V1 records, …V1 functions | Same names without the Paper prefix and V1 suffix, in paper::api |
PaperProviderApiV1 table | paper::api::provider::Api |
| Reload observation, animation evidence, reload stage, weapon motion and manipulation, development capture calls | None; removed with PAPER's development capture toolkit |
ConsumerCapability bits 5 to 9 and 11 to 14 | Retired and never granted |
EventKind 4 to 10 and the Event.related* fields | Retired |