28 #include "opal_config.h"
109 opal_data_type_t type);
213 int32_t *max_num_values,
214 opal_data_type_t type);
241 opal_data_type_t *type,
398 opal_data_type_t type);
536 const char *name, opal_data_type_t *type);
541 typedef char* (*opal_dss_lookup_data_type_fn_t)(opal_data_type_t type);
546 typedef void (*opal_dss_dump_data_types_fn_t)(
int output);
571 opal_dss_lookup_data_type_fn_t lookup_data_type;
572 opal_dss_dump_data_types_fn_t dump_data_types;
int(* opal_dss_register_fn_t)(opal_dss_pack_fn_t pack_fn, opal_dss_unpack_fn_t unpack_fn, opal_dss_copy_fn_t copy_fn, opal_dss_compare_fn_t compare_fn, opal_dss_size_fn_t size_fn, opal_dss_print_fn_t print_fn, opal_dss_release_fn_t release_fn, bool structured, const char *name, opal_data_type_t *type)
Register a set of data handling functions.
Definition: dss.h:528
int(* opal_dss_copy_payload_fn_t)(opal_buffer_t *dest, opal_buffer_t *src)
Copy a payload from one buffer to another This function will append a copy of the payload in one buff...
Definition: dss.h:340
int(* opal_dss_get_fn_t)(void **data, opal_dss_value_t *value, opal_data_type_t type)
Get a data value.
Definition: dss.h:485
OPAL_DECLSPEC int opal_dss_open(void)
DSS initialization function.
Definition: dss_open_close.c:180
int(* opal_dss_copy_fn_t)(void **dest, void *src, opal_data_type_t type)
Copy a data value from one location to another.
Definition: dss.h:382
int(* opal_dss_set_fn_t)(opal_dss_value_t *value, void *new_value, opal_data_type_t type)
Set a data value.
Definition: dss.h:467
int(* opal_dss_unload_fn_t)(opal_buffer_t *buffer, void **payload, int32_t *size)
Unload the data payload from a buffer.
Definition: dss.h:280
BEGIN_C_DECLS typedef int(* opal_dss_set_buffer_type_fn_t)(opal_buffer_t *buffer, opal_dss_buffer_type_t type)
Set the buffer type.
Definition: dss.h:54
int(* opal_dss_load_fn_t)(opal_buffer_t *buffer, void *payload, int32_t size)
Load a data payload into a buffer.
Definition: dss.h:324
int(* opal_dss_unpack_fn_t)(opal_buffer_t *buffer, void *dest, int32_t *max_num_values, opal_data_type_t type)
Unpack values from a buffer.
Definition: dss.h:212
Definition: dss_types.h:89
int(* opal_dss_size_fn_t)(size_t *size, void *src, opal_data_type_t type)
Compute size of data value.
Definition: dss.h:423
void(* opal_dss_release_fn_t)(opal_dss_value_t *value)
Release the storage used by a data value.
Definition: dss.h:494
int(* opal_dss_compare_fn_t)(const void *value1, const void *value2, opal_data_type_t type)
Compare two data values.
Definition: dss.h:397
int(* opal_dss_print_fn_t)(char **output, char *prefix, void *src, opal_data_type_t type)
Print a data value.
Definition: dss.h:437
Base structure for the DSS.
Definition: dss.h:555
uint8_t opal_dss_buffer_type_t
buffer type
Definition: dss_types.h:148
Structure for holding a buffer to be used with the RML or OOB subsystems.
Definition: dss_types.h:159
int(* opal_dss_dump_fn_t)(int output_stream, void *src, opal_data_type_t type)
Print a data value to an output stream for debugging purposes.
Definition: dss.h:450
OPAL_DECLSPEC int opal_dss_close(void)
DSS finalize function.
Definition: dss_open_close.c:497
int(* opal_dss_peek_next_item_fn_t)(opal_buffer_t *buffer, opal_data_type_t *type, int32_t *number)
Get the type and number of values of the next item in the buffer.
Definition: dss.h:240
int(* opal_dss_pack_fn_t)(opal_buffer_t *buffer, const void *src, int32_t num_values, opal_data_type_t type)
Top-level itnerface function to pack one or more values into a buffer.
Definition: dss.h:107