Skip to content

本页为英文技术参考;字段、编号与支持状态直接来自同一契约源。中文学习路线见 开发文档。

Retained Nexa preview bindings ​

These 22 dispatch slots preserve the earlier Nexa Bootstrap/ABI preview contract. They are unrelated to historical PCL.N.Plugin.* injection plugins. New features should use the current typed capability operations unless an existing integration specifically requires a retained slot. Numeric IDs remain local SDK dispatch IDs, not transport opcodes. The current catalog uses its own non-overlapping IDs.

The C bindings use the nx_Legacy_* prefix. Results in this compatibility catalog are generic AbiValue; use the matching legacy facade's decoder instead of assuming that a similarly named current method returns the same shape. The current Host mapping count does not add these slots to the current-operation catalog.

Lifecycle and authority ​

A retained method still requires negotiated access and its documented load scope. Legacy service ExportService belongs to Initialize, Bind to PostInitialize, Probe to Checkup and ordinary Call to Active. Finalize cannot add registrations. Cleanup uses the actual owned handle; do not reinterpret it as a current RegistrationRef. The event slot 3 is reserved and must not be invoked. Verify legacy integration against the actual Host rather than assuming namespace compatibility is sufficient.

Dispatch table ​

FamilyContractMethodIDInputOutput
Legacy.Eventsnexa.events/100DeclareEvent1LegacyEventDeclarationAbiValue
Legacy.Eventsnexa.events/100Subscribe2LegacyEventSubscriptionAbiValue
Legacy.Eventsnexa.events/100Publish4LegacyEventPublishAbiValue
Legacy.Eventsnexa.events/100Unsubscribe5LegacyHandleAbiValue
Legacy.UInexa.ui/100DeclareSurface1LegacySurfaceAbiValue
Legacy.UInexa.ui/100DeclareCommand2LegacyCommandAbiValue
Legacy.UInexa.ui/100DeclarePlacement3LegacyPlacementAbiValue
Legacy.UInexa.ui/100DeclareSettings4LegacySettingsAbiValue
Legacy.UInexa.ui/100PatchState5LegacyPatchAbiValue
Legacy.UInexa.ui/100SetCommandState6LegacyCommandStateAbiValue
Legacy.Pluginsnexa.interplugin/100Describe1LegacyServiceQueryAbiValue
Legacy.Pluginsnexa.interplugin/100Bind2LegacyServiceRequirementAbiValue
Legacy.Pluginsnexa.interplugin/100Call3LegacyServiceCallAbiValue
Legacy.Pluginsnexa.interplugin/100Release4LegacyHandleAbiValue
Legacy.Pluginsnexa.interplugin/100RebindOptional5LegacyServiceRequirementAbiValue
Legacy.Pluginsnexa.interplugin/100ExportService6LegacyServiceDeclarationAbiValue
Legacy.Pluginsnexa.interplugin/100Probe7LegacyServiceProbeAbiValue
Legacy.Diagnosticsnexa.diagnostics/100Report1LegacyDiagnosticAbiValue
Legacy.Diagnosticsnexa.diagnostics/100ReportFinding2LegacyFindingAbiValue
Legacy.Diagnosticsnexa.diagnostics/100QueryRegistrations3EmptyAbiValue
Legacy.Diagnosticsnexa.diagnostics/100QueryBindingStatus4EmptyAbiValue
Legacy.Resourcesnexa.resources/100RegisterCleanup1LegacyCleanupAbiValue

Empty ​

Encode the empty model; it is not an arbitrary Null payload.

LegacyHandle ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyEventDeclaration ​

FieldTypeRequired literal
NamestringNo literal fixed by the catalog
PayloadSchemaIdstringNo literal fixed by the catalog
PayloadSchemaDigeststringNo literal fixed by the catalog
DeliverystringBestEffortAtMostOnce
MaxPayloadBytesintNo literal fixed by the catalog
QueueLimitintNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyEventSubscription ​

FieldTypeRequired literal
SourcePluginIdstringNo literal fixed by the catalog
EventNamestringNo literal fixed by the catalog
SchemaIdstringNo literal fixed by the catalog
HandlerulongNo literal fixed by the catalog
RequiredboolNo literal fixed by the catalog
ConcurrencyintNo literal fixed by the catalog
QueueLimitintNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyEventPublish ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog
PayloadAbiValueNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacySurface ​

FieldTypeRequired literal
LocalIdstringNo literal fixed by the catalog
NodesAbiValueNo literal fixed by the catalog
ResourceIdsstring[]No literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyCommand ​

FieldTypeRequired literal
LocalIdstringNo literal fixed by the catalog
TitlestringNo literal fixed by the catalog
HandlerulongNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyPlacement ​

FieldTypeRequired literal
LocalIdstringNo literal fixed by the catalog
SurfaceIdstringNo literal fixed by the catalog
SlotIdstringNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacySettings ​

FieldTypeRequired literal
LocalIdstringNo literal fixed by the catalog
SchemaIdstringNo literal fixed by the catalog
SchemaDigeststringNo literal fixed by the catalog
LayoutAbiValueNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyPatch ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog
RevisionulongNo literal fixed by the catalog
PatchAbiValueNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyCommandState ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog
EnabledboolNo literal fixed by the catalog
VisibleboolNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyServiceRequirement ​

FieldTypeRequired literal
ProviderPluginIdstringNo literal fixed by the catalog
ServiceIdstringNo literal fixed by the catalog
MinimumContractVersionuintNo literal fixed by the catalog
MaximumContractVersionuintNo literal fixed by the catalog
RequiredboolNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyServiceQuery ​

FieldTypeRequired literal
ProviderPluginIdstringNo literal fixed by the catalog
ServiceIdstringNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyServiceCall ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog
MethodIduintNo literal fixed by the catalog
PayloadAbiValueNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyServiceDeclaration ​

FieldTypeRequired literal
ServiceIdstringNo literal fixed by the catalog
ContractIdstringNo literal fixed by the catalog
ContractVersionuintNo literal fixed by the catalog
SchemaDigeststringNo literal fixed by the catalog
MethodsAbiValue[]No literal fixed by the catalog
HealthProbeAbiValueNo literal fixed by the catalog
HandlerulongNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyServiceProbe ​

FieldTypeRequired literal
HandleulongNo literal fixed by the catalog
ProbeIduintNo literal fixed by the catalog
PayloadAbiValueNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyDiagnostic ​

FieldTypeRequired literal
CodestringNo literal fixed by the catalog
MessagestringNo literal fixed by the catalog
SeveritystringNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyFinding ​

FieldTypeRequired literal
CodestringNo literal fixed by the catalog
MessagestringNo literal fixed by the catalog
FatalboolNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

LegacyCleanup ​

FieldTypeRequired literal
CallbackulongNo literal fixed by the catalog

Fields follow the retained facade contract. A raw integer handle remains owner-scoped; a string schema ID must match its digest. Do not substitute a current DTO merely because it contains similar fields.

Reserved versus occupied IDs ​

Resources/1 is the retained cleanup operation listed above. Events/3 is reserved and excluded from the 22 callable legacy operations. A gap is not authority to assign a new operation: published IDs must retain their meaning.


来源: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.