Skip to main content

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​

IDInterfaceVersionHeaderCapabilitiesCalls
1Provider2.0PAPER/Provider.hThe six ConsumerCapability bits16
2PhysicalReload2.0PAPER/PhysicalReload.hAnimationAuthority, RuntimeState3

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 APIProvider API 2.0
PAPERApi.hPAPER's own include/PAPER/ through a PAPER_INCLUDE_DIR cache variable
PAPERAPI_GetProviderDescriptorV1, PAPERAPI_GetProviderApi exportsPAPERAPI_QueryInterfaceV1; the old exports return null and log once
PaperApi::initialize helper, table extents, supports…V1 helperspaper::api::Client; a negotiated table is complete
PAPERAPI_QueryPhysicalReloadV1, V2, V3 exportsPhysicalReload interface (2), with V3's early-takeover semantics
getVersionNone; discovery reports the interface version
getModVersion returning a numbergetModVersion returns PAPER's version string
Provider feature bits (featureBits fields)None; every call in the table is served
PaperResultV1Status
Paper…V1 records, …V1 functionsSame names without the Paper prefix and V1 suffix, in paper::api
PaperProviderApiV1 tablepaper::api::provider::Api
Reload observation, animation evidence, reload stage, weapon motion and manipulation, development capture callsNone; removed with PAPER's development capture toolkit
ConsumerCapability bits 5 to 9 and 11 to 14Retired and never granted
EventKind 4 to 10 and the Event.related* fieldsRetired