void my_send_callback (struct gm_port *port, void *context, gm_status_t status) { if (status != GM_SUCCESS) { if (status != GM_SEND_DROPPED) { gm_perror ("send completed with error", status); } } }
static void get_callback (struct gm_port *p, void *completion_ctr, gm_status_t status) { if (status != GM_SUCCESS) { gm_perror ("Get error", status); } ++MPID_nem_module_gm_num_send_tokens; OPA_decr_int ((int *)completion_ctr); }