Method

OmniSourceSnapshotplan_async

Declaration

void
omni_source_snapshot_plan_async (
  OmniSourceSnapshot* self,
  GPtrArray* port_link_sets,
  OmniSourcePlanContext* context,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  void* user_data
)

Description

Create an Omni.SourcePlan object to serve given links for each port.

At least one Omni.PortLinkSet is given. Omni.PortLinkSet.port_index refers to a port from the Omni.SourceSnapshot object on which this method is called, and no two Omni.PortLinkSet objects refer to the same port.

Each Omni.PortLinkSet object contains at least one parameter set (GLib.Variant).

Link Outputs

This method must assign a link output set for every link in every provided OmniPortLinkSet object by calling its methods.

A link output set is a variant of type a{sv} (variant dictionary). It may contain handles (type h) referencing input streams created by omni_source_plan_context_add_table_stream(). The handle values can be retrieved by the OmniStreamBuilder:handle property.

The API provides no built-in mechanisms to define or enforce the schema of link outputs. The recommended way is to define a schema and an input port attribute to indicate compliance to that schema through out-of-band means such as documentation.

Error Reporting

If the input source needs to validate link parameters, implementing the validation in this method will result in an optimal user experience. .

Parameters

port_link_sets

Type: An array of OmniPortLinkSet*

No description available.

The data is owned by the caller of the method.
context

Type: OmniSourcePlanContext

No description available.

The data is owned by the caller of the method.
cancellable

Type: GCancellable

No description available.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

No description available.

The argument can be NULL.
user_data

Type: void*

No description available.

The argument can be NULL.
The data is owned by the caller of the method.