GRM Reference

Plot Functions

Functions

void grm_finalize(void)
int grm_clear(void)
unsigned int grm_max_plotid(void)
int grm_merge(const grm_args_t *args)
int grm_merge_extended(const grm_args_t *args, int hold, const char *identificator)
int grm_merge_hold(const grm_args_t *args)
int grm_merge_named(const grm_args_t *args, const char *identificator)
int grm_plot(const grm_args_t *args)
int grm_switch(unsigned int id)

Argument Container Functions

Typedefs

typedef struct _arg_private_t arg_private_t
typedef struct _args_node_t args_node_t
typedef struct _grm_args_t grm_args_t
typedef grm_args_t *grm_args_ptr_t
typedef struct _args_iterator_private_t args_iterator_private_t
typedef struct _args_iterator_t args_iterator_t
typedef struct _args_value_iterator_private_t args_value_iterator_private_t
typedef struct _grm_args_value_iterator_t args_value_iterator_t

Functions

grm_args_t *grm_args_new(void)
void grm_args_delete(grm_args_t *args)
int grm_args_push(grm_args_t *args, const char *key, const char *value_format, ...)
int grm_args_push_buf(grm_args_t *args, const char *key, const char *value_format, const void *buffer, int apply_padding)
int grm_args_contains(const grm_args_t *args, const char *keyword)
void grm_args_clear(grm_args_t *args)
void grm_args_remove(grm_args_t *args, const char *key)
grm_args_ptr_t grm_length(double value, const char *unit)
struct arg_t

Public Members

const char *key
void *value_ptr
const char *value_format
arg_private_t *priv
struct _args_iterator_t

Public Members

arg_t *(*next)(struct _args_iterator_t *)
arg_t *arg
args_iterator_private_t *priv
struct _grm_args_value_iterator_t

Public Members

void *(*next)(struct _grm_args_value_iterator_t *)
void *value_ptr
char format
int is_array
size_t array_length
args_value_iterator_private_t *priv

Argument Output Functions

Functions

void grm_dump(const grm_args_t *args, FILE *f)
void grm_dump_json(const grm_args_t *args, FILE *f)
char *grm_dump_json_str(void)

Event Functions

Typedefs

typedef void (*grm_event_callback_t)(const grm_event_t *)

Enums

enum grm_event_type_t

Values:

GRM_EVENT_NEW_PLOT
GRM_EVENT_UPDATE_PLOT
GRM_EVENT_SIZE
GRM_EVENT_MERGE_END
_GRM_EVENT_TYPE_COUNT

Functions

int grm_register(grm_event_type_t type, grm_event_callback_t callback)
int grm_unregister(grm_event_type_t type)
struct grm_new_plot_event_t

Public Members

grm_event_type_t type
int plot_id
struct grm_update_plot_event_t

Public Members

grm_event_type_t type
int plot_id
struct grm_size_event_t

Public Members

grm_event_type_t type
int plot_id
int width
int height
struct grm_merge_end_event_t

Public Members

grm_event_type_t type
const char *identificator
union grm_event_t

Public Members

grm_new_plot_event_t new_plot_event
grm_size_event_t size_event
grm_update_plot_event_t update_plot_event
grm_merge_end_event_t merge_end_event

Interaction Functions

Functions

int grm_input(const grm_args_t *input_args)
int grm_get_box(const int x1, const int y1, const int x2, const int y2, const int keep_aspect_ratio, int *x, int *y, int *w, int *h)
grm_tooltip_info_t *grm_get_tooltip(const int, const int)
struct grm_tooltip_info_t

Public Members

double x
double y
int x_px
int y_px
char *xlabel
char *ylabel
char *label

Networking Functions

Defines

GRM_SENDER
GRM_RECEIVER

Functions

void *grm_open(int is_receiver, const char *name, unsigned int id, const char *(*custom_recv)(const char *, unsigned int), int (*custom_send)(const char *, unsigned int, const char *))
grm_args_t *grm_recv(const void *p, grm_args_t *args)
int grm_send(const void *p, const char *data_desc, ...)
int grm_send_buf(const void *p, const char *data_desc, const void *buffer, int apply_padding)
int grm_send_ref(const void *p, const char *key, char format, const void *ref, int len)
int grm_send_args(const void *p, const grm_args_t *args)
void grm_close(const void *p)