| 36 | void shim_graphics_set_callback(char *cbName); |
| 37 | |
| 38 | void shim_graphics_set_callback(char *cbName) { |
| 39 | if (shim_callback_name != NULL) free(shim_callback_name); |
| 40 | if(cbName && strlen(cbName) > 0) { |
| 41 | debugf("setting shim_callback_name: %s\n", cbName); |
| 42 | shim_callback_name = strdup(cbName); |
| 43 | } else { |
| 44 | debugf("un-setting shim_callback_name\n"); |
| 45 | shim_callback_name = NULL; |
| 46 | } |
| 47 | /* TODO: free(shim_callback_name) during shutdown? */ |
| 48 | } |
| 49 | void local_callback (const char *cb_name, const char *shim_name, void *ret_ptr, const char *fmt_str, void *args); |
| 50 | |
| 51 | /* A2P = Argument to Pointer */ |