Diffusion C API 6.13.0
Loading...
Searching...
No Matches
fetch-request.h File Reference

Data Structures

struct  diffusion_fetch_request_params_s
 Structure describing a fetch request. More...

Typedefs

typedef struct DIFFUSION_FETCH_REQUEST_T DIFFUSION_FETCH_REQUEST_T
 An opaque fetch request struct.
typedef struct DIFFUSION_FETCH_RESULT_T DIFFUSION_FETCH_RESULT_T
 An opaque fetch result struct.
typedef struct DIFFUSION_TOPIC_RESULT_T DIFFUSION_TOPIC_RESULT_T
 An opaque topic result struct.
typedef int(* on_fetch_result_cb) (const DIFFUSION_FETCH_RESULT_T *fetch_result, void *context)
 Callback when a fetch request has returned a result.
typedef struct diffusion_fetch_request_params_s DIFFUSION_FETCH_REQUEST_PARAMS_T
 Structure describing a fetch request.

Functions

LIST_T * diffusion_fetch_result_get_topic_results (const DIFFUSION_FETCH_RESULT_T *fetch_result)
 Returns a results LIST_T of DIFFUSION_TOPIC_RESULT_Ts from the fetch operation.
bool diffusion_fetch_result_has_more (const DIFFUSION_FETCH_RESULT_T *fetch_result)
 Indicates whether the fetch could have returned more results if it had not been constrained by the diffusion_fetch_request_first or diffusion_fetch_request_last limits.
int diffusion_fetch_result_size (const DIFFUSION_FETCH_RESULT_T *fetch_result)
 The number of elements in the fetch result.
int diffusion_fetch_result_is_empty (const DIFFUSION_FETCH_RESULT_T *fetch_result)
 Returns 1 (true) if the result contains zero elements.
char * diffusion_topic_result_get_path (const DIFFUSION_TOPIC_RESULT_T *topic_result)
 Returns the topic path.
TOPIC_TYPE_T diffusion_topic_result_get_topic_type (const DIFFUSION_TOPIC_RESULT_T *topic_result)
 Returns the topic type.
DIFFUSION_VALUE_T * diffusion_topic_result_get_value (const DIFFUSION_TOPIC_RESULT_T *topic_result)
 Returns the topic value.
TOPIC_SPECIFICATION_T * diffusion_topic_result_get_specification (const DIFFUSION_TOPIC_RESULT_T *topic_result)
 Returns the topic specification.
void diffusion_topic_result_free (DIFFUSION_TOPIC_RESULT_T *topic_result)
 Free a memory allocated DIFFUSION_TOPIC_RESULT_T.
bool diffusion_fetch_request_from (const DIFFUSION_FETCH_REQUEST_T *fetch_request, const char *topic_path, DIFFUSION_API_ERROR *error)
 Specifies a logical start point within the topic tree.
bool diffusion_fetch_request_after (const DIFFUSION_FETCH_REQUEST_T *fetch_request, const char *topic_path, DIFFUSION_API_ERROR *error)
 Specifies a logical start point within the topic tree.
bool diffusion_fetch_request_to (const DIFFUSION_FETCH_REQUEST_T *fetch_request, const char *topic_path, DIFFUSION_API_ERROR *error)
 Specifies a logical end point within the topic tree.
bool diffusion_fetch_request_before (const DIFFUSION_FETCH_REQUEST_T *fetch_request, const char *topic_path, DIFFUSION_API_ERROR *error)
 Specifies a logical end point within the topic tree.
bool diffusion_fetch_request_topic_types (const DIFFUSION_FETCH_REQUEST_T *fetch_request, SET_T *topic_types, DIFFUSION_API_ERROR *error)
 Specifies that only topics of the specified topic types should be returned.
bool diffusion_fetch_request_with_values (const DIFFUSION_FETCH_REQUEST_T *fetch_request, DIFFUSION_DATATYPE *datatype, DIFFUSION_API_ERROR *error)
 Specifies that values should be returned for selected topics, and constraining the selection to only those topics with a data type compatible with the specified value datatype.
bool diffusion_fetch_request_without_values (const DIFFUSION_FETCH_REQUEST_T *fetch_request, DIFFUSION_API_ERROR *error)
 Specifies that the fetch request should not return values.
bool diffusion_fetch_request_with_properties (const DIFFUSION_FETCH_REQUEST_T *fetch_request, DIFFUSION_API_ERROR *error)
 Specifies that all properties associated with each topic's specification should be returned.
bool diffusion_fetch_request_with_unpublished_delayed_topics (const DIFFUSION_FETCH_REQUEST_T *fetch_request, DIFFUSION_API_ERROR *error)
 Include the details of reference topics that are not yet published.
bool diffusion_fetch_request_first (const DIFFUSION_FETCH_REQUEST_T *fetch_request, int32_t number, DIFFUSION_API_ERROR *error)
 Specifies a maximum number of topic results to be returned from the start of the required range.
bool diffusion_fetch_request_last (const DIFFUSION_FETCH_REQUEST_T *fetch_request, int32_t number, DIFFUSION_API_ERROR *error)
 Specifies a maximum number of topic results to be returned from the end of the required range.
bool diffusion_fetch_request_maximum_result_size (const DIFFUSION_FETCH_REQUEST_T *fetch_request, uint32_t maximum, DIFFUSION_API_ERROR *error)
 Specifies the maximum data size of the result set.
bool diffusion_fetch_request_limit_deep_branches (const DIFFUSION_FETCH_REQUEST_T *fetch_request, uint32_t deep_branch_depth, uint32_t deep_branch_limit, DIFFUSION_API_ERROR *error)
 Specifies a limit on the number of results returned for each deep branch.
void diffusion_fetch_request_fetch (SESSION_T *session, DIFFUSION_FETCH_REQUEST_PARAMS_T params)
 Sends a fetch request to the server.
DIFFUSION_FETCH_REQUEST_T * diffusion_fetch_request_init (SESSION_T *session)
 Creates an unconfigured fetch request.
DIFFUSION_FETCH_REQUEST_T * diffusion_fetch_request_dup (const DIFFUSION_FETCH_REQUEST_T *fetch_request)
 Create a duplicate (copy) of an existing DIFFUSION_FETCH_REQUEST_T.
void diffusion_fetch_request_free (DIFFUSION_FETCH_REQUEST_T *fetch_request)
 Free a memory allocated DIFFUSION_FETCH_REQUEST_T