Core Types API

Typedefs

typedef struct SeleneErrorModelAPIVersion SeleneErrorModelAPIVersion
typedef void *SeleneErrorModelInstance
typedef void *SeleneErrorModelSetResultInstance

An instance is provided to selene_runtime_get_next_operations, which must pass that back to any function it calls in it’s provided [ErrorModelSetResultInterface].

typedef struct SeleneErrorModelSetResultInterface SeleneErrorModelSetResultInterface

A plugin’s implementation of selene_runtime_get_next_operations is provided a pointer to a ErrorModelSetResultInterface as well as a [ErrorModelSetResultInstance]. It should call the functions within to populate a batch. All such calls must pass the instance as the first parameter.

typedef struct SeleneSimulatorAPIVersion SeleneSimulatorAPIVersion
typedef void *SeleneSimulatorInstance
typedef struct SeleneRuntimeAPIVersion SeleneRuntimeAPIVersion
typedef void *SeleneRuntimeGetOperationInstance

An instance is provided to selene_runtime_get_next_operations, which must pass that back to any function it calls in it’s provided [RuntimeGetOperationInterface].

typedef struct SeleneRuntimeGetOperationInterface SeleneRuntimeGetOperationInterface

A plugin’s implementation of selene_runtime_get_next_operations is provided a pointer to a RuntimeGetOperationInterface as well as a [RuntimeGetOperationInstance]. It should call the functions within to populate a batch. All such calls must pass the instance as the first parameter.

typedef void *SeleneRuntimeExtractOperationInstance
typedef struct SeleneRuntimeExtractOperationInterface SeleneRuntimeExtractOperationInterface
typedef int32_t SeleneErrno
struct SeleneErrorModelAPIVersion

Public Members

uint8_t reserved

Reserved for future use, must be 0.

uint8_t major

Major version of the API.

uint8_t minor

Minor version of the API.

uint8_t patch

Patch version of the API.

struct SeleneErrorModelSetResultInterface
#include <core_types.h>

A plugin’s implementation of selene_runtime_get_next_operations is provided a pointer to a ErrorModelSetResultInterface as well as a [ErrorModelSetResultInstance]. It should call the functions within to populate a batch. All such calls must pass the instance as the first parameter.

Public Members

void (*set_bool_result_fn)(SeleneErrorModelSetResultInstance, uint64_t, bool)
void (*set_u64_result_fn)(SeleneErrorModelSetResultInstance, uint64_t, uint64_t)
struct SeleneSimulatorAPIVersion

Public Members

uint8_t reserved

Reserved for future use, must be 0.

uint8_t major

Major version of the API.

uint8_t minor

Minor version of the API.

uint8_t patch

Patch version of the API.

struct SeleneRuntimeAPIVersion

Public Members

uint8_t reserved

Reserved for future use, must be 0.

uint8_t major

Major version of the API.

uint8_t minor

Minor version of the API.

uint8_t patch

Patch version of the API.

struct SeleneRuntimeGetOperationInterface
#include <core_types.h>

A plugin’s implementation of selene_runtime_get_next_operations is provided a pointer to a RuntimeGetOperationInterface as well as a [RuntimeGetOperationInstance]. It should call the functions within to populate a batch. All such calls must pass the instance as the first parameter.

Public Members

void (*rzz_fn)(SeleneRuntimeGetOperationInstance, uint64_t, uint64_t, double)
void (*rxy_fn)(SeleneRuntimeGetOperationInstance, uint64_t, double, double)
void (*rz_fn)(SeleneRuntimeGetOperationInstance, uint64_t, double)
void (*measure_fn)(SeleneRuntimeGetOperationInstance, uint64_t, uint64_t)
void (*measure_leaked_fn)(SeleneRuntimeGetOperationInstance, uint64_t, uint64_t)
void (*reset_fn)(SeleneRuntimeGetOperationInstance, uint64_t)
void (*custom_fn)(SeleneRuntimeGetOperationInstance, size_t, const void*, size_t)
void (*set_batch_time_fn)(SeleneRuntimeGetOperationInstance, uint64_t, uint64_t)
struct SeleneRuntimeExtractOperationInterface